Ad Widget

Collapse

Wildcard in file path for items like vfs.file.regexp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sonavaneu
    Junior Member
    • Jul 2016
    • 4

    #1

    Wildcard in file path for items like vfs.file.regexp

    Hi

    May I know is it possible with Zabbix version 2.2; to specify the file path with wildcard character like: *, ?, [a..z], [1..9] etc.

    For example for vfs.file.regexp is it possible to specify:

    vfs.file.regexp["/a/b/c/log/*/[1..9]/log",Error, ]

    Currently I am facing problem with such definition.

    Regards
    Umesh
  • KBlasz
    Junior Member
    • Apr 2020
    • 20

    #2
    for anyone else that finds this post. you cant use *, % or $ in most file based items. Zabbix has made a pretty good alternative though by allowing these items to use regex in finding all the files you need that have a particular name or extention. for exmaple file count items like vfs.dir.count. this carries over for folders and all types of directories making it quite powerfull for applications that like to create massive file and folder trees.

    Comment

    Working...