Hi what I am interested in is what your sendsms script contains are u using email-to-sms gateway or some external hardware sms gateway or some linux utility like send-sms tools to achieve the same. <br><br><div class="gmail_quote">

On Thu, Sep 15, 2011 at 9:54 PM, Jim Avery <span dir="ltr"><<a href="mailto:jim@jimavery.me.uk">jim@jimavery.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 15 September 2011 10:35, Metron 6 (six) <<a href="mailto:metron6@gmail.com">metron6@gmail.com</a>> wrote:<br>
> hello all,<br>
><br>
> i have a shell script which takes two arguments, the mobile phone<br>
> number and the text message, which sends sms notifications.<br>
> for example /usr/local/bin/sendsms 6944444444 "host problem"<br>
><br>
> when i debug Nagios, i can see this into the log file<br>
><br>
> [1316012199.774170] [256.1] [pid=17625] Running command<br>
> '/usr/lib/nagios/plugins/sendsms 6944420xxx "Type:PROBLEM, Host:<br>
> 00-dummy_2, State: DOWN, Address: <a href="tel:194.145.127.44" value="+19414512744">194.145.127.44</a>, Info: Unknown ping<br>
> number, Date/Time: 14-09-2011"'...<br>
><br>
> when i run from a terminal the command<br>
> /usr/lib/nagios/plugins/sendsms 6944420xxx "Type:PROBLEM, Host:<br>
> 00-dummy_2, State: DOWN, Address: <a href="tel:194.145.127.44" value="+19414512744">194.145.127.44</a>, Info: Unknown ping<br>
> number, Date/Time: 14-09-2011"<br>
> sms message arrives normally....<br>
><br>
> this is how i include the command into nagios conf files..<br>
><br>
> define command{<br>
>       command_name                    host-notify-by-sms<br>
>       command_line                    /usr/lib/nagios/plugins/sendsms<br>
> $CONTACTPAGER$ "Type:$NOTIFICATIONTYPE$, Host: $HOSTNAME$, State:<br>
> $HOSTSTATE$, Address: $HOSTADDRESS$, Info: $HOSTOUTPUT$, Date/Time:<br>
> $DATE$"<br>
> }<br>
><br>
> any help/suggestions ?<br>
<br>
</div>Looks ok to me.  Am I right in assuming that when Nagios runs the<br>
command you receive no SMS at all?  Or do you receive something but in<br>
the wrong format?<br>
<br>
When you run the command from the command-line, are you logged in as<br>
'nagios'?  If not it could be a simple permissions problem.<br>
<div><div></div><div class="h5"><br>
------------------------------------------------------------------------------<br>
Doing More with Less: The Next Generation Virtual Desktop<br>
What are the key obstacles that have prevented many mid-market businesses<br>
from deploying virtual desktops?   How do next-generation virtual desktops<br>
provide companies an easier-to-deploy, easier-to-manage and more affordable<br>
virtual desktop model.<a href="http://www.accelacomm.com/jaw/sfnl/114/51426474/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426474/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks<br>Manish Kumar<br><a href="http://in.linkedin.com/in/manishkumar85" target="_blank">http://in.linkedin.com/in/manishkumar85</a><br>