Error: Request contained illegal metachars!
Posted: Thu Jun 25, 2015 6:12 pm
Running this on the NRPE client, works fine
./parse_json_generic.sh 'http://localhost:9200/_cluster/health?pretty=true' \'.status\',\'.timed_out\',\'.number_of_nodes\' "green false 4"
'.status'="green" is OK '.timed_out'=false is OK '.number_of_nodes'=4 is OK
command[check_parse_json_threshold]=/usr/local/nagios/libexec/parse_json_generic.sh $ARG1$ $ARG2$ $ARG3$
Running this from nagios server
./check_nrpe -H xx.xx.xx.xx -c check_parse_json_threshold -a 'http://localhost:9200/_cluster/health?pretty=true' \'.status\',\'.timed_out\',\'.number_of_nodes\' "green false 4"
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
On the client side I see: Error: Request contained illegal metachars!
I found this in the forum
http://support.nagios.com/forum/viewtop ... 7&p=106518
./parse_json_generic.sh 'http://localhost:9200/_cluster/health?pretty=true' \'.status\',\'.timed_out\',\'.number_of_nodes\' "green false 4"
'.status'="green" is OK '.timed_out'=false is OK '.number_of_nodes'=4 is OK
command[check_parse_json_threshold]=/usr/local/nagios/libexec/parse_json_generic.sh $ARG1$ $ARG2$ $ARG3$
Running this from nagios server
./check_nrpe -H xx.xx.xx.xx -c check_parse_json_threshold -a 'http://localhost:9200/_cluster/health?pretty=true' \'.status\',\'.timed_out\',\'.number_of_nodes\' "green false 4"
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
On the client side I see: Error: Request contained illegal metachars!
I found this in the forum
http://support.nagios.com/forum/viewtop ... 7&p=106518