Xymon Mailing List Archive search

Tricky one for log file monitoring

list Jeremy Laidman
Mon, 26 Mar 2012 13:40:27 +1100
Message-Id: <CAAnki7BBRzDtp8Ra-rg98QAzxULDe-FZofeHXNNU=user-360915632683@xymon.invalid>

On Thu, Mar 22, 2012 at 11:45 PM, John Horne <user-e95f1ec2f147@xymon.invalid> 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
`date` DHCP 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