F
F
Fraer1772015-05-26 13:20:23
Monitoring
Fraer177, 2015-05-26 13:20:23

How to set up a Zabbix trigger with your own text?

There is a script which checks on the server, differences in tables with other server. It is necessary that in the message a message with the text of the error , if any, comes to the soap .
Accordingly, the output of the bash script is as follows:
Differences on comp
TABLE CHUNK CNT_DIFF CRC_DIFF CHUNK_INDEX LOWER_BOUNDARY UPPER_BOUNDARY
fut.name 1 -1 1
Output 1 or 0 is easy to do. Can you please tell me how to output information to the trigger? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dan Ivanov, 2015-05-27
@ptchol

As I understand it, you have a data type for the item string/log/text ?
Therefore, you can take the last value with the last() function, check it for the presence of a substring with the regexp() / iregexp() function, and to lower the trigger, use either diff() or nodata(), depending on how often you receive this data .

F
Fraer177, 2015-06-19
@Fraer177

It's not entirely clear.. How to set up a data element and a trigger so that it sends an alert with a problem table to the output? Thanks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question