What do your services.cfg file conrtain about enabling sms messages ?<br><br><div><span class="gmail_quote">2006/1/26, Chad Osmond <<a href="mailto:chad.osmond@holburn.com">chad.osmond@holburn.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I'm updating my notification to send SMS messages across the Canadian<br>Rogers network. I've found a WWW to SMS gateway that lets me send<br>messages, but I need to find why my script is failing.<br><br>My Notification script is as follows:
<br># 'notify-by-sms' command definition<br>define command{<br>        command_name    notify-by-sms<br>        command_line    /usr/lib/nagios/plugins/sms-msg.pl -m "Host<br>'$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$"
<br>-p $CONTACTPAGER$<br>        }<br><br>My Script:  /usr/lib/nagios/plugins/sms-msg.pl expects -m "message" -p<br>9055551212  and then feeds that into a system(curl ....); command. I<br>couldn't get LWP to work, so I used a system (curl); command.
<br>If I copy the command line and fill in the values, it works fine. But if<br>I make a service go critical I don't receive notification, although my<br>e-mail notification works..<br><br>Any suggestions, or ideas?<br><br>
<br>-------------------------------------------------------<br>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files<br>for problems?  Stop!  Download the new AJAX search engine that makes<br>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
<br><a href="http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642">http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642</a><br>_______________________________________________
<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>