Problem with TIME specification in hobbit-alerts.cfg?
Hello,
I'm still having problems with alert configuration in Hobbit. I've configured notifications as follows:
On which colors should we alert?
$ALERT_COLORS=COLOR=purple,red
Mail rule
$MAIL_BEHEER=MAIL beheer at softlution.com FORMAT=TEXT REPEAT=10069920 RECOVERED NOTICE
SMS rule
$SMS_SUPPORT=SCRIPT /Hobbit/server/ext/pg/smsalert support FORMAT=SMS REPEAT=30 TIME=W:0800:0900,W:1700:2300,60:0800:2300 DURATION>5 RECOVERED NOTICE
PAGE=<page> $ALERT_COLORS $SMS_SUPPORT
HOST=%.* $ALERT_COLORS $MAIL_BEHEER
hobbitd_alert --dumpconfig and hobbitd_alert --test seem to think this configuration is fine.
smsalert is basically a wrapper around smstools' sendsms command, I've added phone number aliases so the actual phone numbers don't show up in the info column pages, and I've added basic logging with timestamps and sendsms exit codes. It has worked fine so far.)
However, this morning at 8:00 AM no SMS was sent on a red condition which had already lasted for hours (it started at 00:44 AM) and is shown on the page <page>. A mail alert was sent as soon as the condition started, but an SMS is never sent and neither notifications.log nor my smsalert.log show any attempt to send an SMS.
Am I doing something wrong here?
Best regards,
Eric.
Not a solution, but to make sure an email is send when the SMS should be sent as well: copy the SMS-rule below the original rule and change the SCRIPT to a MAIL command. So if it is a TIME-related issue, the email would not be send as well. So:
$SMS_SUPPORT=SCRIPT /Hobbit/server/ext/pg/smsalert support FORMAT=SMS REPEAT=30 TIME=W:0800:0900,W:1700:2300,60:0800:2300 DURATION>5 RECOVERED NOTICE $TST_SMS_SUPPORT=MAIL mailtest at address FORMAT=SMS REPEAT=30 TIME=W:0800:0900,W:1700:2300,60:0800:2300 DURATION>5 RECOVERED NOTICE
PAGE=<page> $ALERT_COLORS $SMS_SUPPORT $TST_SMS_SUPPORT
Peter
2006/11/7, Eric van de Meerakker <eric-list-1 at softlution.com>:
Hello,
I'm still having problems with alert configuration in Hobbit. I've configured notifications as follows:
On which colors should we alert?
$ALERT_COLORS=COLOR=purple,red
Mail rule
$MAIL_BEHEER=MAIL beheer at softlution.com FORMAT=TEXT REPEAT=10069920 RECOVERED NOTICE
SMS rule
$SMS_SUPPORT=SCRIPT /Hobbit/server/ext/pg/smsalert support FORMAT=SMS REPEAT=30 TIME=W:0800:0900,W:1700:2300,60:0800:2300 DURATION>5 RECOVERED NOTICE
PAGE=<page> $ALERT_COLORS $SMS_SUPPORT
HOST=%.* $ALERT_COLORS $MAIL_BEHEER
hobbitd_alert --dumpconfig and hobbitd_alert --test seem to think this configuration is fine.
smsalert is basically a wrapper around smstools' sendsms command, I've added phone number aliases so the actual phone numbers don't show up in the info column pages, and I've added basic logging with timestamps and sendsms exit codes. It has worked fine so far.)
However, this morning at 8:00 AM no SMS was sent on a red condition which had already lasted for hours (it started at 00:44 AM) and is shown on the page <page>. A mail alert was sent as soon as the condition started, but an SMS is never sent and neither notifications.log nor my smsalert.log show any attempt to send an SMS.
Am I doing something wrong here?
Best regards,
Eric.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This sounds a lot like the problem I am having, which I haven't found a solution for yet.
If you have an alert set with no TIME option, and a high REPEAT counter, it won't process any further alerts that have TIME options set. So mail message goes out, service stays down, but it won't proceed with any other rules until the REPEAT counter is hit.
The only way to fix this for me was to set REPEAT really low on my initial mail message.
I'm not sure if this is a bug, or if there's a fix?
Shane
On 11/7/06, Eric van de Meerakker <eric-list-1 at softlution.com> wrote:
Hello,
I'm still having problems with alert configuration in Hobbit. I've configured notifications as follows:
On which colors should we alert?
$ALERT_COLORS=COLOR=purple,red
Mail rule
$MAIL_BEHEER=MAIL beheer at softlution.com FORMAT=TEXT REPEAT=10069920 RECOVERED NOTICE
SMS rule
$SMS_SUPPORT=SCRIPT /Hobbit/server/ext/pg/smsalert support FORMAT=SMS REPEAT=30 TIME=W:0800:0900,W:1700:2300,60:0800:2300 DURATION>5 RECOVERED NOTICE
PAGE=<page> $ALERT_COLORS $SMS_SUPPORT
HOST=%.* $ALERT_COLORS $MAIL_BEHEER
hobbitd_alert --dumpconfig and hobbitd_alert --test seem to think this configuration is fine.
smsalert is basically a wrapper around smstools' sendsms command, I've added phone number aliases so the actual phone numbers don't show up in the info column pages, and I've added basic logging with timestamps and sendsms exit codes. It has worked fine so far.)
However, this morning at 8:00 AM no SMS was sent on a red condition which had already lasted for hours (it started at 00:44 AM) and is shown on the page <page>. A mail alert was sent as soon as the condition started, but an SMS is never sent and neither notifications.log nor my smsalert.log show any attempt to send an SMS.
Am I doing something wrong here?
Best regards,
Eric.
On Tue, Nov 07, 2006 at 07:45:51AM -0500, Shane Presley wrote:
If you have an alert set with no TIME option, and a high REPEAT counter, it won't process any further alerts that have TIME options set. So mail message goes out, service stays down, but it won't proceed with any other rules until the REPEAT counter is hit.
The only way to fix this for me was to set REPEAT really low on my initial mail message.
I'm not sure if this is a bug, or if there's a fix?
It is a bug, and no - there isn't a fix yet. Sorry.
Regards, Henrik
participants (4)
-
eric-list-1@softlution.com
-
henrik@hswn.dk
-
peter.welter@gmail.com
-
shane.presley@gmail.com