How is your script identifying the hosts in hosts.cfg that have the test set? are you using the xymongrep utility within <a href="http://env.pl">env.pl</a>?<br><br>The stanza in tasks.cfg only kicks off the script (every 5 mins as you have specified), it doesn't pass any data to it and doesn't run it for each host, you have to go and grab the data and work out which hosts to check, so use 'xymongrep env' to find all the hosts to check, then split and work out each domain, check each domain and pass the data back to xymon using the 'xymon status' command.<br>
<br>Steve<br><br><br><div class="gmail_quote">On 13 April 2012 18:10, Ioan Damian <span dir="ltr"><<a href="mailto:damian.ioan@gmail.com">damian.ioan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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" target="_blank">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?<span class="HOEnZb"><font color="#888888"><br clear="all">

<br>-- <br>All I know is that I like you. I have no taste, but I like you. <br>
</font></span><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br>