<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4930.1700" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=897060210-19052004>Hi 
Jason,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=897060210-19052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=897060210-19052004>I use 
also gnokii to send sms's.  I don't know your set-up, do you have a Nokia 
connected to a serial port ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=897060210-19052004>Imy 
configuration i have a modem connected to the serial port and i establish a 
call to a local provider smc center. So i am able to drop more then 1 sms at the 
time in one connection. Only the call to the smc center is charged. No charge 
for the sms's itself.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=897060210-19052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=897060210-19052004>So i 
can not really simulate, but it seems for me that the $CONTACTPAGERS$ macro is 
wrong, it must be $CONTACTPAGER$.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=897060210-19052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=897060210-19052004>kind 
regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=897060210-19052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=897060210-19052004>ludo</SPAN></FONT></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Onsite DeTeWe 
  [mailto:Onsite.DeTeWe@firstgroup.com]<BR><B>Sent:</B> woensdag 19 mei 2004 
  11:34<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> 
  [Nagios-users] SMS notifications<BR><BR></FONT></DIV><BR><FONT face=sans-serif 
  size=2>Hi All,</FONT> <BR><BR><FONT face=sans-serif size=2>I have just setup a 
  mobile gateway on our nagios box (6310i with serial lead ;-).  Got all 
  the SMS stuff working using gnokii which works a treat.  Recommend it to 
  anyone.  However, when I try and get nagios to use a new notify routine 
  it fails to send the text.</FONT> <BR><BR><FONT face=sans-serif size=2>Debug 
  so far.</FONT> <BR><BR><FONT face=sans-serif size=2>Got gnokii to send SMS 
  direct.</FONT> <BR><FONT face=sans-serif size=2>Added notify-by-sms to 
  misccommands.cfg.</FONT> <BR><FONT face=sans-serif size=2>      
    I know the above works as I then cut the command from the .cfg and run 
  it from the command line direct and it works.</FONT> <BR><BR><FONT 
  face=sans-serif size=2>Could this be a permissions thing associated with the 
  nagios user???</FONT> <BR><BR><FONT face=sans-serif size=2>When I force a host 
  down and look in the syslog the notification does try and send via the correct 
  command, it seems like just the command from within nagios is not 
  working.</FONT> <BR><BR><FONT face=sans-serif size=2>Hope someone can 
  help.</FONT> <BR><BR><FONT face=sans-serif size=2>Regards</FONT> <BR><BR><FONT 
  face=sans-serif size=2>Jason</FONT> <BR><BR><BR><BR><FONT face=sans-serif 
  size=2>This is the command line.</FONT> <BR><BR><FONT face=sans-serif 
  size=2>/usr/bin/printf "%b" "**Nagios**\nType: $NOTIFICATIONTYPE$\nHost: 
  $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: 
  $OUTPUT$\nDate/Time: $DATETIME$\n" | /usr/local/bin/gnokii --sendsms 
  $CONTACTPAGERS$</FONT><FONT 
  size=3><BR><BR>**********************************************************************<BR>This 
  message is confidential. It may not be disclosed to, or used by, <BR>anyone 
  other than the addressee. If you receive this message in <BR>error, please 
  advise us immediately.<BR><BR>Internet email is not necessarily secure. First 
  does not accept<BR>responsibility for changes to any email which occur after 
  the email<BR>has been sent. Attachments to this email could contain 
  software<BR>viruses which could damage your system. First have checked 
  the<BR>attachments for viruses before sending, but you should 
  virus-check<BR>them before 
  opening.<BR><BR>http://www.firstgroup.com<BR>**********************************************************************<BR></BLOCKQUOTE></FONT></BODY></HTML>