[Nagiosplug-help] Sms via gnokii

Mehmet Çelikel mehmet.celikel at argela.com.tr
Tue Aug 8 08:16:52 CEST 2006


Hi list,

i am using gnokii to send sms, it is working good while sending manual but
when i authomate it with nagios it doesnt work. 


define command{
                command_name            notify-by-sms
                command_line            $USER1$/sms_by_gnokii.sh
$CONTACTPAGER$ "Nagios has Alert\n $HOSTALIAS$ is $HOSTSTATE$ $HOSTNAME$:
$SERVICEDESC$ is $SERVICESTAT$"
        }

sms_by_gnokii.sh 

mess=$2
number=$1
echo $mess | gnokii --sendsms $number  



i think real problem isn't with gnokii so i changed the last line with
another command like 
echo "nagios" > /usr/local/nagios/x.y  . but it didnt work again,command
line didnt make a new file which is name x.y, 
what is my fault?

any help appreciated,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 1796 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20060808/efa3a817/attachment.bin>


More information about the Help mailing list