Trouble with Hobbit Alerts

Nathan Cavanagh ncavanagh at bimedia.net
Thu Jun 26 15:48:19 CEST 2008


Hello all,

I hope that someone might be able to help me here.
I have Hobbit server 4.2.0 installed on a Pc running Ubuntu 8.  The  
server is configured to monitor a couple of test servers (one  
internal, and one external).  Everything seems to function fine except  
for the alerts.
My /etc/hobbit/hobbit-alerts.cfg file has the following lines:
	
	HOST=bimload1 SERVICE=cpu,disk,memory,procs,conn
		SCRIPT /usr/bin/sendalerts.pl n8
		MAIL me at bimedia.net

When I try to test this using:  ./bbcmd hobbitd_alert --test bimload1  
cpu I get the following:

2008-06-26 08:34:07 Using default environment file /usr/lib/hobbit/ 
client/etc/hobbitserver.cfg
00027518 2008-06-26 08:34:07 send_alert bimload1:cpu state Paging
00027518 2008-06-26 08:34:07 Matching host:service:page  
'bimload1:cpu:' against rule line 120
00027518 2008-06-26 08:34:07 *** Match with 'HOST=bimload1  
SERVICE=cpu,disk,memory,procs,conn' ***
00027518 2008-06-26 08:34:07 Matching host:service:page  
'bimload1:cpu:' against rule line 120
00027518 2008-06-26 08:34:07 *** Match with 'HOST=bimload1  
SERVICE=cpu,disk,memory,procs,conn' ***
00027518 2008-06-26 08:34:07 Script alert with command '/usr/bin/ 
sendalerts.pl' and recipient n8
00027518 2008-06-26 08:34:07 Matching host:service:page  
'bimload1:cpu:' against rule line 120
00027518 2008-06-26 08:34:07 *** Match with 'HOST=bimload1  
SERVICE=cpu,disk,memory,procs,conn' ***
00027518 2008-06-26 08:34:07 Mail alert with command 'mailx -s "Hobbit  
[12345] bimload1:cpu CRITICAL (RED)" me at bimedia.net'

But when I check my mail logs and syslogs and hobbit logs it looks  
like the sendalert.pl script never fires off, and the email is never  
sent.  I can send email using mailx from the command line and i can  
run the sendalert.pl script form the command line, and both produce  
the expected results.  I have even sent the permissions for the  
sendalrt.pl script to be 777 (yes this is a security risk but for now  
I just wanted to make sure it was not a permissions issue).  Why is  
the script not running not the email being sent  via hobbit-alert? Am  
I missing anything? I would greatly appreciate any assistance in this  
matter

Thank you,
N8




More information about the Xymon mailing list