Page 1 of 1

POST check with IAM auth

Posted: Wed Sep 18, 2019 11:46 am
by tsawyer
We are using Postman to run a check on a webAPI hosted in AWS. I want to add this check to Nagios, but I can't for the life of me figure out how to pass the IAM keys in a check_http request. I've tried using Postman to generate the headers then copied those into my request, but nothing works. Is there a module that can do this for me?

Re: POST check with IAM auth

Posted: Wed Sep 18, 2019 4:54 pm
by cdienger
What full command are you using? Is the service expecting a certain header? Here's an example of how to add a header and value:

Code: Select all

./check_http -H www.website.com --header="keys: thisismyiamkeyvalue" -v
The "-v" is used to display verbose information including headers that are sent with the request.