check_command value when command contains quotes

Abhijeet R abhijeet.1989 at gmail.com
Sat Oct 13 17:26:32 CEST 2012


Hi,

When I executed
sudo -u nagios /usr/lib64/nagios/plugins/check_by_ssh.sh hostname 
"check_haproxy -u \"http://localhost:10000/haproxy?stats\;csv\""

from terminal of the nagios server box, I get no errors. But, on nagios, 
it said like

"Return code of 127 is out of bounds – plugin may be missing".

In my host /etc/nagios/objects/services/haproxy.cfg file, check_command 
said something like:

check_haproxy -u \"http://localhost:10000/haproxy?stats\;csv\"

So, what am I missing?

-- 
Cheers,
Abhijeet R
http://blog.abhijeetr.com


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list