Nagios sms notification not working
Posted: Wed Dec 04, 2013 5:17 am
Hello all,
I have such an api to get sms from nagios
working from command line but not working from command line. I restarted nagios succesfully without error. But not getting sms from nagios.
any help will be appreciated.
I've tried clickatell api, it was working.
I have such an api to get sms from nagios
Code: Select all
wget "http://api.netgsm.com.tr/bulkhttppost.asp?usercode=xxx&password=xxx&gsmno=xxx&message='** NAGIOS**'&msgheader=NAGIOS"Code: Select all
define command{
command_name service-notify-by-sms
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$ \nState: $HSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | wget "http:///api.netgsm.com.tr/ulkhttppost.asp?usercode=xxx&password=xxx&gsmno=$CONTACTPAGER&message='** $NOTIFICATIONTYPE$ Service Alert: $SERVICEDESC$ on $HOSTNAME$ State: $SERVICESTATE$ @ $LONGDATETIME$ **'&msgheader=NAGIOS"
}I've tried clickatell api, it was working.