Hi all, I have just installed Gnokii for my SMS alerts and having a few
issues, could you check my config and let me know if you see any errors or
any reason why I can not send SMS alerts.

I can send SMS via command line in the following way: 

echo "Hello World" | gnokii --sendsms +123456789 -r

Here is my Nagios Command:

/usr/bin/printf "%.120s" "ALERT\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ ##" | gnokii --sendsms
"** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is$SERVICESTATE$
**" $CONTACTEMAIL$ -r

And my .gnokiirc file

[global]
 port = /dev/ttyS0
 model = AT
 initlength = default
 connection = serial
 use_locking = yes
 serial_baudrate = 115200
 handshake = software
 sm_retry = 1
 smsc_timeout = 10
 [gnokiid]
 bindir = /usr/local/sbin/
 [connect_script]
 TELEPHONE = 123456789
 [disconnect_script]
 [logging]
 debug = on
 rlpdebug = off
 xdebug = on

Thanks all


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to