I have configured nagios sms alert in debian. I have configured nagios with gsmutils. using gsmutils test sms can be send. But nagios can't send sms to my cell number. Here is the configuration of my nagios server.
contacts.cfg
===========
define contact{
contact_name nagiosadmin
use generic-contact
alias Nagios Admin
email
m@test.com
service_notification_commands notify-service-by-sms
host_notification_commands notify-host-by-sms
pager 01833300000
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
command.cfg
============
define command{
command_name notify-service-by-sms
command_line /usr/bin/gsmsendsms -d /dev/ttyUSB2 $CONTACTPAGER$ "Nagios - $NOTIFICATIONTYPE$ : $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ($OUTPUT$)"
}
define command{
command_name notify-host-by-sms
command_line /usr/bin/gsmsendsms -d /dev/ttyUSB2 $CONTACTPAGER$ "Nagios - $NOTIFICATIONTYPE$ : $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ($OUTPUT$)"
}
can anyone help me about this issue???