[hobbit] Problem with TIME specification in hobbit-alerts.cfg?

Peter Welter peter.welter at gmail.com
Tue Nov 7 11:45:22 CET 2006


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
>
>
>



More information about the Xymon mailing list