Hi folks
I’ve got an issue with the NSCLient++ (0.3.7.494) Checkfile2 nrpe module and I was wondering if anyone experienced anything similar.
I’m trying to monitor a folder on a Windows 7 machine from a Centos 5.5 nagios server running nagios version 3.2.1. All I want to do is send an alert when the folder contains so many items. At the moment I’ve been testing remotely from the command line against a folder that contains 1 item using the following command:
running this command returns the following:
However, this code should return “Critical” as there is a file already in there…
When I’m running the nsclient using the test mode, I can see the connection on the target machine as follows:
d NSClient++.cpp(1073) Injecting: CheckFile2: MaxCrit=1, path=C:Test pattern=*.*
d \CheckDisk.cpp(116) Input is: C:Test pattern=*.* / ffffffff
d \CheckDisk.cpp(119) Found a file dont do recursive scan: C:Test pattern=*.*
d \CheckDisk.cpp(334) Looking for: path: C:Test pattern=*.*, pattern: C:Test pattern=*.*
d \CheckDisk.cpp(122) Path is: C:Test pattern=*.*
d NSClient++.cpp(1109) Injected Result: OK 'CheckFile ok'
d NSClient++.cpp(1110) Injected Performance Result: ''no files found'=0;0;1; '
I’ve spent quite a lot of time on this trying various configurations and have the feeling that I’m going round in circles. I’m wondering if I’ve got my syntax all wrong or something like that…
I would very much appreciate a fresh perspective on this - to be honest it’s driving me a little mad :).
Thanks in advance.
Kev