[hobbit] Alerts Help

Tim Grzechowski tim.grzechowski.osv at fedex.com
Fri Aug 1 21:49:51 CEST 2008


With this hobbit naming issue coming up it looks like I asked a question at
the wrong time.  ;)

 

This may be much easier. could somebody cut'n'paste part of their
hobbit-alerts.cfg here that uses email for alerts.  If you have some with
subpages that would be most excellent.

 

Thanks and everyone have a great weekend!

/tg

 

  _____  

From: Tim Grzechowski [mailto:tim.grzechowski.osv at fedex.com] 
Sent: Thursday, July 31, 2008 4:57 PM
To: hobbit at hswn.dk
Subject: [hobbit] Alerts Help

 

I just cannot figure how to set up alerts.  

 

Maybe I can save you lots of reading. All I am trying to do at this time I
am just looking to set up basic paging to an email (list) address. 

 

I will want to break it down to subpages for fabric servers, DB servers, web
servers and weblogic server.

 


But. here is what I am working with now.  For now I have, or so I thought,
narrowed it down to the most basic of configuration and still cannot get it
to work.

 

 

hobbit-alerts.cfg (added to the bottom of the file).

 

HOST=*

        MAIL root at localhost     SERVICE=conn    color=yellow

        MAIL root at localhost     SERVICE=cONN    color=red

        MAIL root at localhost     SERVICE=conn    color=purple

 

 

 

When I run bbcmd with just --test I get the following:

 

[root at tstfabric121 etc]# ../bin/bbcmd hobbitd_alert --test
tstfabric121.ce.fedex.com procs

2008-07-31 16:48:03 Using default environment file
/usr/lib/hobbit/server/etc/hobbitserver.cfg

00024059 2008-07-31 16:48:03 send_alert tstfabric121.ce.fedex.com:procs
state Paging

00024059 2008-07-31 16:48:03 Matching host:service:page
'tstfabric121.ce.fedex.com:procs:' against rule line 125

00024059 2008-07-31 16:48:03 *** Match with 'HOST=*' ***

00024059 2008-07-31 16:48:03 Matching host:service:page
'tstfabric121.ce.fedex.com:procs:' against rule line 126

00024059 2008-07-31 16:48:03 Failed 'MAIL root at localhost        SERVICE=conn
color=yellow' (service not in include list)

00024059 2008-07-31 16:48:03 Matching host:service:page
'tstfabric121.ce.fedex.com:procs:' against rule line 127

00024059 2008-07-31 16:48:03 Failed 'MAIL root at localhost        SERVICE=cONN
color=red' (service not in include list)

00024059 2008-07-31 16:48:03 Matching host:service:page
'tstfabric121.ce.fedex.com:procs:' against rule line 128

00024059 2008-07-31 16:48:03 Failed 'MAIL root at localhost        SERVICE=conn
color=purple' (service not in include list)

 

 

With --debug too I get this:

 

[root at tstfabric121 etc]# ../bin/bbcmd hobbitd_alert --test --debug
tstfabric121.ce.fedex.com procs

2008-07-31 16:48:43 Using default environment file
/usr/lib/hobbit/server/etc/hobbitserver.cfg

2008-07-31 16:48:43 Host not found in bb-hosts - assuming it is on the top
page

00024284 2008-07-31 16:48:43 send_alert --debug:tstfabric121.ce.fedex.com
state Paging

00024284 2008-07-31 16:48:43 Matching host:service:page
'--debug:tstfabric121.ce.fedex.com:' against rule line 125

00024284 2008-07-31 16:48:43 *** Match with 'HOST=*' ***

00024284 2008-07-31 16:48:43 Matching host:service:page
'--debug:tstfabric121.ce.fedex.com:' against rule line 126

00024284 2008-07-31 16:48:43 Failed 'MAIL root at localhost        SERVICE=conn
color=yellow' (service not in include list)

00024284 2008-07-31 16:48:43 Matching host:service:page
'--debug:tstfabric121.ce.fedex.com:' against rule line 127

00024284 2008-07-31 16:48:43 Failed 'MAIL root at localhost        SERVICE=cONN
color=red' (service not in include list)

00024284 2008-07-31 16:48:43 Matching host:service:page
'--debug:tstfabric121.ce.fedex.com:' against rule line 128

00024284 2008-07-31 16:48:43 Failed 'MAIL root at localhost        SERVICE=conn
color=purple' (service not in include list)

 

 

 

Now the host, tstfabric121.ce.fedex.com, is in the bb-host file.  And, in
fact, is the hobbit server.

 

 

Also, so long as I am burning bandwidth, I am not understanding how the
page/subpage work into this?  I do have subpage's set up in my bb-hosts
file.

 

 

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080801/89378373/attachment.html>


More information about the Xymon mailing list