Hi,
I'm trying to monitor a REST API service of some system here and in order to do that I need to get the value (a number that returns from a call to a given URL) and compare it to a threshold. I tried to use the web.page.get[] command of the zabbix-agent but as it turned out it returns the raw response from the server including all the HTTP headers.
Is there a way to tell the zabbix agent to return only the response body? I don't want to use system.run[curl ...] or an external command both for security and performance reasons...
Just to clarify things a bit more - if I run curl with the given URL i simply get the numeric response back.
T.I.A,
Yuval.
I'm trying to monitor a REST API service of some system here and in order to do that I need to get the value (a number that returns from a call to a given URL) and compare it to a threshold. I tried to use the web.page.get[] command of the zabbix-agent but as it turned out it returns the raw response from the server including all the HTTP headers.
Is there a way to tell the zabbix agent to return only the response body? I don't want to use system.run[curl ...] or an external command both for security and performance reasons...
Just to clarify things a bit more - if I run curl with the given URL i simply get the numeric response back.
T.I.A,
Yuval.
.*)",,\1]
Comment