Xymon Mailing List Archive search

Custom check interval for different status of custom tests

list Henrik Størner
Fri, 03 May 2013 11:18:31 +0200
Message-Id: <user-c93a2d708340@xymon.invalid>

On 02-05-2013 16:48, user-87556346d4af@xymon.invalid 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