#!/bin/bash COLUMN=mytest # Name of the column COLOR=green # By default, everything is OK MSG="Bad stuff status" DATE=$(date) # note: following are autimaticaaly provided by xymon: # XYMON # XYMSRV # MACHINE # Do whatever you need to test for something # As an example, go red if /tmp/badstuff exists. if test -f /tmp/badstuff then COLOR=red MSG="${MSG} `cat /tmp/badstuff` " else MSG="${MSG} All is OK " fi # Tell Xymon about it ${XYMON} ${XYMSRV} "status ${MACHINE}.${COLUMN} ${COLOR} ${DATE} ${MSG} " exit 0