NSClient++ Help (#1) - Check Files - Returning OK even when no files available to check [SOLVED] (#642) - Message List
Im having a strange error checking file ages and file sizes.
Basically, we use the check_nrpe function of Nagios which in turn uses the check_cfgfile feature of NSCPP to check the age and size of .bkf files.
Now this seems to work fine if there is a file actually there to check and will report size issues and age issues without a problem. However, we recently removed some .bkf's and noticed that Nagios was still reporting no issues with these files, even though they didn't exist anymore.
Some extra information:
NSClient++ 0.3.7.494 2009-10-12
Command used within Nagios: $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 500 -c $ARG1$
Lof file output: debug:NSClient++.cpp:1073: Injecting: CheckFile2: filter=out, file=F:\Backups\ToTapeSunday8pm\OURBACKUP\OURBACKUP.bkf, filter-written=>48h, MaxWarn=1, MaxCrit=3, syntax=%filename% %write% 2010-07-30 15:54:27: debug:modules\CheckDisk\CheckDisk.cpp:116: Input is: F:\Backups\ToTapeSunday8pm\OURBACKUP\OURBACKUP.bkf / ffffffff 2010-07-30 15:54:27: debug:modules\CheckDisk\CheckDisk.cpp:119: Found a file dont do recursive scan: F:\Backups\ToTapeSunday8pm\OURBACKUP\OURBACKUP.bkf 2010-07-30 15:54:27: debug:modules\CheckDisk\CheckDisk.cpp:334: Looking for: path: F:\Backups\ToTapeSunday8pm\OURBACKUP, pattern: OURBACKUP.bkf 2010-07-30 15:54:27: debug:modules\CheckDisk\CheckDisk.cpp:122: Path is: F:\Backups\ToTapeSunday8pm\OURBACKUP 2010-07-30 15:54:27: debug:NSClient++.cpp:1109: Injected Result: OK 'CheckFile ok'
Have tried clearing down the retention.dat + status.dat with no luck. Any ideas? Any help will be much appreciated. Thanks.
This is (If I am not entirely mistaken) something which was fixed in the 0.3.8 version.
2010-02-26 MickeM * Changed so missing files and such generate an error * Added option to return error messages to the client [CheckDisk] show_errors=1 (defauilt is off 0) * Added warning message ewhen numerical filters evaluate to zero (and are not 0) * Fixed major issue with date mathing in CheckFile* which was not working at all.
Michael Medinmickem08/01/10 07:25:45 (3 years ago)