nagios notification via sms doesn't work

Oliver A. Rojo oliver.rojo at q-linux.com
Fri Aug 29 07:43:32 CEST 2003


Hi guys!

I've just setup nagios on my Redhat 9.0 server and everything's working
just fine including its notification via sms. Now I want to configure
nagios to notify me via sms since i'm not always available to check my
emails. Using the gnokii software, when I type printf "TEXT MESSAGE" |
gnokii --sendsms <celphone number> -c0 from the console, I sucessfully
receive messages. What I did to nagios to work with this feature are the
following:

At /usr/local/nagios/etc/contacts.cfg I added the following:

  	

service_notification_commands	notify-by-email,notify-by-epager,notify-by-sms
host_notification_commands	host-notify-by-email,host-notify-by-epager,host-notify-by-sms

then at /usr/local/nagios/etc/miscommands.cfg I added:

define command{
        command_name    notify-by-sms
        command_line    printf "TEST" | gnokii --sendsms +639196918038
-c0 2 > /dev/null
        }

define command{
	command_name    host-notify-by-sms
	command_line    printf "TEST" | gnokii --sendsms <celphone no> -c0 2 >
/dev/null

         }

But this configuration doesn't seem to work at all... could you tell me
what i missed here?


thanks!

-- 
Oliver A. Rojo
Linux Technical Engineer
Q-Linux Solutions

-----BEGIN PGP MESSAGE-----
Version: GNUPG v0.4.0 (GNU/Linux)
Comment: Get GNUPG from ftp://ftp.guug.de/pub/gcrypt/

ibxH/34oeT+0yFF0qQYqSp1AXTOfKV1Khw6GXgyxrnAbUozYFHuNaSU1uI2VlezTosb+ZFpu
03+PUoiyGbq/YPgcsoZOv65TSd8q3b2JbbMDsp9SAMq3WyIRffw2YBHwCu3Jxw/lQjGEkw8r
Q5Nea1Ph2cFby6f7abIauEKWcdBxb7Nk5VOBN7yVPcp4dNBPIOijB8v/EeMz8a16YXQVYxk5
FmXuh4PzLJ09woaJRbYAJPVtLXiAHANYrqonfJ8tvM3ziP6mC20CRQebV9YWguMXJTYEC6An
hQIOAx1s/MTwZKdhEAf/WZnNy7RILDVxKJperR3k2xOPy5rNxRXxSVFvboXEQf/B01zvE8Fn
udEgGwqE808X6sbxVZ7JWiOG7k0uk+M1Dxsi7ujzZdL6rWYq830DnC/LmtWs/XM2V9HwnoRo
CUlEsXi7zPykSxhAm5TAMhn2Al5iFrF/y3ROLf2DK+xUflZxs+uvnLLl2vRRKYmy0DXdE0z1
EKB2KNMPFVruuphzspH1wrNGxKs3WU0THEp/GvVj6WR0fCjQ9n5qBaKuT8kknbXbgm5zJCTC
J+KNOw2VwOCI7lKeKvzrr/p7tg8gasRnca3a9u3cTXXWk3cWYKcw/mdghwUUwmOUCvTeZI2k
MwgA5520XYbuDi2HX0LeOKf7DEVXOPixRrrnydJcnjoAYLYO3/xpQqh0IzJ1P1HwZbVnJVNl
z+yXNvfzAVedlkQ+98G/yraLtzASWNwbpaQZ
=xYcK
-----END PGP MESSAGE-----



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list