Misccommands...

Karl DeBisschop karl at debisschop.net
Mon Feb 10 12:17:49 CET 2003


At first blush, it appears unlikely that the webserver user or the
nagios user would be able to access /root/smsmsg. Maybe the file need to
go int /tmp?

--
Karl

On Mon, 2003-02-10 at 05:57, Katja Lehmann wrote:
> 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
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users



-------------------------------------------------------
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