Page 1 of 1

Help with adding fileinfo check to NagVis

Posted: Fri Dec 21, 2018 12:13 pm
Hello all. Regarding my Windows 2008 R2 Server using check_mk_agent.exe I use the fileinfo section within my check_mk.ini as follows:

[fileinfo]
# path = C:\Programs\Foo\*.log
# path = M:\Bar Test\*.*
# Recursive wildcards can also be used:
# path = C:\MyDocuments\Foo\**
path = C:\Test\testfile*

The check comes up properly as a monitored service under the host. When I try and add the service to my NagVis as an icon, it says "Problem (Backend = mysite) The object "hostname ~~ File C:\Test\testfile" does not exist (service)." I've read that this is due to there being slashes in the service name, which appears under check_mk as "File C:\Test\testfile". Does anyone know how to resolve this? Or possibly change the service name to something that doesn't have slashes? I can't find where to do this after hours of digging.

Any help is greatly apprecaited. Thank you.

Re: Help with adding fileinfo check to NagVis

Posted: Wed Dec 26, 2018 4:18 pm
by tgriep
Typically, when there is a special character in a name you have to escape it with a back slash so try changing the name to the following.

Code: Select all

 C:\\Test\\testfile
Else, remove then all together and that would work as well.