-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
3.2.5
-
None
change log.count (or give it an extra parameter) to force reread of the file being monitored so that the count of matched regular expressions is the total rather than number of additions (i.e. delta):
I have a script that runs and generates a log file for which I want to match lines (such as ERROR). This script gets run a few times a day i.e. every few hours. Presently when the script runs, and a line is matched on the newly created logfile, zabbix will generate a trigger, but the next iteration, there are no new lines in the file, so the count gets set to zero (as it is a delta increase) and the trigger is cancelled. As the script runs a few times a day it is unfeasible to set the agent to read the file for the same interval as the script as that would tie having to start the agent at the same time as the script. Presently I would have to "touch" the file to force the reread and therefore send the total each and every time.