Misccommands...

Katja Lehmann katja.lehmann at web.de
Mon Feb 10 11:57:19 CET 2003


Hi there!
Well my Nagios works really fine since 4 month right now but I have just 2 problems with it:
I want that my nagios notificates me via sms and ring me on the phone so I wrote two scripts. One to  connect to our sms-gateway and for the phone I changed the /etc/wvdial.conf to ring me.
Well... when I exec the two scripts from commandline e.g. ./wvdial it is functionally.
But when I write it into misccomands it does not work.
Of course I wrote the notification command into the contacts.cfg but I did not recive a sms or a calling from nagios.

Here my misccommands.cfg:

define command {
name                            notify-by-phone
command_name                    notify-by-phone
command_line                    /usr/bin/wvdial
}

define command {
name                            host-notify-by-phone
command_name                    host-notify-by-phone
command_line                    /usr/bin/wvdial
}


define command {
name                            notify-by-sys
command_name                    notify-by-sms
command_line                    /usr/bin/printf "%b" "Nagios Notification Type:$NOTIFICATIONTYPE$ Service:$SERVICEDESK$ Host:$
HOSTALIAS$ Adress:$HOSTADDRESS$ State:$SERVICESTATE$ Date:$DATETIME$ Info:$OUTPUT$" > /root/smsmsg
}

define command {
name                            host-notify-by-sms
command_name                    host-notify-by-sms
command_line                    /usr/bin/printf "%b" "test" > /root/smsmsg
}

I hope that someboddy can help me!!!!


Katja
______________________________________________________________________________
Nur ein Zuhause im Internet: Verwalten Sie alle Ihre E-Mail-Adressen
einfach bei WEB.DE FreeMail! http://freemail.web.de/features/?mc=021124



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list