On Sat, Oct 13, 2012 at 10:26 AM, Abhijeet R <span dir="ltr"><<a href="mailto:abhijeet.1989@gmail.com" target="_blank">abhijeet.1989@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
When I executed<br>
sudo -u nagios /usr/lib64/nagios/plugins/check_by_ssh.sh hostname<br>
"check_haproxy -u \"<a href="http://localhost:10000/haproxy?stats\;csv\" target="_blank">http://localhost:10000/haproxy?stats\;csv\</a>""<br>
<br>
from terminal of the nagios server box, I get no errors. But, on nagios,<br>
it said like<br>
<br>
"Return code of 127 is out of bounds – plugin may be missing".<br>
<br>
In my host /etc/nagios/objects/services/haproxy.cfg file, check_command<br>
said something like:<br>
<br>
check_haproxy -u \"<a href="http://localhost:10000/haproxy?stats\;csv\" target="_blank">http://localhost:10000/haproxy?stats\;csv\</a>"<br>
<br>
So, what am I missing?<br>
<br>
--<br>
Cheers,<br>
Abhijeet R<br>
<a href="http://blog.abhijeetr.com" target="_blank">http://blog.abhijeetr.com</a><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Don't let slow site performance ruin your business. Deploy New Relic APM<br>
Deploy New Relic app performance management and know exactly<br>
what is happening inside your Ruby, Python, PHP, Java, and .NET app<br>
Try New Relic at no cost today and get our sweet Data Nerd shirt too!<br>
<a href="http://p.sf.net/sfu/newrelic-dev2dev" target="_blank">http://p.sf.net/sfu/newrelic-dev2dev</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>
</blockquote></div><br><br><br>hi! <div><br></div><div>Im going to  guess your configuration , in a better way to do this or what do i do is the following: </div><div><br></div><div>i have my plugins under /usr/lib64/nagios/plugins</div>

<div><br></div><div>I create a command in /etc/nagios/objects/commands.cfg with the following schema:</div><div><br></div><div><div>define command{</div><div>        command_name    some_command_name</div><div>        command_line   /bin/bash /usr/lib64/nagios/plugins/check_something -H "ARGUMENT"</div>

<div>        }</div><div><br></div><div>So , with this template created i need to add this command to my services with this format :</div><div><br></div><div><div>define service{</div><div>        use                                             some_name_service</div>

<div>        host_name                                       HOSTNAME</div><div>        service_description                            SOME_DESCRIPTION</div><div>        check_command                                   some_command_name #this is the name of the definition of the command template</div>

<div>        }</div></div><div><br></div><div>GL!</div><div>-- <br>Aldo Rivadeneira Reyna<br><br><br>
</div></div>