http header response

Started by MarcusH, September 06, 2016, 06:12:39 PM

Previous topic - Next topic

MarcusH

HI,

I am looking to setup a DCI that collect a specific http header response key from one of our servers, don't know if i am missing something obvious.
The service checks i have looked at checks http respons and gives return value 0 for ok but i want the actual response value from the header is there any built in solution for this?

In my specific case i have an url that with GET gives a json with lots of data but all i want is the count in the queue in question and that is sent via a header key named Total-Count


Edit:

Manage to solve it by making a small console program that return wanted header and then using ExternalParameterShellExec on the agent.
Though nice if there is some more elegant way of doing it without externals.