Xymon Mailing List Archive search

Tricky one for log file monitoring

list John Horne
Thu, 22 Mar 2012 12:45:14 +0000
Message-Id: <user-d3e15595ca90@xymon.invalid>

On Thu, 2012-03-22 at 11:54 +0000, user-7cb0f5662626@xymon.invalid wrote:
I do something similar to what your asking to check one of our DHCP
servers to see about "low dhcp pools" and update Xymon.  

I wanted to:
Run swatch on the dhcp server and watch for messages in the log that
indicate "low dhcp pool", then execute a script that updates xymon.
This would be ideal and real time, but... 
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!'

(The 'exec' is all on one line.)

The man page for 'xymon' has more details.


John.

-- 
John Horne                   Tel: +XX (X)XXXX XXXXXX
Plymouth University, UK      Fax: +XX (X)XXXX XXXXXX