Xymon Mailing List Archive search

Downtime tag syntax

list Paul Root
Thu, 18 Dec 2008 11:36:39 -0600
Message-Id: <user-a0e76be4349f@xymon.invalid>

I'm getting close.
 
 
What just worked for me in hobbit-alerts.cfg, was:
 
HOST=%$HG-VSNL COLOR=red,purple DURATION>7 TIME=*:1100:1030
        MAIL $NG-IM-ADMIN
        MAIL $NG-IM-ONCALL FORMAT=SMS

So send alerts from 11:00 am to 10:30 am every day.
 
 
What I'm trying right now is:
 
HOST=%$HG-VSNL COLOR=red,purple DURATION>7
        MAIL $NG-IM-ADMIN
        IGNORE SERVICE=procs TIME=*:1110:1130
        MAIL $NG-IM-ONCALL FORMAT=SMS

 
So the email would come, but the page wouldn't happen, and only on
procsm between 11:10 and 11:30 am. 
I've had trouble with this, but that was when the machine was in a large
group, so I'm splitting it to it's own group (with it's backup server).
 
The former should work for you. It should look like:
 
HOST=<HOSTNAME> SERVICE=cpu,mysql COLOR=red DURATION>7 TIME=*:1800:1900
    MAIL <WHEREVER> FORMAT=SMS
 
Test it with
 
bbcmd hobbitd_alert --test <HOSTNAME> cpu --duration=8 time=1229646890
 
 
the time value is in epochtime. That number is seconds. It's roughly
6:30 pm CST.
 

Paul Root         IM/MNS Infrastructure    

 
	From: Jason Chambers [mailto:user-3fa671c0a30d@xymon.invalid] 
	Sent: Thursday, December 18, 2008 11:11 AM
	To: 'user-ae9b8668bcde@xymon.invalid'
	Subject: RE: [hobbit] Downtime tag syntax
	
	
	Argh!

	 
	I don't want to answer my PDA every night at 6pm because of a
stupid backup job overloading the CPU and DB. L There has to be a way to
get this to work...

	 
	Jason Chambers
	IT Help Desk Associate
	
	GEOSOFT INC.
	freedom to explore
	T +X XXX.XXX.XXXX #344
	F +X XXX.XXX.XXXX
	
	Visit our user-be8ce7065ec5@xymon.invalid

	 
	From: Root, Paul [mailto:user-c80045f511e8@xymon.invalid] 
	Sent: December-18-08 11:11 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: RE: [hobbit] Downtime tag syntax

	 
	That syntax looks right.

	 
	Unfortunately, I think it's just broken. I've been fighting this
all week. I've tried DOWNTIME, TIME on the HOST line of
hobbit-alerts.cfg, TIME with IGNORE.

	I've tried it with a bogus alarm, and with procs. I had it
working with a bogus alarm, but it always ignores procs.

	 
	bbcmd hobbitd_alerts ....    parses it correctly, and you think
you're going to get what you want. But then 2:11am the oncall is still
paged.

	 
	I have this on Solaris 10 (in a zone) with Hobbit 4.2.0 and
yesterday upgraded to Xymon 4.2.2. Same deal.

	 
	Paul Root         IM/MNS Infrastructure    

	 
		From: Jason Chambers [mailto:user-3fa671c0a30d@xymon.invalid]

		Sent: Thursday, December 18, 2008 7:35 AM
		To: 'user-ae9b8668bcde@xymon.invalid'
		Subject: [hobbit] Downtime tag syntax

		Hey everyone,

		
		I'm having problems with the DOWNTIME: tag on a host as
it appears not to be working. Can anyone see what I am doing wrong?

		 
		DOWNTIME:cpu,mysql:*:1800:1830:Backups

		 
		Jason Chambers
		IT Help Desk Associate
		
		GEOSOFT INC.
		freedom to explore
		T +X XXX.XXX.XXXX #344
		F +X XXX.XXX.XXXX
		
		Visit our user-be8ce7065ec5@xymon.invalid

		 
	This communication is the property of Qwest and may contain
confidential or privileged information. Unauthorized use of this
communication is strictly prohibited and may be unlawful. If you have
received this communication in error, please immediately notify the
sender by reply e-mail and destroy all copies of the communication and
any attachments.