Help with SMS Notification with smstools

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stonehill
Posts: 22
Joined: Mon May 02, 2011 9:29 pm

Help with SMS Notification with smstools

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Help with SMS Notification with smstools

Post 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.
Locked