D
D
Dannerty2018-05-18 10:29:20
linux
Dannerty, 2018-05-18 10:29:20

Log handler in Zabbix?

The essence of the problem is this.
It is necessary to build graphs for events in the logs.
Tried to do it through a script with tail -f | grep
If one value was found, then zabbix_sender sent the key with value 1, if another value, then with value 0.
Added scripts to autoload, but after some time (always different) they stop sending data to Zabbix.
Tell me, how can I process logs with sending values ​​to Zabbix? Through the built-in monitoring of the logs, not what is needed comes out, because. numeric values ​​are needed to build a graph, but they are not in the logs, but only strings.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kisaa, 2018-05-18
@kisaa

Zabbix can extract the necessary values ​​from log lines using regular expressions.
https://www.zabbix.com/documentation/3.2/manual/co...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question