On Thu, Mar 22, 2012 at 11:45 PM, John Horne <john.horne at plymouth.ac.uk> wrote:
Within swatch could you not use the 'exec' command to invoke 'xymon' to update the Xymon server? Something like (completely untested!):
watchfor = /low dhcp pools/ exec = xymon <xymonserver IP> 'status <localhostname>.dhcp red
dateDHCP pools getting low!'
Won't the test go purple after a while? A way to get around this would be to create a status file, and then have another process "refresh" Xymon based on the content of the file:
exec = echo 'status <localhostname>.dhcp red date DHCP pools
getting low!' > /var/tmp/dhcp.status
Then in tasks.cfg:
[dhcp] ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg CMD xymon <xymonserverIP> `cat /var/tmp/dhcp.status INTERVAL 5m
J