check_http with GET method

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bcoleman310
Posts: 8
Joined: Fri May 08, 2015 6:24 am

check_http with GET method

Post by bcoleman310 »

I need this curl command converted so that it can be used by check_http.
curl --request GET 'https://abc.com/api/getTransactionDetails' --header 'Content-Type: application/json' --data { "test-number": "12345" }

I keep getting 404 errors using this check_http
./check_http -f follow -S 1 -p 443 -I abc.com -u /api/getTransactionDetails -T application/json -j GET --post '%7B+%22test-number%22%3A+%2212345%22+%7D'

Is this even possible to do?

Thanks
Locked