NSClient++ Help (#1) - problem with CheckFileSize command walking entire file system. (#393) - Message List

problem with CheckFileSize command walking entire file system.

Michael,

Whenever I specify a single file (i.e. not using wildcards) using the CheckFileSize check I get 'File not found check log for details' and in the log file I get an 'The system cannot find the file specified.' for every file on the drive.

For example issuing this command 'check_nrpe -H host1 -p 5666 -t 30 -c CheckFileSize -a ShowAll MaxWarn=1G MaxCrit=2G File:WIN=c:\\pagefile.sys' from the command line of the Nagios box returns the results below from a Windows 2003 server.

2009-06-05 13:40:12: message:NSClient++.cpp:583: NSCLient++ - 0.3.6.444 2009-03-03 Started!
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\BECNET\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\BECNET\LOGON\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\BECNET\Scripts\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\BECNET\VER_CTRL\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\BECNET\WS\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\compaq\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\compaq\hpdiags\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\compaq\network\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\compaq\wbem\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\compaq\wbem\certs\pagefile.sys - 2: The system cannot find the file specified.
2009-06-05 13:40:33: error:modules\CheckDisk\CheckDisk.cpp:301: File not found: c:\compaq\wbem\homepage\pagefile.sys - 2: The system cannot find the file specified.
... (this continues for another 2200 lines)

nsclient++ 3.6.444 nrpe 2.12 windows 2003

What am I doing wrong?

Thanks for the help,

-greg

  • Message #1217

    This was indeed a bug, an should be fixed in the next build (ie. 0.3.7 release).

    • Message #1219

      Great (that it will be fixed not that it's a bug) :). We will put a hold on our checkevent log work (adding additional event log monitoring) until the fix is available.

      Thanks for your work,

      -greg

Subscriptions