View FAQ

[ Return To FAQ Index | Search The FAQs ]

FAQ Database : Nagios : Notifications

Title:How can I send notifications via SMS?
FAQ ID:F0065
Submitted By:Daniel Geske 
Last Updated:06/02/2009

Description:User would like to have notifications sent out in SMS using a phone line. 


SMS messages can be sent with several programs, one of which is yaps (Yet Another Pager Software).

Once yaps is installed and working, command definitions like these can be added and used.

define command{
        command_name    notify-by-sms
        command_line    /usr/bin/yaps -t $CONTACTPAGER$ '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ ($OUTPUT$)'

define command{
        command_name    host-notify-by-sms
        command_line    /usr/bin/yaps -t $CONTACTPAGER$ '$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$ ($OUTPUT$)'

You can also use a hardware product like the SMS FoxBox to send SMS messages.


Related FAQs:
F0113How can I have notifications sent to an alphanumeric pager?
F0279How to send sms-notifications with sms-client
Keywords:notification isdn phone sms yaps