CentOS 7 x86_64
Zabbix 4.0.24
MariaDB 5.5.60
I would like to monitor that if the log that contains "test: Status is" in /var/log/messages.
when log contains "offline", it is a failure, and if it contains "online", it indicates recovery.
test: Status is offline ← Failure
test: Status is online ← Recovery
If the following monitoring settings are used (eg. item update interval is 30 seconds), when the "offline" and "online" logs are output within 30 seconds,
both "offline" and "online" triggers will be notified.
-- Item
Type: Zabbix agent (active)
Key: logrt[/var/log/messages,"test: Status is",,,skip]
Update interval: 30s
-- Trigger
Expression: Item:logrt[/var/log/messages,"test: Status is",,,skip].regexp("offline")}=1
Recovery expression: Item:logrt[/var/log/messages ,"test: Status is",,,skip].regexp("online")}=1
Do you have any suggestions for how to set up monitoring other than shortening the update interval?
Any help would be appreciated
Zabbix 4.0.24
MariaDB 5.5.60
I would like to monitor that if the log that contains "test: Status is" in /var/log/messages.
when log contains "offline", it is a failure, and if it contains "online", it indicates recovery.
test: Status is offline ← Failure
test: Status is online ← Recovery
If the following monitoring settings are used (eg. item update interval is 30 seconds), when the "offline" and "online" logs are output within 30 seconds,
both "offline" and "online" triggers will be notified.
-- Item
Type: Zabbix agent (active)
Key: logrt[/var/log/messages,"test: Status is",,,skip]
Update interval: 30s
-- Trigger
Expression: Item:logrt[/var/log/messages,"test: Status is",,,skip].regexp("offline")}=1
Recovery expression: Item:logrt[/var/log/messages ,"test: Status is",,,skip].regexp("online")}=1
Do you have any suggestions for how to set up monitoring other than shortening the update interval?
Any help would be appreciated