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.

Reply via email to