Hi,
I realized Zabbix agent (1.4) stops monitoring a file when it detects a file is deleted.
This is what happened:
1. I added a monitor for a log file
2. I temporarily deleted the log file
3. Zabbix agent prints following log message [jboss/server/log/server.log] [No such file or directory] and stops
4. I recreated the file
5. Zabbix agent does not resume monitoring the log file
It seems Zabbix agent can not distinguish the log file not being there from the start (which makes sense to stop monitoring) and the log file temporarily unvailable (which makes sense to wait for the file to reappear)
Is there any way to go around this problem?
Thank you in advance.
I realized Zabbix agent (1.4) stops monitoring a file when it detects a file is deleted.
This is what happened:
1. I added a monitor for a log file
2. I temporarily deleted the log file
3. Zabbix agent prints following log message [jboss/server/log/server.log] [No such file or directory] and stops
4. I recreated the file
5. Zabbix agent does not resume monitoring the log file
It seems Zabbix agent can not distinguish the log file not being there from the start (which makes sense to stop monitoring) and the log file temporarily unvailable (which makes sense to wait for the file to reappear)
Is there any way to go around this problem?
Thank you in advance.
Comment