Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3889

Force re-read of log.count and logrt.count so that the total of matched lines is sent each time not the increase

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.2.5
    • Agent (G)
    • 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.

            Unassigned Unassigned
            Paul_Morris Paul Morris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: