<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Gnokki Issues</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I can send SMS via command line in the following way: </FONT>
</P>

<P><SPAN LANG="en-gb"><FONT FACE="Times New Roman">echo "Hello World" | gnokii --sendsms +123456789 –r</FONT></SPAN>
</P>

<P><SPAN LANG="en-gb"><FONT FACE="Times New Roman">Here is my Nagios Command:</FONT></SPAN>
</P>

<P><SPAN LANG="en-gb"><FONT FACE="Times New Roman">/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</FONT></SPAN></P>

<P><SPAN LANG="en-gb"><FONT FACE="Times New Roman">And my .gnokiirc file</FONT></SPAN>
</P>

<P><SPAN LANG="en-gb"><FONT FACE="Times New Roman">[global]</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> port = /dev/ttyS0</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> model = AT</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> initlength = default</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> connection = serial</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> use_locking = yes</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> serial_baudrate = 115200</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> handshake = software</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> sm_retry = 1</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> smsc_timeout = 10</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> [gnokiid]</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> bindir = /usr/local/sbin/</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> [connect_script]</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> TELEPHONE = 123456789</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> [disconnect_script]</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> [logging]</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> debug = on</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> rlpdebug = off</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT FACE="Times New Roman"> xdebug = on</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Thanks all</FONT></SPAN>
</P>
<BR>

</BODY>
</HTML>