Dear all,
I've been fighting with this issue for a while, so hopefully someone can help me.
The situation is as follows:
I have two Linux servers which to synchronize some folders every night. The sync information is written to a log file: sync.log. That's all working fine.
Whenever the word "Unable" shows up in the log file, Zabbix will notice that and sends me a "Problem" by email. That's also working fine. The expression I use is: {App SYNC:log[/opt/sync/sync.log,Unable].str(Unable)}=1.
Can someone please tell me which expression I have to use (or add with &) to make Zabbix to return OK whenever the word "Unable" is not existing anymore in the log file?
Right now I use: {App SYNC:log[/opt/sync/sync.log,Unable].str(Unable)}=1&{App SYNC:log[/opt/sync/sync.log,Unable].nodata(30)}#1. So after 30 seconds Zabbix sends me an OK automatically.. It doesn't matter whether the problem is solved or not.
To make things clear, I will add some extra info:
If the sync fails, "Unable to sync" will appear in the log file. Zabbix will report a Problem.
If I sync manually, the log file will only log the files that were synchronized. The word Unable does not exist in the log file anymore. Zabbix should report an OK on this trigger.
Thanks for all the help!
I've been fighting with this issue for a while, so hopefully someone can help me.
The situation is as follows:
I have two Linux servers which to synchronize some folders every night. The sync information is written to a log file: sync.log. That's all working fine.
Whenever the word "Unable" shows up in the log file, Zabbix will notice that and sends me a "Problem" by email. That's also working fine. The expression I use is: {App SYNC:log[/opt/sync/sync.log,Unable].str(Unable)}=1.
Can someone please tell me which expression I have to use (or add with &) to make Zabbix to return OK whenever the word "Unable" is not existing anymore in the log file?
Right now I use: {App SYNC:log[/opt/sync/sync.log,Unable].str(Unable)}=1&{App SYNC:log[/opt/sync/sync.log,Unable].nodata(30)}#1. So after 30 seconds Zabbix sends me an OK automatically.. It doesn't matter whether the problem is solved or not.
To make things clear, I will add some extra info:
If the sync fails, "Unable to sync" will appear in the log file. Zabbix will report a Problem.
If I sync manually, the log file will only log the files that were synchronized. The word Unable does not exist in the log file anymore. Zabbix should report an OK on this trigger.
Thanks for all the help!
Comment