Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12249

logrt item handling is different when agent has been restarted or not restarted

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Confirmed
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.2.17
    • Fix Version/s: None
    • Component/s: Agent (G)

      Description

      The problem is observed in the following situation
      Case-I (agent restarted)
      1. Create a log file.

      1. echo abcd > /tmp/logtest/f1
        2. Create item "logrt[/tmp/logtest/f1]" and begin monitoring,
        string "abcd" registered in history.
        3. Stop the agent.
      2. service zabbix-agent stop
        4. Update 'mtime' of the log file.
      3. touch /tmp/logtest/f1
        5. Restart the agent.
      4. service zabbix-agent start
        No string registered in history.
        6. Append string to the log file.
        string "XYZ" registered in history.
      5. echo XYZ >> /tmp/logtest/f1

      Case-II (agent NOT restarted)
      1. Create a log file.

      1. echo abcd > /tmp/logtest/f1
        2. Create item "logrt[/tmp/logtest/f1]" and begin monitoring,
        string "abcd" registered in history.
        3. Update ''mtime' of the log file,
        string "abcd" registered again. (This action was reported ZBX-11407.)
      2. touch /tmp/logtest/f1
        4. Append string to the log file.
        string "XYZ" registered in history.
      3. echo XYZ >> /tmp/logtest/f1

        Attachments

          Activity

            People

            Assignee:
            andris Andris Mednis
            Reporter:
            JunichiKarikomi Junichi Karikomi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: