-
Problem report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
6.0.26
-
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.