hobbit_alerts.cfg IGNORE TIME
list Lee Imber
Greetings all,
I have been trying to figure this out and I think I am missing something real obvious.
I am trying to ignore an event when a series of servers do some backups and the http test gets triggered for a second Sunday Morning at 3:35AM or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:' against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays): 7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
I have been trying to figure this out and I think I am missing something real obvious.
I am trying to ignore an event when a series of servers do some backups and the http test gets triggered for a second Sunday Morning at 3:35AM or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:' against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays): 7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
Lee J. Imber
Systems Engineer
Glance Networks
1167 Massachusetts Ave.
Arlington, MA USA 02476
www.glance.net
user-b326436e7231@xymon.invalid
list Tom Schmitt
I believe it is the same as UNIX:
0 - 6 0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
* = All Days
Thanks,
Tom Schmitt
Senior IT Staff - R&D
Salt Lake City, UT XXXXX
Phone (XXX) XXX-XXXX
Cell (XXX) XXX-XXXX
user-9c1ae820b621@xymon.invalid
\\\\||////
\ ~ ~ /
| @ @ |
--oOo---(_)---oOo--
▸
-----Original Message-----
From: Lee Imber [mailto:user-00f7ff80dab7@xymon.invalid]
Sent: Tuesday, December 29, 2009 2:44 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] hobbit_alerts.cfg IGNORE TIME
Greetings all,
I have been trying to figure this out and I think I am missing something
real obvious.
I am trying to ignore an event when a series of servers do some backups
and the http test gets triggered for a second Sunday Morning at 3:35AM
or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:'
against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays):
7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4
SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set
for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
I have been trying to figure this out and I think I am missing something
real obvious.
I am trying to ignore an event when a series of servers do some backups
and the http test gets triggered for a second Sunday Morning at 3:35AM
or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:'
against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays):
7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4
SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set
for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
Lee J. Imber
Systems Engineer
Glance Networks
1167 Massachusetts Ave.
Arlington, MA USA 02476
www.glance.net
user-b326436e7231@xymon.invalid
list Thomas R. Brand
#man hobbit-clients
TIME=timespecification Rule matching an alert by the time-of-day. This
is specified as the DOWNTIME timespecification in the bb-hosts file.
#man bb-hosts
/DOWNTIME
The syntax for DOWNTIME is the same as the one used by the NKTIME
parameter.
/NKTIME
NKTIME=day:starttime:endtime[,day:starttime:endtime]
day-of-week: W means Mon-Fri ("weekdays"), * means all days, 0 .. 6 =
Sunday .. Saturday. Listing multiple days is possible, e.g. "60" is
valid meaning "Saturday and Sunday"
Days are 0-6, Sunday thru Saturday....
:)
Cheers
Tom
Tom Brand
Disclaimer: 1) all opinions are my own, 2) I may be completely wrong,
3) my advice is worth at least as much as what you are paying for it, or
your money cheerfully refunded.Think before you print...
▸
-----Original Message-----
From: Lee Imber [mailto:user-00f7ff80dab7@xymon.invalid]
Sent: Tuesday, December 29, 2009 4:44 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] hobbit_alerts.cfg IGNORE TIME
Greetings all,
I have been trying to figure this out and I think I am missing something
real obvious.
I am trying to ignore an event when a series of servers do some backups
and the http test gets triggered for a second Sunday Morning at 3:35AM
or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:'
against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays):
7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4
SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set
for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
I have been trying to figure this out and I think I am missing something
real obvious.
I am trying to ignore an event when a series of servers do some backups
and the http test gets triggered for a second Sunday Morning at 3:35AM
or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:'
against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays):
7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4
SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set
for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
Lee J. Imber
Systems Engineer
Glance Networks
1167 Massachusetts Ave.
Arlington, MA USA 02476
www.glance.net
user-b326436e7231@xymon.invalid
list Tim McCloskey
DOWNTIME is want you want, the client is automagically placed into maintenance mode (blue) for the time period specified. Other users of the hobbit system can see the downtime configuration via a web browser (ie. if you've got a noc team watching the display). Ignore is not needed in this configuration, only the hosts entry. Example: From the hosts file: 1.1.1.1 servername # "DOWNTIME=*:*:2200:0730:Nightly Reboot" Displayed on the 'info' page for the host above. Planned downtime: All days:*:2200:0730:Nightly Reboot This works well for us, using hobbit-4.2.0. Good luck, Tim
▸
Brand, Thomas R. wrote:#man hobbit-clients
TIME=timespecification Rule matching an alert by the time-of-day. This
is specified as the DOWNTIME timespecification in the bb-hosts file.
#man bb-hosts
/DOWNTIME
The syntax for DOWNTIME is the same as the one used by the NKTIME
parameter.
/NKTIME
NKTIME=day:starttime:endtime[,day:starttime:endtime]
day-of-week: W means Mon-Fri ("weekdays"), * means all days, 0 .. 6 =
Sunday .. Saturday. Listing multiple days is possible, e.g. "60" is
valid meaning "Saturday and Sunday"
Days are 0-6, Sunday thru Saturday....
:)
▸
Cheers
Tom
Tom Brand
Disclaimer: 1) all opinions are my own, 2) I may be completely wrong,
3) my advice is worth at least as much as what you are paying for it, or
your money cheerfully refunded.Think before you print...
-----Original Message-----
From: Lee Imber [mailto:user-00f7ff80dab7@xymon.invalid] Sent: Tuesday, December 29, 2009 4:44 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] hobbit_alerts.cfg IGNORE TIME
Greetings all,
I have been trying to figure this out and I think I am missing something
real obvious.
I am trying to ignore an event when a series of servers do some backups
and the http test gets triggered for a second Sunday Morning at 3:35AM
or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:'
against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays):
7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4
SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set
for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
I have been trying to figure this out and I think I am missing something
real obvious.
I am trying to ignore an event when a series of servers do some backups
and the http test gets triggered for a second Sunday Morning at 3:35AM
or 0835UTC.
Here is the rule in hobbit-alerts.cfg
HOST=S1,S2,S3,S4 COLOR=red SERVICE=http
IGNORE HOST=S1,S2,S3,S4 SERVICE=http TIME=7:0830:0845
But I get still get paged.
Here is what I get when I run:
./bin/bbcmd hobbitd_alert --test S1 http
00052836 2009-12-29 18:02:45 Matching host:service:page 'S1:http:'
against rule line 81
2009-12-29 18:02:45 Bad timespec (missing colon or wrong weekdays):
7:0830:0845
00052836 2009-12-29 18:02:45 Failed 'IGNORE HOST=S1,S2,S3,S4
SERVICE=http TIME=7:0830:0845' (time criteria)
In the hobbit manual there is an example that shows a similar rule set
for Thursday using day 4:0000:0000 so I believe Sunday should be day 7?
If I change the day to 6 I don't get that error in the --test output.
Thanks and HNY!
Lee J. Imber
Systems Engineer
Glance Networks
1167 Massachusetts Ave.
Arlington, MA USA 02476
www.glance.net
user-b326436e7231@xymon.invalid