Xymon Mailing List Archive search

Tricky one for log file monitoring

list Ken Connell
Thu, 22 Mar 2012 09:29:25 -0400
Message-Id: <user-e20b4754204e@xymon.invalid>

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
XXX Victoria St
RM AB50
Toronto, Ont
M5B 2K3
XXX-XXX-XXXX x6709

----- Original Message -----
From: John Horne <user-e95f1ec2f147@xymon.invalid>
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, 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