Hi all ;<br><br>I followed this tutorial <br><a href="http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1855.html" target="_blank">http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1855.html</a><br><br><br><br>   I would like to test the sms alert system from a GSM SMS gateway , I have added these lines in  commands.cfg<br>

<br><br>define command{<br>        command_name    service_notify_with_sms<br>        command_line    $USER1$/notify_sms -a   MY_MOBILE_NUMBER    -u   MY_USER_NAME    -p <br>MY_PASSWORD -m \ '$NOTIFICATIONTYPE$:$HOSTNAME$ is $SERVICESTATE$ ($SERVICEOUTPUT$)\' -t $CONTACTPAGER$<br>

}<br><br><br>I have 3 doubts   <br><br>doubt 1) is the above configuration correct ?<br><br> where    MY_MOBILE_NUMBER  = my cell phone number and <br>MY_USER_NAME = sms gateway user account<br><br>and<br><br>MY_PASSWORD = sms gateway user password <br>

<br><br><br><br>doubt 2  ) why I have to add again  the following  config section ? i mean the purpose of the following lines ?<br><br>
define command{

<pre><code>      command_name    host_notify_with_sms<br>      command_line    /usr/lib/nagios/plugins/notify_sms -a 1012345 -u myusername_for_gw -p mypassword_for_gw -m \'$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$ ($HOSTOUTPUT$)\' -t $CONTACTPAGER$<br>
<br></code></pre>
}
<br>
<br><br><br>doubt 3)   if I added the 2  define command sections   in
commands.cfg   as in the website  , can I get an sms alert ?anything
else  I have to add in localhost.cfg   ? (where I have services to
check     ssh,ping,http   in the localhost . ) <br>
<br><br>These are the Nagios packages I have in my box <br><br>nagios-2.9_1<br>nagios-plugins-1.4.9_1,1<br><br><br><a href="http://www.nagiosexchange.org/cgi-bin/jump.cgi?ID=1855&view=File2;d=1" target="_blank">notify_sms-1.1.tar.gz</a><br>

<br>I untared this notify_sms-1.1.tar.gz package and copied it to   /usr/local/libexec/nagios/   (in this directory I hvae all the <br>check_ssh  check_ping etc etc comamnds    by default) <br><br><br><br>Let me request you to clarify my doubts , sorry for my ignorance ,<br>

<br>NOTE :  The SMS gateway is in another PC , but I configured Nagios in a  localbox ,but both  machines in the same network   . <br>so can I use this SMS gateway   ? how to make this sms gateway service available for  nagios box ?<br>
<br>Thanks in Advance<br>
kkchn