Page 1 of 1

Special characters in check_http by NRPE

Posted: Mon Oct 31, 2016 4:28 am
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.

Re: Special characters in check_http by NRPE

Posted: Mon Oct 31, 2016 11:32 am
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.