I am successfully using the software from smsclient.org to send text messages to mobile phones manually using the following command:
sms_client vodafone_tap:1234567890 "Message Text" This work brilliantly but I have tried to integrate this into Nagios with no success :( I have created the following notification command within my misccommands.cfg file: # 'host-notify-by-sms' command definition define command{ command_name host-notify-by-sms command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/sms_client vodafone_tap:$CONTACTADDRESS1$ } I have then got the following within my contacts.cfg file: define contact{ contact_name 1533 alias Peter Shankland service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email,host-notify-by-sms email [EMAIL PROTECTED] address1 447977906721 } Finally, this gets called within one of my hosts. I get the following within my syslog messages: May 9 09:51:51 RPL-RENAULT nagios: HOST ALERT: CISCO1200_RPL1-MO-1;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.60 ms May 9 09:51:51 RPL-RENAULT nagios: HOST NOTIFICATION: 1533;CISCO1200_RPL1-MO-1;UP;host-notify-by-sms;PING OK - Packet loss = 0%, RTA = 0.60 ms May 9 09:51:51 RPL-RENAULT nagios: HOST NOTIFICATION: 1533;CISCO1200_RPL1-MO-1;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.60 ms and the following within the Nagios Event Log: [09-05-2006 09:51:51] HOST NOTIFICATION: 1533;CISCO1200_RPL1-MO-1;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.60 ms [09-05-2006 09:51:51] HOST NOTIFICATION: 1533;CISCO1200_RPL1-MO-1;UP;host-notify-by-sms;PING OK - Packet loss = 0%, RTA = 0.60 ms Everything appears to be working but I get no SMS text message. Am I doing something obviously wrong as I simply want to run the command at the top of this Email. Thanks. Pete. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null