send Notify by sms

Marzieh Raoufnezhad raoufnezhad at gmail.com
Thu Apr 13 07:35:13 CEST 2006


Hi,

I am using nagios-2.0 for Network Monitoring,
I want to send notification by sms, so i install smstools. This software
work only in command line, but when I add it to nagios program,
I don't received any alert with sms.

I define below lines in misccommand.cfg file

# 'notify-by-sms' command definition
define command{
        command_name    notify-by-sms
        command_line    /usr/bin/printf "%b" "$NOTIFICATIONTYPE$:
$HOSTADDRESS$ $HOSTALIAS$:$SERVICEDESC$ is $SERVICESTATE$" |
/usr/local/bin/sendsms $CONTACTPAGER$
        }

# notify-by-SMS command definition
define command{
        command_name    host-notify-by-sms
        command_line    /usr/bin/printf "%b" "Host '$HOSTALIAS$' is
$HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /usr/local/bin/sendsms
$CONTACTPAGER$
        }

Would you please help me?
Why I can't receive notification by sms?

Thanks a  lot.

Raoufnezhad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060413/36d81993/attachment.html>


More information about the Users mailing list