N
N
necrodeflorator2020-07-20 14:30:28
Zabbix
necrodeflorator, 2020-07-20 14:30:28

How can I make UserParameter=sync_error[*] return empty?

Good afternoon, I wrote a script that returns the last synchronization error from the database to Zabix as a string, if there are no errors, it returns an empty string.

I set up an item in Zabix:

Type of information=Log
Applications=Filesystem


Now there are a lot of empty lines in history, I would like to remove them from there. How to make zabix ignore empty line in script response?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
necrodeflorator, 2020-07-22
@necrodeflorator

in general dug found two ways.
1. On the monitored server, run the verification script with cron and add synchronization errors to the log, configure the zabix server to the log file.
2. Try using traper https://www.zabbix.com/documentation/4.0/ru/manual...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question