<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Testing Hobbit alerts</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am looking in to setting up Hobbit alerts but I am having problems verifying and testing the configs.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">In my hobbit-alerts.cfg file I have the following entry:</FONT>

<BR><FONT SIZE=2 FACE="Arial">HOST=tac0.lon.ws.colt.net</FONT>

<BR><FONT SIZE=2 FACE="Arial">     MAIL martin.ward@colt.net</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Also, in my hobbitserver.cfg I have this:</FONT>

<BR><FONT SIZE=2 FACE="Arial">MAILC="/bin/mailx"                           # Command used to send an e-mail with no subject</FONT>

<BR><FONT SIZE=2 FACE="Arial">MAIL="$MAILC -s"                                # Command used to send an e-mail with a subject</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">So the theory goes that when an alert occurs the /bin/mailx command is executed with various different parameters.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The problem is, when I try and test it I get the following:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">hobbit@hbt0:/opt/hobbit/server/etc>hobbitd_alert --test tac0.lon.ws.colt.net proc             </FONT>

<BR><FONT SIZE=2 FACE="Arial">00000935 2008-06-24 15:19:56 send_alert tac0.lon.ws.colt.net:proc state Paging</FONT>

<BR><FONT SIZE=2 FACE="Arial">00000935 2008-06-24 15:19:56 Matching host:service:page 'tac0.lon.ws.colt.net:proc:Netops' against rule line 128</FONT>

<BR><FONT SIZE=2 FACE="Arial">00000935 2008-06-24 15:19:56 *** Match with 'HOST=tac0.lon.ws.colt.net' ***</FONT>

<BR><FONT SIZE=2 FACE="Arial">00000935 2008-06-24 15:19:56 Matching host:service:page 'tac0.lon.ws.colt.net:proc:Netops' against rule line 128</FONT>

<BR><FONT SIZE=2 FACE="Arial">00000935 2008-06-24 15:19:56 *** Match with 'HOST=tac0.lon.ws.colt.net' ***</FONT>

<BR><FONT SIZE=2 FACE="Arial">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@colt.net'</FONT></P>

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Any suggestions as to what I  am missing?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">|\/|artin</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- </FONT>

<BR><FONT SIZE=2 FACE="Arial">Martin Ward</FONT>

<BR><B><FONT SIZE=2 FACE="Arial">Network Systems Operations Specialist</FONT></B>

<BR><FONT SIZE=2 FACE="Arial">DDI:    +44 (0) 20 7863 5218</FONT>

<BR><FONT SIZE=2 FACE="Arial">Fax:    +44 (0) 20 7863 5610</FONT>

<BR><FONT SIZE=2 FACE="Arial">Mob:    +44 (0) 7971 97 77 21</FONT>

<BR><A HREF="file://www.colt.net"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">www.colt.net</FONT></U></A>
</P>

<P><FONT SIZE=2 FACE="Arial">Data | Voice | Managed Services </FONT>
</P>

<P><FONT COLOR="#008000" SIZE=2 FACE="Arial">Help reduce your carbon footprint | Think before you print</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">COLT Telecommunications, Beaufort House, 15 St Botolph Street, London, EC3A 7QN UK</FONT>

<BR><FONT SIZE=2 FACE="Arial">Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50</FONT>
</P>

<FONT SIZE=3><BR>
<BR>
*************************************************************************************<BR>
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. <BR>
<BR>
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@colt.net and delete the message and any attachments without retaining any copies. <BR>
<BR>
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. <BR>
<BR>
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.  <BR>
<BR>
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.<BR>
</FONT>
</BODY>
</HTML>