Xymon Mailing List Archive search

Trouble with Hobbit Alerts

list Nathan Cavanagh
Thu, 26 Jun 2008 08:48:19 -0500
Message-Id: <user-22760fb017eb@xymon.invalid>

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 user-7a4fc2b9b009@xymon.invalid

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)" user-7a4fc2b9b009@xymon.invalid'

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