E
E
Evgeny N2020-06-08 09:17:33
Zabbix
Evgeny N, 2020-06-08 09:17:33

How to get data from a website for Zabbix metrics?

There is an arduino with a temperature sensor (I can’t reconfigure it), it is configured so that it displays a http page with data like: "Temperature 18 degrees"

How to set up the collection of this figure for further action with it? That is, I want to receive an alert about a high temperature and track the dynamics in general. In general, somehow you need to set up a data element, and then everything should just be.

I smoked this topic on the Internet, but basically it comes down to monitoring the availability of the site itself. This is not a problem, I can just ping the device.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neol, 2020-06-08
@Evgen_N

You need to create an item of type "HTTP agent" that receives the desired page, then create a dependent item and extract the desired value in preprocessing with a regular expression like "Temperature ([0-9]+) degrees"
See the last (fifth) example in the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question