All the checks work fine until I use a URL that contains an question mark. Nagios apparently prepends a slash "\" to the question mark prior to it passing along the check_nrpe command to the monitored host.
Here is what the command looks like CCM --> Services:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 10.XXX.XXX.XXX -t 30 -c check_a_url -a "-u https://www.ourcompany.com/services/estimator-3.7?wsdl -w 1000 -c 4000"
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 10.XXX.XXX.XXX -t 30 -c check_a_url -a "-u https://www.ourcompany.com/services/estimator-3.7\?wsdl -w 1000 -c 4000"
OUTPUT: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
When I the same command from the command line on the Nagios host, the checks work as expected, but when I run them from Nagios, I see the illegal metachar error in the monitored host log.
So, is there a way I can get the Nagios host to allow that string to go through unmolested and not try to escape it?