Hello all,
I’m currently facing a problem with the File Info check on a Linux machine (agent version 1.6.0p22).
I’ve added my paths to the fileinfo.cfg, but these paths are only visible in WATO if there are files in there in the moment of the scan from CheckMK.
fileinfo.cfg:
/path/to/my/files/A/*
/path/to/my/files/B/*
cmk -d output linux:
<<fileinfo:sep(124)>>
1615277604
[[[header]]]
name|status|size|time
[[[content]]]
Doing the same on Windows shows at least the empty folders.
check_mk.user
fileinfo:
# enabled: yes
# below are possible examples
path:
# - ‘c:\a\a’ # generates missing| string
# - ‘c:\Users\Public*.log’ # real string to process
# - “this\is\not\recommended\” # double quoating uses escape sequences
# - ‘c:\Users\Public*\Desktop.ini’ works, 8 files to control
# - 'c:\Windows\Resources*\aero\aero*.’ works too, you will get two files in 'c:\Windows\Resources\Themes\aero'
# - 'c:\dev\shared_public*.’ # typical test folder, provided during development
# - ‘’ # empty strings will be ignored
# - ‘–’ # all string without "C:" or “\” at start will be ignored too for security reason
- ‘C:\path\to\my\files*’
cmk -d output windows:
<<fileinfo:sep(124)>>
1615278652
C:\path\to\my\files\*|missing|1615278652
Why is the linux version working different?
Regards
CheckMan