Page 1 of 1

Rest API monitoring for POST method

Posted: Mon Aug 16, 2021 5:26 am
by amane
Hi,

I am trying to add rest API monitoring with using check_http plugin, however i am getting error "HTTP WARNING: HTTP/1.1 405 Method Not Allowed"

./check_http -H i<ServerName> -f ok -I <ServerIP> -u '/cxpstorehours/swagger-ui.html' -S --sni "-T 'application/json'" --method=POST --post="{ \"storeId\": \"01120\"}" -p 443
HTTP WARNING: HTTP/1.1 405 Method Not Allowed - 481 bytes in 1.303 second response time |time=1.302621s;;;0.000000 size=481B;;;0

Do we need to use any other plug-in to monitor REST API post method?

Re: Rest API monitoring for POST method

Posted: Mon Aug 16, 2021 11:21 am
by gsmith
Hi

No, no other plugin is required. Can you provide a successful call from a web browser or an app
like Postman please? You can redact any sensitive info.

Thanks