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

logrt() fails on empty file - item set to error state

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 6.0.26
    • Server (S)
    • None

      Steps to reproduce:

      • Create an item with function set to logrt(). This implies an active check. Set it to match some text in the log.
      • Rotate the target log file so that the newly created log file is empty.
      • Run the check.

      Result:

      Item is set to error: Cannot obtain directory information: [2] No such file or directory

      Expected:

      Since the log file is empty, it should be treated as if no match was found. An empty log file is the most normal (and desired) thing for error-level log files.

      Further:

      Adding a line of any random text into the log file removes the error state from the item and it is simply reported as having no match on the expression of the logrt() function.

       

            ksalins Karlis Salins
            assen.totin Assen Totin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: