[hobbit] Testing Hobbit alerts

Ward, Martin Martin.Ward at colt.net
Wed Jun 25 16:56:21 CEST 2008


> Always use the "bbcmd" utility to setup the environment for 
> ...
> So your command should be
>    bbcmd hobbitd_alert --test tac0.lon.ws.colt.net proc             
> 

Thanks Henrik, with that command I get:
00014153 2008-06-25 14:49:28 Matching host:service:page
'tac0.lon.ws.colt.net:proc:Netops' against rule line 128
00014153 2008-06-25 14:49:28 *** Match with 'HOST=tac0.lon.ws.colt.net'
***
00014153 2008-06-25 14:49:28 Matching host:service:page
'tac0.lon.ws.colt.net:proc:Netops' against rule line 128
00014153 2008-06-25 14:49:28 *** Match with 'HOST=tac0.lon.ws.colt.net'
***
00014153 2008-06-25 14:49:28 Mail alert with command '/bin/mailx -s
"Hobbit [12345] tac0.lon.ws.colt.net:proc CRITICAL (RED)"
martin.ward at colt.net'

And I can confirm that running the mailx command specified DOES send an
email, so the mail system itself is working correctly.

Unfortunately Hobbit itself is not generating anything. My
hobbit-alerts.cfg file looks like this:

HOST=tac0.lon.ws.colt.net
     MAIL martin.ward at colt.net repeat=5m

So any alert should email me. I have a simple test set up so that if I
am not editing a specific file a process in not found and the "procs"
column goes red, but no emails are forthcoming. I've even tried changing
the "mailx" command to a simple script that logs whatever is output from
Hobbit to a log file, but nothing comes out. It looks like the alerting
functionality is not working or has been disabled somehow, but that
makes no sense.

Can you give me some more pointers as to where to look?

|\/|

-- 



> -----Original Message-----
> From: Henrik Stoerner [mailto:henrik at hswn.dk] 
> Sent: 24 June 2008 22:39
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Testing Hobbit alerts
> 
> 
> On Tue, Jun 24, 2008 at 04:22:05PM +0100, Ward, Martin wrote:
> > Also, in my hobbitserver.cfg I have this:
> > MAILC="/bin/mailx"
> > MAIL="$MAILC -s"
> > 
> > So the theory goes that when an alert occurs the /bin/mailx 
> command is 
> > executed with various different parameters.
> > 
> > The problem is, when I try and test it I get the following:
> > 
> > hobbit at hbt0:/opt/hobbit/server/etc>hobbitd_alert --test 
> tac0.lon.ws.colt.net proc             
> 
> Always use the "bbcmd" utility to setup the environment for 
> your tests. That's the only way you can make sure 
> hobbitd_alert inherits the settings from your 
> hobbitserver.cfg - if you don't use bbcmd, then it will use 
> the built-in (compile-time) defaults.
> 
> So your command should be
>    bbcmd hobbitd_alert --test tac0.lon.ws.colt.net proc             
> 
> 
> Regards,
> Henrik
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
> 
> 
> 


*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. 

The contents of this message and its attachments are confidential and may also be subject to legal privilege.  If you are not the named addressee and/or have received this message in error, please advise us by e-mailing security at colt.net and delete the message and any attachments without retaining any copies. 

Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. 

No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.  

Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.




More information about the Xymon mailing list