Sending SMS via gnokii


Hmm don`t know what to start. I have a problem with sending SMS via gnokii. My command looks like this

define command{
command_name notify-by-sms
command_line /usr/bin/printf "$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ ($OUTPUT$)" | /usr/bin/gnokii --sendsms $CONTACTPAGER$

my contact

define contact{
        contact_name                    technik
        alias                           Technik
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-by-email, notify-by-sms
        host_notification_commands      host-notify-by-email, host-notify-by-sms
        pager                           +48505192341

What am I doing wrong?


Which Nagios version are you running with? I used to run it with v3.0.1 I could not send sms messages neither, altho I could send them manually via the shell.

Are you able to send a sms manually via shell?

I’ve just updated my Nagios to version 3.0.6 and since then everything works just great (it also fixed the sound issue i had, sound notifications were not played in the webbrowser).