<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>[Nagios-users] Custom Notification Script</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>Don't you mean $CONTACTPAGER$? $CONTACTPAGER} is incorrect. You don't
specifically say you did it but you should also verify that the script is
executable as the nagios user if you haven't already.</DIV>
<DIV> </DIV>
<DIV>--</DIV>
<DIV>Marc</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Upayavira
[mailto:uv@upaya.co.uk] <BR><B>Sent:</B> Thu 4/22/2004 3:41 AM <BR><B>To:</B>
nagios-users@lists.sourceforge.net <BR><B>Cc:</B> <BR><B>Subject:</B>
[Nagios-users] Custom Notification Script<BR><BR></FONT></DIV>
<P><FONT size=2>Hi,</FONT> </P>
<P><FONT size=2>I've just installed Nagios, which looks great.</FONT> </P>
<P><FONT size=2>We have our own SMS gateway, which is accessed via an HTTP
post. I have </FONT><BR><FONT size=2>a Perl script that is intended to send
the notification messages.</FONT> </P>
<P><FONT size=2>When I run the script from the command line, it works
fine.</FONT> </P>
<P><FONT size=2>I have put a command into /etc/nagios/misccommands.cfg like
so:</FONT> <BR><FONT size=2>define command{</FONT> <BR><FONT
size=2> command_name notify-by-sms</FONT>
<BR><FONT size=2> command_line
/home/web/bin/sendSMS.pl $CONTACTPAGER} "This is </FONT><BR><FONT size=2>the
message"</FONT> <BR><FONT size=2> }</FONT> <BR><FONT
size=2>Then, if I refer to notify-by-sms, notify-by-email, only the email
goes. </FONT><BR><FONT size=2>The script logs to a file, so I know it isn't
being called (I've tried </FONT><BR><FONT size=2>logging in as the nagios user
and running the script, and it works).</FONT> </P>
<P><FONT size=2>Any ideas what I need to do to get these notifications
working? With </FONT><BR><FONT size=2>this, I'm pretty much there with my
Nagios installation, and I'll be </FONT><BR><FONT size=2>able to scrap a ream
of perl based monitoring scripts.</FONT> </P>
<P><FONT size=2>Thanks in advance,</FONT> </P>
<P><FONT size=2>Upayavira</FONT> <BR><FONT size=2>North London, Uk</FONT>
</P><BR><BR><BR>
<P><FONT size=2>-------------------------------------------------------</FONT>
<BR><FONT size=2>This SF.Net email is sponsored by: IBM Linux Tutorials</FONT>
<BR><FONT size=2>Free Linux tutorial presented by Daniel Robbins, President
and CEO of</FONT> <BR><FONT size=2>GenToo technologies. Learn everything from
fundamentals to system</FONT> <BR><FONT size=2>administration.<A
href="http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click">http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click</A></FONT>
<BR><FONT size=2>_______________________________________________</FONT>
<BR><FONT size=2>Nagios-users mailing list</FONT> <BR><FONT
size=2>Nagios-users@lists.sourceforge.net</FONT> <BR><FONT size=2><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
<BR><FONT size=2>::: Please include Nagios version, plugin version (-v) and OS
when reporting any issue. </FONT><BR><FONT size=2>::: Messages without
supporting info will risk being sent to /dev/null</FONT>
</P></BLOCKQUOTE>
</BODY>
</HTML>