Hello All,
I am trying to set up monitoring for number of rest services through Nagios XI CCM . The issue is the services don't have a ping service & need to submit a post request to the services . I am trying to submit Json string through the -P option but I get 400 error bad request . I have tried all combination putting escape characters & posting URL encoded data as mentioned in the man page . Kindly request your assistance on the same Below is my request $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ -u /resources/addResource -p 8066 -T application/json -k "charset=utf-8" -P "%7B%22resourceName%22%3A%22Maclean%20XXXXX%20XXXXX%22%2C%22designation%22%3A%22Consultant%22%2C%22experience%22%3A%224%20years%22%7D" -w 5 -c 10 Below is Json content I am trying to submit {"resourceName":"Maclean XXXX XXXXX","designation":"Consultant","experience":"4 years"}