Ad Widget

Collapse

vfs..file.regex filesystem parameter wildcard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimzs
    Junior Member
    • Sep 2014
    • 7

    #1

    vfs..file.regex filesystem parameter wildcard

    I'm trying to use the vfs..file.regex to search through multiple files that end in .txt to match a particular string. If I try one without the wildcard it works fine. When I include the wildcard I get a Not Supported by Zabbix Agent error. This is for a windows system.
    Any help would be appreciated.


    This works fine.
    vfs.file.regexp[w:\folder\badmail\Sep04\090414_112142_1000.txt,tes t]

    Thisr returns the error.
    vfs.file.regexp[w:\folder\badmail\Sep04\/*.txt,test]

    Any ideas?
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome!

    A straight wildcard will not work in this case. You need to escape backslashes and modify the wildcard part.
    Try to check your item with the following key:
    Code:
    vfs.file.regexp["w:\\folder\\badmail\\Sep04\\.*.txt",test]
    Nice site for testing regexps: http://regex101.com/

    Best Regards,
    Ingus

    Comment

    Working...