Hi;
Having an issue where pygtail.py will stop updating the offset file randomly.
I'm using it as part of a Zabbix Postfix monitor.
(scripts here: https://github.com/rafael747/zabbix-postfix/blob/master/zabbix_postfix.sh )
I can see it running (debug output in cron) it processes the postfix mail log but always returns 0 for every stat as the offset does not get updated. (well it will update the offset for a few hours, then just stop updating it with no error it continues to read the log)
The zabbix_postfix.sh is run from a cron job as root, like I say it will run fine for a few hours - so not permissions.
I can actually run the script as root and it still will not update unless I delete the offset file.
- are there any further debugging options other than the -vv
- could this have anything to do with the maillog constantly changing (like several times/second)
stumped.
Hi;
Having an issue where pygtail.py will stop updating the offset file randomly.
I'm using it as part of a Zabbix Postfix monitor.
(scripts here: https://github.com/rafael747/zabbix-postfix/blob/master/zabbix_postfix.sh )
I can see it running (debug output in cron) it processes the postfix mail log but always returns 0 for every stat as the offset does not get updated. (well it will update the offset for a few hours, then just stop updating it with no error it continues to read the log)
The zabbix_postfix.sh is run from a cron job as root, like I say it will run fine for a few hours - so not permissions.
I can actually run the script as root and it still will not update unless I delete the offset file.
stumped.