Help regarding Nagios XI check_http plugin
Sajo John <[email protected]> Fri, 22 Jul 2016 17:52:31 +0530
| Newsgroups | gmane.network.nagios.plugins |
|---|---|
| Message-ID | <CAL3im7px0=Cp+3qQ7UUqG+7_Aiy9f7rXjn0v8FZkch0smzB34g__41892.7352912307$1469190167$gmane$org@mail.gmail.com> |
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"}