[Xymon] Tricky one for log file monitoring

Ken Connell kconnell at ryerson.ca
Thu Mar 22 14:29:25 CET 2012


My issue was getting swatch working on this particular sun os box....which I'm too crazy about.

That's exactly what I had in mind though :)



Ken Connell
Intermediate Network Engineer
Computer & Communication Services
Ryerson University
350 Victoria St
RM AB50
Toronto, Ont
M5B 2K3
416-979-5000 x6709

----- Original Message -----
From: John Horne <john.horne at plymouth.ac.uk>
Date: Thursday, March 22, 2012 9:04 am
Subject: Re: [Xymon] Tricky one for log file monitoring
To: xymon at xymon.com


> On Thu, 2012-03-22 at 11:54 +0000, kconnell at ryerson.ca 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: +44 (0)1752 587287
>  Plymouth University, UK      Fax: +44 (0)1752 587001
>  _______________________________________________
>  Xymon mailing list
>  Xymon at xymon.com
>  http://lists.xymon.com/mailman/listinfo/xymon
>  



More information about the Xymon mailing list