<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"><head><META content="text/html; charset=utf-8" http-equiv="Content-Type">

<STYLE><!--         /* Style Definitions */         p.9c191604-4951-4081-b542-e3bae5d5993c, li.9c191604-4951-4081-b542-e3bae5d5993c, div.9c191604-4951-4081-b542-e3bae5d5993c, table.9c191604-4951-4081-b542-e3bae5d5993cTable         {margin:0cm;    margin-bottom:.0001pt;}        div.Section1        {page:Section1;}        --> <!--          #9c191604-4951-4081-b542-e3bae5d5993cexcontact a{color:white;text-decoration:none;}          #9c191604-4951-4081-b542-e3bae5d5993cexcontact a:hover{text-decoration:underline;}          --></STYLE>
<meta content="text/html; charset=utf-8" http-equiv=Content-Type><meta content="Microsoft Word 14 (filtered medium)" name=Generator><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><BODY><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>How are you passing the domain names to the Perl script?  I don’t see how it could find any other name except the one from the xymon server itself.  Generally I have a script which runs and “greps”  the hosts.cfg (old bb-hosts) file to find  entries which I want the script run against and in that script call the actual script which performs the test, pass the variables needed (hostname or IP address).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>         …..Bruce<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> xymon-bounces@xymon.com [mailto:xymon-bounces@xymon.com] <b>On Behalf Of </b>Ioan Damian<br><b>Sent:</b> Friday, April 13, 2012 12:11 PM<br><b>To:</b> xymon@xymon.com<br><b>Subject:</b> [Xymon] Additional tests from xymon server<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<br><br>I'm trying to add a test to the xymon server. This one has to reside server-side because not it does domain checks and not all domains have an assigned IP. Also, connectivity is not a concern here. What I'm trying to do is add some domain in a subpage and check for changes in their nameserver IPs. I've written a perl script that does the job and it takes the domain name as a parameter. In practice I'm trying to replicate what xymonnet does with the various checks like dns, http, smtp, etc.<br><br>I would have something like this hosts.cfg:<br><br>page domainchecks <H3>Domain Checks<H3><br><some IP>  <the domain name>  # noconn <my_test_name><br><br>I did scrip this to check all domains at once but, that's not a desired behavior because I need to xymon to treat them separately and tell me for each if something changed or not according to my script.<br><br>I setup a test task in tasks.cfg like this:<br><br>[Environment]<br>        ENVFILE /var/lib/xymon/server/etc/xymonserver.cfg<br>        NEEDS xymond<br>        CMD $XYMONSERVERROOT/server/ext/<a href="http://env.pl">env.pl</a><br>        LOGFILE $XYMONSERVERLOGS/ext-env.log<br>        INTERVAL 5m<br><br>I've set it up for some hosts to no avail:<br><br><some ip> <hostname>  # env<br><br>It only shows up for the xymon server, which leads me to think this is more cumbersome than I first thought. Has anyone managed to do something like this before?<br clear=all><br>-- <br>All I know is that I like you. I have no taste, but I like you. <o:p></o:p></p></div> 
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"> </P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><FONT FACE="Arial"><FONT SIZE="2"><FONT COLOR="#999999"><FONT COLOR="#000000"><STRONG>Bruce<FONT COLOR="#808080"><FONT COLOR="#000000"> White</FONT></FONT></STRONG></FONT></FONT></FONT></FONT></P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><FONT FACE="Arial"><FONT SIZE="2"><FONT COLOR="#808080">Senior Enterprise Systems Engineer | Phone: 1-630-671-5169 | Fax: 630-893-1648 | bewhite@fellowes.com | <A HREF="http://www.fellowes.com/">www.fellowes.com</A></FONT></FONT></FONT></P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><FONT FACE="Arial" SIZE="2"></FONT> </P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><IMG ALIGN="baseline" ALT="" BORDER="0" HSPACE="0" SRC="cid:fellbrand1.jpg@76eae0fd.4e3243f2"> </P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><FONT FACE="Arial" SIZE="2"></FONT> </P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><FONT SIZE="+0"></FONT><STRONG></STRONG><FONT SIZE="+0"></FONT><FONT SIZE="+0"></FONT><FONT SIZE="+0"></FONT><FONT COLOR="#808080" FACE="Arial" SIZE="1">Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.</FONT></P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><FONT FACE="Arial" SIZE="2"></FONT> </P>
<P CLASS="9c191604-4951-4081-b542-e3bae5d5993c"><FONT FACE="Arial" SIZE="2"></FONT></P></BODY></HTML>