NetXMS Support Forum

English Support => General Support => Topic started by: MarcusH on September 06, 2016, 06:12:39 PM

Title: http header response
Post by: MarcusH on September 06, 2016, 06:12:39 PM
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.