Special characters in check_http by NRPE

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jose_a_guardia
Posts: 13
Joined: Fri Dec 04, 2015 2:40 am

Special characters in check_http by NRPE

Post by jose_a_guardia »

Hello.

I want to check a URL but from the remote machine. I've do with NRPE without problems. However, I have an issue with a URL with special characters ('&', '=' '?' '+'). If I run in remote machine:

Code: Select all

./check_http -H ssl.mysite.com -u /coa?utm_source=red\&utm_medium=home\&utm_term=run+now  -s Hello -w 5 -c 30 --sni
HTTP OK: HTTP/1.1 301 Moved Permanently - 751 bytes in 0,069 second response time

But if I run via NRPE:

Code: Select all

/usr/lib/nagios/plugins/check_nrpe -H 192.168.1.22 -c 'check_web_remote' -a "-H ssl.mysite.com -u /coa?utm_source=red\&utm_medium=home\&utm_term=run+now  -s Hello -w 5 -c 30 --sni"
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.
I've tried all combinations with " and '

Can anyone help me?

Thanks in advance.

Regards.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Special characters in check_http by NRPE

Post by rkennedy »

Could you post the definition for check_web_remote for us to review?

Also, when running the check from the XI machine, take a look at your syslog on the client machine and post the output for us to review.
Former Nagios Employee
Locked