Title: sms notifications

Thanks a lot Marco…works perfect!!...

 

Regards,

 

Emilio

 


De: Marco Borsani [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 08 de junio de 2006 14:23
Para: 'Guillermo Bellettini'; [email protected]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: R: [Nagios-users] sms notifications

 

 

Here it is my sintax:

 

define command{
        command_name    notify-by-sms
        command_line    /usr/local/bin/sendsms $CONTACTPAGER$ "Service:$SERVICEDESC$ Host:$HOSTALIAS$ State:$SERVICESTATE$. $OUTPUT$ Date:$SHORTDATETIME$"
        }

Regards

Marco


Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Guillermo Bellettini
Inviato: giovedì 8 giugno 2006 14.05
A: [email protected]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Oggetto: [Nagios-users] sms notifications
Priorità: Alta

Hi there, I’ve installed sms tool for sms-notification. The daemon works ok but how do I setup nagios to send service notifications by sms?

I’ve defined the following command but it is not working.

define command{

        command_name    notify-by-epager

        command_line    TMPFILE=`mktemp /var/spool/sms/tmp/temp.XXXXXX`;/usr/bin/printf "%b" "To: $CONTACTPAGER$\n\n$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$"> $TMPFILE;mv $TMPFILE /var/spool/sms/outgoing

        }

 

Any suggestions?

thanks

_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to