Hi,
Running 5.4.5 here, and trying to create triggers based on a log file content.
The log data is properly received from the zabbix active agent and shows in the server, in the format:
07/10/2021 07:44:29 : XXXX_IS_DOWN
My aim is to detect the 'DOWN' or 'UP' keywords for 'XXXX' (there are other things in that log, like YYYY or WWWW, which would be picked up by other items and triggers.
I don't understand how the trigger syntax works here, the documentation does not help and any tutorial even as recent as March 2021 is not applicable as the syntax seems to have changed since then.
for example :
last(/MY_HOSTNAME/log[/var/log/zabbix_checks.log, (?<=XXXX_IS_)DOWN,,,skip])="DOWN"
This syntax seems to be valid for this zabbix version, but is not working at all. Status of the item is "OK" always.
Any help or an example of how to implement this would be great.
Running 5.4.5 here, and trying to create triggers based on a log file content.
The log data is properly received from the zabbix active agent and shows in the server, in the format:
07/10/2021 07:44:29 : XXXX_IS_DOWN
My aim is to detect the 'DOWN' or 'UP' keywords for 'XXXX' (there are other things in that log, like YYYY or WWWW, which would be picked up by other items and triggers.
I don't understand how the trigger syntax works here, the documentation does not help and any tutorial even as recent as March 2021 is not applicable as the syntax seems to have changed since then.
for example :
last(/MY_HOSTNAME/log[/var/log/zabbix_checks.log, (?<=XXXX_IS_)DOWN,,,skip])="DOWN"
This syntax seems to be valid for this zabbix version, but is not working at all. Status of the item is "OK" always.
Any help or an example of how to implement this would be great.
Comment