[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing Hobbit alerts



Hi all,

I am looking in to setting up Hobbit alerts but I am having problems
verifying and testing the configs.

In my hobbit-alerts.cfg file I have the following entry:
HOST=tac0.lon.ws.colt.net
     MAIL martin.ward (at) colt.net

Also, in my hobbitserver.cfg I have this:
MAILC="/bin/mailx"                           # Command used to send an
e-mail with no subject
MAIL="$MAILC -s"                                # Command used to send
an e-mail with a subject

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             
00000935 2008-06-24 15:19:56 send_alert tac0.lon.ws.colt.net:proc state
Paging
00000935 2008-06-24 15:19:56 Matching host:service:page
'tac0.lon.ws.colt.net:proc:Netops' against rule line 128
00000935 2008-06-24 15:19:56 *** Match with 'HOST=tac0.lon.ws.colt.net'
***
00000935 2008-06-24 15:19:56 Matching host:service:page
'tac0.lon.ws.colt.net:proc:Netops' against rule line 128
00000935 2008-06-24 15:19:56 *** Match with 'HOST=tac0.lon.ws.colt.net'
***
00000935 2008-06-24 15:19:56 Mail alert with command '/var/mail/hobbit
"Hobbit [12345] tac0.lon.ws.colt.net:proc CRITICAL (RED)"
martin.ward (at) colt.net'

As you can see the mail alert command is completely wrong. Running this
command under different user IDs simply changes the user ID in the
"/var/mail/..." text above. I can't get Hobbit to actually run the mailx
command.

Any suggestions as to what I  am missing?

|\/|artin
-- 
Martin Ward
Network Systems Operations Specialist
DDI:	+44 (0) 20 7863 5218
Fax: 	+44 (0) 20 7863 5610
Mob: 	+44 (0) 7971 97 77 21
www.colt.net

Data | Voice | Managed Services 

Help reduce your carbon footprint | Think before you print

COLT Telecommunications, Beaufort House, 15 St Botolph Street, London,
EC3A 7QN UK
Registered in England and Wales, registered number 02452736, VAT number
GB 645 4205 50



*************************************************************************************
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.