[Xymon] Custom check interval for different status of custom tests

Henrik Størner henrik at hswn.dk
Fri May 3 11:18:31 CEST 2013


On 02-05-2013 16:48, cleaver at terabithia.org wrote:
> Another way to do this is with a live query, but that depends on where you
> allow querying from. Something like:
>   'xymon $XYMSRV "xymondboard test=thetest color=yellow,red
> fields=hostname" | xargs -r /usr/bin/yourtestscript.sh

Or just use the "query" command

   $XYMON $XYMSRV "query HOSTNAME.TEST"

Or have the script keep track of what the last status it sent - then run 
the script every 5 minutes, and if the last status was "red" OR more 
than 30 minutes have elapsed, then re-run the test.

Watch out for the status going purple, if you don't update it before it 
expires. Use the "status+LIFETIME" to send a status that lasts longer 
than the default 30 minutes.


Regards,
Henrik




More information about the Xymon mailing list