Help with adding fileinfo check to NagVis

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
[email protected]
Posts: 1
Joined: Mon Jun 01, 2015 3:39 pm

Help with adding fileinfo check to NagVis

Post by [email protected] »

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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Help with adding fileinfo check to NagVis

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked