Xymon Mailing List Archive search

Alerts Question

5 messages in this thread

list Mike Dula · Thu, 17 Aug 2006 14:10:41 -0500 ·
Hi, I seem to be having issues with the reliability with the alerts
feature. 

 
My Hobbit-alerts.cfg is written as followed.

 
HOST=server1

        MAIL user-36a709000296@xymon.invalid RECOVERED

        MAIL user-6754c2964be5@xymon.invalid RECOVERED

HOST=server2

        MAIL user-36a709000296@xymon.invalid RECOVERED

        MAIL user-6754c2964be5@xymon.invalid RECOVERED

HOST=* RECOVERED

        IGNORE HOST=server

        IGNORE HOST=server1

        IGNORE HOST=server2

        MAIL user-6754c2964be5@xymon.invalid

        MAIL user-505c83ee2e58@xymon.invalid

        MAIL user-6754c2964be5@xymon.invalid

        MAIL user-6754c2964be5@xymon.invalid <mailto:user-d5d7e47445d2@xymon.invalid> 

 
I am not using SMS but using the phone provider's email to send test to
a phone. The messages poured in after a hobbit.sh restart, but then the
quit going through. Sometimes only the (at)company recipients go
through. Also for the cell phone emails is there a way I can customize
messages sent to the recipient? Ie. make the text short and sweet,
(Server and Service status only)

 
-Mike
list Gary B. · Thu, 17 Aug 2006 15:32:30 -0400 ·
Hi, I seem to be having issues with the reliability with the alerts feature.
Look at the /var/log/hobbit/notifications.log and page.log files.  You
might also want to manually test the alert rules to see how they work
quoted from Mike Dula
My Hobbit-alerts.cfg is written as followed.


HOST=server1
        MAIL user-36a709000296@xymon.invalid RECOVERED
        MAIL user-6754c2964be5@xymon.invalid RECOVERED

HOST=server2
        MAIL user-36a709000296@xymon.invalid RECOVERED
        MAIL user-6754c2964be5@xymon.invalid RECOVERED
The alert rules I have are written as:
HOST=server1 RECOVERED
    MAIL <phone address> REPEAT=interval
    MAIL <company address> REPEAT=interval
quoted from Mike Dula
. . .
HOST=* RECOVERED
        IGNORE HOST=server
        IGNORE HOST=server1
        IGNORE HOST=server2
        MAIL user-6754c2964be5@xymon.invalid
        MAIL user-505c83ee2e58@xymon.invalid
        MAIL user-6754c2964be5@xymon.invalid
        MAIL user-6754c2964be5@xymon.invalid
You can do
   IGNORE HOST=server,server1,server2
   MAIL <address1>,<address2>
quoted from Mike Dula
I am not using SMS but using the phone provider's email to send test to a
phone. The messages poured in after a hobbit.sh restart, but then the quit
going through. Sometimes only the (at)company recipients go through. Also
for the cell phone emails is there a way I can customize messages sent to
the recipient? Ie. make the text short and sweet, (Server and Service status
only)


-Mike
Yes.  I believe Hobbit has a method of doing that by itself, but I use
a custom external script, as I needed to slightly modify the way
SMS-style messages are sent.  It's a short script, so I've included it
below.  Just stick it into the /var/hobbit/server/ext directory (and
make sure it has the execute bit set).  Then, create a MAIL rule as
below:

SCRIPT /var/hobbit/server/ext/oursms <address> FORMAT=SMS REPEAT
=1h

The "oursms" script:
#!/bin/sh
#VARIABLES:
msg=$BBALPHAMSG         #Full text of message
code=$ACKCODE           #The ack code
host=$BBHOSTNAME        #Host name

# CODE:
#=======
subject="!HB ${code}"  #Subject will read as "!HB <hobbit alert code>"
message="${msg}"
echo "${message}" | mail -s "${subject}" $RCPT


