Rest API monitoring for POST method

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

Rest API monitoring for POST method

Post 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?
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Rest API monitoring for POST method

Post 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
Locked