$ hobbitd_alert --dump-config shows
HOST=%(.*) SERVICE=apt COLOR=red MAIL user at example.net FORMAT=TEXT REPEAT=1440
But I am receiving the same alert every 30 mins (default) with same alert code.
The info column says Repeat is 1d for service apt.
$ hobbitd_alert --debug --test host.example.net apt --duration=35
00012322 2010-07-08 22:45:03 *** Match with 'HOST=%(.*) SERVICE=apt COLOR=red' *** 2010-07-08 22:45:03 repeat host.example.net|apt|mail|user at example.net at 0 2010-07-08 22:45:03 Alert for host.example.net:apt to user at example.net 00012322 2010-07-08 22:45:03 Mail alert with command 'mail -s "Hobbit [12345] host.example.net:apt CRITICAL (RED) [cfid:281]" user at example.net'
why is it saying repeat ... 0 ? what is that mean ? am I experiencing a bug?
$ vi +281 server/etc/hobbit-alerts.cfg [..] HOST=%(.*) SERVICE=apt COLOR=red MAIL user at example.net REPEAT=1d <-- line 281
Please advise.
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
In <AANLkTikVuJ-DxVQgRBhVR34fPV6Qi7_yCgeOwYZt9hT1 at mail.gmail.com> Asif Iqbal <vadud3 at gmail.com> writes:
$ hobbitd_alert --dump-config shows
HOST=%(.*) SERVICE=apt COLOR=red MAIL user at example.net FORMAT=TEXT REPEAT=1440
But I am receiving the same alert every 30 mins (default) with same alert code.
The info column says Repeat is 1d for service apt.
Could you check the notifications.log file for some of the extra alerts you receive ? It looks like this: Thu Jul 1 07:07:00 2010 osiris.hswn.dk.cpu (0.0.0.0) henrik at hswn.dk[121] 1277960820 200 Thu Jul 1 07:46:05 2010 dali.hswn.dk.cpu (172.16.10.4) henrik at hswn.dk[121] 1277963165 200
The number in the square brackets is the line in your hobbit-alerts.cfg that generates the alert.
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
:-))
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
vadud3@gmail.com