[agent] Version: 1.6.0p10, OS: windows, [special_vsphere] Version: 1.6.0p10, OS: windows
Server 2k16 Build 14393
[server] raw 1.6.0p10
Ubuntu 18.04.4 LTS
Hi,
i have the following problem on one server:
The agent always returning a data string, no matter how i change the config. If i running with default config, i only get a date string.
<<<fileinfo:sep(124)>>> 1585739905
If i configure a path to check, i get the date string and the path.
There is no fileinfo.cfg, nether on the Linux Server nor the Windows “Client”
check_mk.yml
fileinfo:
enabled: yes
path: []
check_mk.user.yml
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
If i add it to the user.yml i will get the datestring and the file:
fileinfo:
# enabled: yes
# below are possible examples
path:
- 'd:\test\*'
# - '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
The timestamp is correct inside the fileinfo check.
I think i know what your problem is
Take a look at your “~/local/share/check_mk/checks/” directory, I think there is an old version of the fileinfo check what is not compatible with your current output.
On my systems there is no problem with the timestamp in line 1
Normal Checkmk agent, all configured special agents
to Normal Checkmk agent, or special agent if configured
or No Checkmk agent, all configured special agents
the file is vanished…
So this seems to be a problem with Normal Checkmk agent, all configured special agents.