I have the same issue when monitoring MT4 log with zabbix 5.0 LTS (I have CentOS 6 server so can not use zabbix 6.0), I found that the mechanism for writing MT4 log file is quite special, the MT4 log file is written continuously so the mtime of log file always changes, however the size of log file does not change. So it always have this log when I checked zabbix_agentd.log:
This make zabbix re-read MT4 log file repeatedly and make noise for my team.
I've tried this option in logrt[] function:
But when log file is written continuously, zabbix does not show anything because the file size does not change.
Any one knows how to prevent zabbix re-reading log file, please help me!!!!!
Thanks so much!!!
HTML Code:
30931:20230707:155822.971 the modification time of log file "/window/MetaTrader4Server/logs/20230707.log" has been updated without changing its size, try checking again later 30931:20230707:155914.022 after changing modification time the size of log file "/window/mt4reportserver/20230707.report.log" still has not been updated, consider it to be a new file
I've tried this option in logrt[] function:
mtime-noreread - non-unique records, reread only if the size changes (ignore modification time change).
Any one knows how to prevent zabbix re-reading log file, please help me!!!!!
Thanks so much!!!
Comment