NSClient++ Help (#1) - Problem with CheckFiles (#563) - Message List
Problem with CheckFiles
I am two days fighting with CheckFiles, and Checkfiles2 with no results, I googled and found that it have versions problems on the past, but I think know are solved and It must be a problem of my installation.
I test the script with
/usr/lib/nagios/plugins/check_nrpe -H 192.168.30.36 -p 5666 -c CheckFile2 -a file=c:\\tmp pattern="*.txt" filter-written=\>"2h"
And it gives me
CheckFile ok|found files: ERROR
It answer always found files even if there are not files.
On the server monitorized log I see this:
d NSClient++.cpp(1100) Injecting: CheckFile2: file=c:\tmp, pattern=*.txt, filter -written=>2h d NSClient++.cpp(1136) Injected Result: OK 'CheckFile ok' d NSClient++.cpp(1137) Injected Performance Result: 'found files: ERROR' }} I have tested with stable version and now I am testing with 0.3.8.41 2010-04-13 Any idea? Any idea?
nereid
04/16/10 13:19:20 (3 years ago)
-
Message #1734
Without MaxWarn/MinWarn/MaxCrit?/minCrit there will be no errors...
Michael Medin
mickem04/16/10 14:16:47 (3 years ago)-
Message #1735
Sorry you are true, adding
/usr/lib/nagios/plugins/check_nrpe -H 192.168.30.36 -p 5666 -c CheckFile2 -a file=c:\\tmp pattern="*.txt" filter-written=gt:2s MinCrit=1 MaxCrit=3
With this I have two files on c:\tmp\
C:\tmp>dir *.* El volumen de la unidad C no tiene etiqueta. El número de serie del volumen es: 60BA-4630 Directorio de C:\tmp 16/04/2010 14:48 <DIR> . 16/04/2010 14:48 <DIR> .. 16/04/2010 13:16 8 test.txt 16/04/2010 14:47 0 test2.txt 2 archivos 8 bytes 2 dirs 3.994.767.360 bytes libresOn monitorized server log we ca see:
d NSClient++.cpp(1100) Injecting: CheckFile2: file=c:\tmp, pattern=*.txt, filter -written=gt:2s, MinCrit=1, MaxCrit=3 d NSClient++.cpp(1136) Injected Result: CRITICAL 'found files: 0 < critical' d NSClient++.cpp(1137) Injected Performance Result: ''found files'=0;0;3; '
But the response is:
found files: 0 < critical|'found files'=0;0;3;
Don't have to show found files=2???
nereid04/16/10 15:11:01 (3 years ago)
-








