Downtime tag syntax
list Jason Chambers
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
list Paul Root
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.
list Jason Chambers
Argh! I don't want to answer my PDA every night at 6pm because of a stupid backup job overloading the CPU and DB. :( 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.
list Padraig Lennon
Hi Jason, I use the following with no issues.. DOWNTIME=6:*:0200:0500:Maintenance So I presume something like the following works: DOWNTIME=*:cpu,mysql:1800:1830:Backups regards, Padraig Lennon Senior Systems Integration Engineer Pioneer Investments Management Ltd 5th Floor | 1 Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of Ireland. Tel. +353 (0)1 480.2081 | Fax. +353 (0)1 480.1111 user-7738cfcc6ae0@xymon.invalid <mailto:user-bd8ca6f18835@xymon.invalid> | www.pioneerinvestments.com <http://www.pioneerinvestments.com/>; Please consider the environment before printing this e-mail
▸
From: Jason Chambers [mailto:user-3fa671c0a30d@xymon.invalid]
Sent: 18 December 2008 17:11
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.
list Clint Simmons
Jason, Have you tried removing ":Backups"? I had problems using a comment at the end so I just removed mine and it worked fine. Clint Simmons Network Engineer Equifax, Inc.
▸
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.
list Josh Luthman
This works for me (customer powers off their DSL modem at the end of the day, on in the morning) 1.3.3.7 foo.bar # testip DOWNTIME=0:0000:2359,W:1830:0730,6:0830:2359 I do remember running into some issues with the syntax and the comma separation. You can search the archives for my email address and DOWNTIME if you're really interested. Not sure how to do every day of the week, but this is the time/cause you want: DOWNTIME=?:1755:1815:doingbkp Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer On Thu, Dec 18, 2008 at 12:10 PM, Jason Chambers <user-3fa671c0a30d@xymon.invalid
▸
wrote:
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.
list Josh Luthman
In that case try... DOWNTIME=*:1800:1830
▸
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
On Thu, Dec 18, 2008 at 12:17 PM, Clint Simmons
▸
<user-11a56b7e09eb@xymon.invalid>wrote:
Jason, Have you tried removing ":Backups"? I had problems using a comment at the end so I just removed mine and it worked fine. Clint Simmons Network Engineer Equifax, Inc. *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.
list Paul Root
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.
list Josh Luthman
▸
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.
Isn't this kind of like dividing by zero? How does this actually work, does
it cover all day except that half hour window?
▸
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
▸
On Thu, Dec 18, 2008 at 12:36 PM, Root, Paul <user-c80045f511e8@xymon.invalid> wrote:
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.
list Paul Root
Since I'm using the * the time stamp wraps around. It just worked, the way I wanted it. I forced a red condition during a ignore time window, and I got the email during the window, after the window expired, the page came through. Looks like other emails said your format was wrong. Someone had the format DAY:SERVICE:START:END:COMMENT. That doesn't match up with the web page man pages. What I have down here worked 1 hour ago on Xymon 4.2.2 compiled on Solaris 10 8/07 in a zone. Paul Root IM/MNS Infrastructure
▸
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Thursday, December 18, 2008 11:43 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Downtime tag syntax
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. Isn't this kind of like dividing by zero? How does this actually work, does it cover all day except that half hour window? Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer On Thu, Dec 18, 2008 at 12:36 PM, Root, Paul <user-c80045f511e8@xymon.invalid> wrote: 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.
list Lars Ebeling
According to manpages DOWNTIME=cpu,mysql:*:1800:1830:Backups Lars
▸
----- Original Message -----
From: Jason Chambers
To: 'user-ae9b8668bcde@xymon.invalid'
Sent: Thursday, December 18, 2008 2:35 PM
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