Notification script problems.. How do I debug

Toto Capuccino shoktai at gmail.com
Thu Jan 26 18:20:41 CET 2006


What do your services.cfg file conrtain about enabling sms messages ?

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


More information about the Users mailing list