Ad Widget

Collapse

logrt with regular expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • t0m
    Junior Member
    • Oct 2018
    • 2

    #1

    logrt with regular expression

    Hi all,

    I am creating a log monitoring where one directory name is nearly "random". So for this I want to use logrt, because it supports regular expressions in the path.
    This is my item key:
    Code:
    logrt["/tmp/test-.*/test.logfile","Error"]
    If I test the regular expression on regex101.com it will be a full match.
    But in Zabbix 4.0 it will not work:
    Code:
    Cannot obtain directory information: [2] No such file or directory
    So how I must quote the regex for zabbix or in general is it possible to use regex in the directory path?

    Thanks!
    Last edited by t0m; 25-10-2018, 11:16.
  • chew.young
    Junior Member
    • Oct 2018
    • 6

    #2
    regular expression in path is not allowed.

    Comment

    Working...