|
From: | Efe Ohimor |
Subject: | Using gnokii to send sms |
Date: | Fri, 15 Apr 2005 15:16:07 +0100 |
Hello guys,
Has anybody been able to get nagios to send sms using gnokii?I have installed gnokii and I am able to send sms from the command prompt with the sms being successful.But I need the process to be automated such that nagios sends me sms when a host or service is down.Also I noticed that if su to nagios I rececieve the error that nagios permision denied.But when su as root the sms is sent successfully from command prompt. In my nagios miscommands.cfg file I have /usr/bin/printf "%b" "Host: $HOSTADDRESS$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nDate: $DATETIME$" | /usr/bin/gnokii --sendsms $CONTACTPAGER$ while my /etc/gnokiirc file has the following config [global] port = /dev/ttyS0 model = 6210 initlength = default connection = serial use_locking = no serial_baudrate = 19200 smsc_timeout = 10 [gnokiid]
bindir = /usr/local/sbin/ [logging]
debug = on rlpdebug = on xdebug = on Permissions
address@hidden root]# ll -lu /dev/ttyS0
crwxrwxrwx 1 root uucp 4, 64 Apr 15 14:47 /dev/ttyS0 address@hidden root]# ll -lu
/usr/local/nagios/etc/misccommands.cfg
-rw-rw-r-- 1 nagios root 5019 Apr 15 13:05 /usr/local/nagios/etc/misccommands.cfg Can someone help me ? I will be very grateful
.Thanks |
[Prev in Thread] | Current Thread | [Next in Thread] |