Ad Widget

Collapse

Monitor DAT file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KristofL
    Junior Member
    • Feb 2014
    • 1

    #1

    Monitor DAT file

    Hi there,

    To monitor Symantec Endpoint Protection, i'm wanting to extract the date value of the definfo.dat file.

    The file has the following contents:

    Code:
    [DefDates]
    CurDefs=20140221.009
    I want the output to be 20140221

    and my item (Zabbix Active) is defined like this

    Code:
    vfs.file.regexp["C:\Program Files\Common Files\Symantec Shared\VirusDefs\definfo.dat","^([0-9]){8}$",,0,3,\1]
    But that doesn't seem to work (I don't really have much experience with regular expressions)

    Can someone help me to solve this issue?

    Thank you in advance all,
    Br,

    Kristof
    Last edited by KristofL; 26-02-2014, 09:08.
  • luka
    Junior Member
    • Mar 2014
    • 1

    #2
    Hi,

    Try with vfs.file.regexp["C:\Program Files\Common Files\Symantec Shared\VirusDefs\definfo.dat","([0-9]{8})",,,,\1]

    Best regards

    Comment

    Working...