<!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=361005511-21052004>Jason,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=361005511-21052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=361005511-21052004>As i
understood, gnokii is working and nagios can send sms's, but in case more sms's
need to be send to several people, the first gnokii process is occupying the
serial com port and additional sms's or lost.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=361005511-21052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=361005511-21052004>Check
next site:</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=361005511-21052004>Gnokii-smstools provides a
way to spool short messages (SMS) using a Nokia cellphone. It takes advantage of
both the Nokia phone driver from gnokii and the queueing code from SMS-Tools.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#3366cc><SPAN class=361005511-21052004><A
href="http://juraj.bednar.sk/work/software/smstools/gnokii-smstools/">http://juraj.bednar.sk/work/software/smstools/gnokii-smstools/</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=361005511-21052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=361005511-21052004>kind
regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=361005511-21052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=361005511-21052004>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> vrijdag 21 mei 2004
13:29<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B>
[Nagios-users] passing macro variables to shell
script<BR><BR></FONT></DIV><BR><FONT face=sans-serif size=2>Hi all,</FONT>
<BR><BR><FONT face=sans-serif size=2>In an attempt to SMS to a number of
recipients using a serial connected mobile phone and gnokii I have run into a
slight snag.</FONT> <BR><BR><FONT face=sans-serif size=2>The only way you can
get gnokii to send to multiple destinations is to set up a script like
this</FONT> <BR><BR><FONT size=3><TT>for x in 040404040 1414141 <BR>do
<BR>echo 'Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$' |
/usr/local/bin/gnokii --sendsms $x <BR>sleep 60 (if you need this?) <BR>done
<BR></TT></FONT><BR><FONT face=sans-serif size=2>And run this script from the
misccommands.cfg file when the trigger is activated. Of course it would
be nice to have the macro $xxx$ values sent as well but this does not happen
in the above example. </FONT><BR><BR><FONT face=sans-serif size=2>Does anyone
have any idea if it is possibe to parse variables from nagios to an external
shell script.</FONT> <BR><BR><FONT face=sans-serif size=2>Kind reards</FONT>
<BR><BR><FONT face=sans-serif size=2>Jason</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>