If you want to customize the script to change the way the subject
and/or body appear on the pager, look at the section titled "ALERT
SCRIPTS" at the bottom of the page:
http://hobbitmon.sourceforge.net/docs/manpages/man5/hobbit-alerts.cfg.5.html
list Jordan Mendler · Thu, 17 Aug 2006 12:54:27 -0700 ·
We have a Windows 2003 Server that does streaming through mms and rtsp.
Is there any functionality to allow a hobbit server to monitor these two
protocols on the streaming server?

Thanks, Jordan
list Mike Dula · Thu, 17 Aug 2006 15:02:03 -0500 ·
Great thanks!
quoted from Gary B.

-----Original Message-----
From: Gary B. [mailto:user-33b796116d5f@xymon.invalid] 
Sent: Thursday, August 17, 2006 2:33 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Alerts Question
Hi, I seem to be having issues with the reliability with the alerts
feature.
Look at the /var/log/hobbit/notifications.log and page.log files.  You
might also want to manually test the alert rules to see how they work
My Hobbit-alerts.cfg is written as followed.


HOST=server1
        MAIL user-36a709000296@xymon.invalid RECOVERED
        MAIL user-6754c2964be5@xymon.invalid RECOVERED

HOST=server2
        MAIL user-36a709000296@xymon.invalid RECOVERED
        MAIL user-6754c2964be5@xymon.invalid RECOVERED
The alert rules I have are written as:
HOST=server1 RECOVERED
    MAIL <phone address> REPEAT=interval
    MAIL <company address> REPEAT=interval
. . .
HOST=* RECOVERED
        IGNORE HOST=server
        IGNORE HOST=server1
        IGNORE HOST=server2
        MAIL user-6754c2964be5@xymon.invalid
        MAIL user-505c83ee2e58@xymon.invalid
        MAIL user-6754c2964be5@xymon.invalid
        MAIL user-6754c2964be5@xymon.invalid
You can do
   IGNORE HOST=server,server1,server2
   MAIL <address1>,<address2>
I am not using SMS but using the phone provider's email to send test
to a
phone. The messages poured in after a hobbit.sh restart, but then the
quit
going through. Sometimes only the (at)company recipients go through.
Also
for the cell phone emails is there a way I can customize messages sent
to
the recipient? Ie. make the text short and sweet, (Server and Service
status
only)


-Mike
Yes.  I believe Hobbit has a method of doing that by itself, but I use
a custom external script, as I needed to slightly modify the way
SMS-style messages are sent.  It's a short script, so I've included it
below.  Just stick it into the /var/hobbit/server/ext directory (and
make sure it has the execute bit set).  Then, create a MAIL rule as
below:

SCRIPT /var/hobbit/server/ext/oursms <address> FORMAT=SMS REPEAT
=1h

The "oursms" script:
#!/bin/sh
#VARIABLES:
msg=$BBALPHAMSG         #Full text of message
code=$ACKCODE           #The ack code
host=$BBHOSTNAME        #Host name

# CODE:
#=======
subject="!HB ${code}"  #Subject will read as "!HB <hobbit alert code>"
message="${msg}"
echo "${message}" | mail -s "${subject}" $RCPT


If you want to customize the script to change the way the subject
and/or body appear on the pager, look at the section titled "ALERT
SCRIPTS" at the bottom of the page:

http://hobbitmon.sourceforge.net/docs/manpages/man5/hobbit-alerts.cfg.5.
html
list Henrik Størner · Thu, 17 Aug 2006 22:55:14 +0200 ·
quoted from Jordan Mendler
On Thu, Aug 17, 2006 at 12:54:27PM -0700, Jordan Mendler wrote:
We have a Windows 2003 Server that does streaming through mms and rtsp.
Is there any functionality to allow a hobbit server to monitor these two
protocols on the streaming server?
Not as a standard test. I dont know anything about how these protocols
work internally, but it might be possible to find out enough to generate
a config section for them in the bb-services file.

Don't streaming protocols normally run on top of UDP? That might be a
problem, since Hobbit only does TCP tests - at least in the current
version.


Regards,
Henrik