It's not too hard to script url tests.  Below is one I wrote to check an RSA key server appliance.  You can have xymon kick it off for you by adding something like this to server/etc/hobbitlaunch.cfg:<div><br></div><div>
 [keysrv]</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>ENVFILE /home/xymon/server/etc/xymonserver.cfg</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>NEEDS xymond</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>CMD /home/xymon/server/ext/rkmsrv.sh</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>LOGFILE $XYMONSERVERLOGS/rkmsrv.log</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>INTERVAL 5m</div>
<div><br></div><div>Obviously you can do substantially more complicated things than would be possible in the regular "cont" check.  </div><div><br></div><div>Ralph Mitchell</div><div>=========================================================</div>
<div><div>#!/bin/sh</div><div><br></div><div># set -x</div><div><br></div><div>TESTHOST=<a href="http://rkm.example.com">rkm.example.com</a></div><div>TESTMSG='Get Key Successful'</div><div>OUTFILE=$BBTMP/rkm.html</div>
<div><br></div><div>rm -f $OUTFILE</div><div>TIME=`curl -s -S -L -m 30 -w '%{time_total}' \</div><div>  --cacert $BBHOME/trusted_cas.pem \</div><div>  -o $OUTFILE \</div><div>  "https://$TESTHOST/rkmawa/healthCheck.do?keyclass=xymon&rootca=/root/CA/demoCA/trusted_cas.</div>
<div>pem&client=/root/CA/demoCA/certs/xymon.p12"`</div><div><br></div><div>STATUS=`grep -c 'Get Key Successful' $BBTMP/rkm.html`</div><div>if [ "$STATUS" -eq "1" ]; then</div><div>  COLOR=green</div>
<div>  MESSAGE="Found <b>$TESTMSG</b>.  Key server looks OK"</div><div>else</div><div>  COLOR=red</div><div>  MESSAGE="Failed to find <b>$TESTMSG</b>.  Key server may be in trouble"</div>
<div>fi</div><div><br></div><div>MESSAGE="$MESSAGE</div><div><br></div><div><pre></div><div>`cat $BBTMP/rkm.html`</div><div></pre></div><div><p></div><div>Query: $TIME secs"</div><div><br></div>
<div># `cat $BBTMP/rkm.html | sed -e 's/:/%3A/g'`</div><div>MACHINE=`echo $TESTHOST | sed -e 's/\./\,/g'`</div><div>$BB $BBDISP "status $MACHINE.keysrv $COLOR `date`</div><div><br></div><div>$MESSAGE"</div>
<div>exit 0</div><div><br></div><div>==========================================</div><br><div class="gmail_quote">On Fri, Aug 19, 2011 at 5:17 PM, J. Bobby Lopez <span dir="ltr"><<a href="mailto:jbl@jbldata.com">jbl@jbldata.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">sounds like I'll be upgrading soon.  Thanks Henrik.<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Fri, Aug 19, 2011 at 4:53 PM, J. Bobby Lopez <span dir="ltr"><<a href="mailto:jbl@jbldata.com" target="_blank">jbl@jbldata.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I have some systems running Xymon 4.2.3, I'm guessing the 'cont' attribute, along with hosts.cfg are not available in that version?<br>

</div><div><div><div><br></div><br><div class="gmail_quote">On Fri, Aug 19, 2011 at 4:28 PM, Henrik Størner <span dir="ltr"><<a href="mailto:henrik@hswn.dk" target="_blank">henrik@hswn.dk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 19-08-2011 21:31, J. Bobby Lopez wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looking for a way to write tests that check a URL, and return fail/pass<br>
depending on the content.<br>
<br>
I could easily use curl to do this, but I'm looking for information on<br>
how to integrate the curl command line into xymon as a test.<br>
</blockquote>
<br></div>
Re-inventing the wheel, eh ?<br>
<br>
Try reading up on the "cont" style test (see the hosts.cfg(5) man-page).<br>
<br>
<br>
Regards,<br>
Henrik<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">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>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><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></div>