[hobbit] Alerts Help

Josh Luthman josh at imaginenetworksllc.com
Fri Aug 1 23:42:00 CEST 2008


Click the info button for a host that matches an alert rule, it is
easier to read that way.



On 8/1/08, Omar Hermannsson <omar at basis.is> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hobbitd_alert --test is for simulating various different conditions. It
> doesn't reflect the current status of the tests.
> You can pass extra parameters to specify the color, duration, group and
> time.
>
>
> *** from the manpage ***
> - ---------------------------------------------------------------
> - --test HOST SERVICE [options]
>     Shows which alert rules matches the given HOST/SERVICE combination.
> Useful to debug configuration problems, and see what rules are used for an
> alert.
>
>     The possible options are:
>     --color=COLORNAME The COLORNAME parameter is the color of the alert:
> red, yellow or purple.
>     --duration=SECONDS The SECONDS parameter is the duration of the alert in
> seconds.
>     --group=GROUPNAME The GROUPNAME paramater is a groupid string from the
> hobbit-clients.cfg file.
>     --time=TIMESTRING The TIMESTRING parameter is the time-of-day for the
> alert, expressed as an absolute time in the epoch format (seconds since Jan
> 1 1970). This is easily obtained with the GNU date utility using the "+%s"
> output format.
> - -----------------------------------------------------------------
>
> Also instead of HOST=* you can use PAGE=pagename if you've seperated your
> hosts into subpages in bbhosts.
>
>   PAGE=Production COLOR=red EXSERVICE=%(cpu|memory|msgs) DURATION>6
>     MAIL root at localhost
>
>
> Cheers,
> Omar
>
>
> On fös  1.ágú 2008 21:16, Tim Grzechowski wrote:
>> I added the following to hobbit-alerts.cfg:
>>
>>
>>
>>      HOST=*
>>
>>           MAIL root at localhost COLOR=yellow,purple,red
>>
>>
>>
>> But when I run the bbcmd test the last line is what is throwing me off.
>>
>>
>>
>>      [root at tstfabric121 etc]# ../bin/bbcmd hobbitd_alert --test
>> tstfabric121.ce.fedex.com conn
>>
>>      2008-08-01 16:11:12 Using default environment file
>> /usr/lib/hobbit/server/etc/hobbitserver.cfg
>>
>>      00024148 2008-08-01 16:11:12 send_alert
>> tstfabric121.ce.fedex.com:conn state Paging
>>
>>      00024148 2008-08-01 16:11:12 Matching host:service:page
>> 'tstfabric121.ce.fedex.com:conn:' against rule line 125
>>
>>      00024148 2008-08-01 16:11:12 *** Match with 'HOST=*' ***
>>
>>      00024148 2008-08-01 16:11:12 Matching host:service:page
>> 'tstfabric121.ce.fedex.com:conn:' against rule line 126
>>
>>      00024148 2008-08-01 16:11:12 *** Match with 'MAIL root at localhost
>> COLOR=yellow,purple,red' ***
>>
>>      *00024148 2008-08-01 16:11:12 Mail alert with command 'mail -s
>> "Hobbit [12345] tstfabric121.ce.fedex.com:conn CRITICAL (RED)"
>> root at localhost'*
>> a few
>>       [root at tstfabric121 etc]#
>>
>>
>>
>> That line is throwing me off.  The fact that it says "CRITCAL (RED)".
>> As that host is all green that line would lead me to believe that the
>> test is not working as expected and is going to email a CRITCAL (RED)
>> email.  Correct?
>>
>>
>>
>>
>>
>> /tg
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIk4ElO5lNk+Yy9cgRAqMdAKDMBsqno6aqHnqI7PviJg5jaX4MwgCaArKy
> vAWwZR8S+EgYs5sNC+tuZ/A=
> =qKeG
> -----END PGP SIGNATURE-----
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>


-- 
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer



More information about the Xymon mailing list