Ad Widget

Collapse

vfs.file.regexp in the filename

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • defenestratexp
    Junior Member
    • Sep 2013
    • 1

    #1

    vfs.file.regexp in the filename

    I know how to use the custom regular expressions and reference them when creating an item. An example would be vfs.file.regexp[/path/to/my/file,@mycustomexpression]

    There is a set of catalina logs I have to set up an item for. I have not one file, but several, all tagged with a date stamp in the filename:

    catalina.2013-09-20.log
    catalina.2013-09-21.log
    catalina.2013-09-22.log

    The old nagios check we used has a regular expression to grab these files and parse them. What I want to know is, after creating a custom expression can I reference it where the filename is in the item:

    vfs.file.regexp[/path/to/my/file/@customlogexpression,@mycustomexpression]

    We're using zabbix 2.0 if that helps.
  • mfortes
    Senior Member
    • Oct 2019
    • 415

    #2
    catalina.[0-9]{4}-[0-9]{2}-[0-9]{2}.log
    catalina.2013-09-20.log



    Michael R. Fortes

    Linkedin: Mike Fortes
    Medium: mromeiro-f

    Comment

    Working...