Page 1 of 1

Help with SMS Notification with smstools

Posted: Fri May 27, 2011 11:39 pm
by stonehill
Hi all,

I have successfully configured smstools and i am able to send sms from the mobile connected with the nagios server. can you guys please help me with the configuration so it will send notification as sms also. PLease check the below configuration if this will work

# 'notify-by-sms' command definition
define command{
command_name notify-by-sms
command_line /usr/bin/smssend $CONTACTPAGER$ '$SERVICEDESC$ auf $HOSTNAME$ State: $SERVICESTATE$ @$DATETIME$ Info: $OUTPUT$'
}

# 'host-notify-by-sms' command definition
define command{
command_name host-notify-by-sms
command_line /usr/bin/smssend $CONTACTPAGER$ "Host $HOSTALIAS$ is $HOSTSTATE$ @$DATETIME$ Info: $OUTPUT$"
}



Thanks in advance

Vikram

Re: Help with SMS Notification with smstools

Posted: Tue May 31, 2011 2:34 pm
by mguthrie
You should be able to add this to the list of "notification commands" for the contacts that you'd like to use. Don't remove the default notification commands that are already there, but add this command in addition to them and that should work for you. Access the Core Config Manager->Contacts, and open the list of host or service notification commands.