[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hobbit_alerts.cfg IGNORE TIME
- To: hobbit (at) hswn.dk
- Subject: hobbit_alerts.cfg IGNORE TIME
- From: Lee Imber <ljimber (at) gmail.com>
- Date: Tue, 29 Dec 2009 16:43:47 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=B+C61F8lmqOZVRCD55cE0rx/QVqtkdxhvGuyJUR5RPo=; b=d4X7Pa1mhPul9kPoOwbt8iMg8yiLAlc+vqev2u4XzRgXbqoSWZ/rctX4ZEtmGQe9tF Wp6xxPhjjsIK6wPx4eAcSiMwN6om1ivBWaZ/2TGMYw0tmVwiMr5YvFWGNkRFXNSRI9U9 sxxpU4GrvfqvwXuhA5UralsUh36R2+4SzTev0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=B6vgJxY3Yp2+siLqDZG4W2dKXtWhAtsCOEG6GhGb04V6SHV82w8g6pC+vdDd3cNOIx xogQ4Yww3JHrAHOUPA7JvrNUdH7+g6ZaAqnuPoL+4FYRzpO48RNqDpjs7/zCgQFVxA/d 15fAAX/uiJedrp+GZ/o7qO/X8qxovkjal25b4=
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
lee (at) glance.net