[NSClient++] Topic #563 - Problem with CheckFiles http://nsclient.org/nscp/discussion/topic/563 <p> Problem with <a class="wiki" href="/nscp/wiki/CheckFiles">CheckFiles</a> </p> en-us NSClient++ /trac/nswide.png http://nsclient.org/nscp/discussion/topic/563 Trac 1.0beta1 - DiscussionPlugin nereid Fri, 16 Apr 2010 11:19:20 GMT Topic #563 - Problem with CheckFiles http://nsclient.org/nscp/discussion/topic/563#topic http://nsclient.org/nscp/discussion/topic/563#topic <p> I am two days fighting with <a class="wiki" href="/nscp/wiki/CheckFiles">CheckFiles</a>, 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. </p> <p> I test the script with </p> <pre class="wiki">/usr/lib/nagios/plugins/check_nrpe -H 192.168.30.36 -p 5666 -c CheckFile2 -a file=c:\\tmp pattern="*.txt" filter-written=\&gt;"2h" </pre><p> And it gives me </p> <pre class="wiki">CheckFile ok|found files: ERROR </pre><p> It answer always found files even if there are not files. </p> <p> On the server monitorized log I see this: </p> <pre class="wiki">d NSClient++.cpp(1100) Injecting: CheckFile2: file=c:\tmp, pattern=*.txt, filter -written=&gt;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? </pre> Topic vikjon0 Tue, 20 Apr 2010 07:39:38 GMT Reply #1741 to topic #563 - Problem with CheckFiles http://nsclient.org/nscp/discussion/message/1741#message1741 http://nsclient.org/nscp/discussion/message/1741#message1741 <p> Have you really tried? </p> <p> You probably mean: filter+written=gt and I always use c:/tmp but dont remember if it is important. </p> Message nereid Mon, 19 Apr 2010 14:56:26 GMT Reply #1740 to topic #563 - Problem with CheckFiles http://nsclient.org/nscp/discussion/message/1740#message1740 http://nsclient.org/nscp/discussion/message/1740#message1740 <p> Any tip to investigate further? </p> Message nereid Fri, 16 Apr 2010 13:11:01 GMT Reply #1735 to topic #563 - Problem with CheckFiles http://nsclient.org/nscp/discussion/message/1735#message1735 http://nsclient.org/nscp/discussion/message/1735#message1735 <p> Sorry you are true, adding </p> <pre class="wiki">/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 </pre><p> With this I have two files on c:\tmp\ </p> <pre class="wiki">C:\tmp&gt;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 &lt;DIR&gt; . 16/04/2010 14:48 &lt;DIR&gt; .. 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 libres </pre><p> On monitorized server log we ca see: </p> <pre class="wiki"> 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 &lt; critical' d NSClient++.cpp(1137) Injected Performance Result: ''found files'=0;0;3; ' </pre><p> But the response is: </p> <pre class="wiki">found files: 0 &lt; critical|'found files'=0;0;3; </pre><p> Don't have to show found files=2??? </p> Message mickem Fri, 16 Apr 2010 12:16:47 GMT Reply #1734 to topic #563 - Problem with CheckFiles http://nsclient.org/nscp/discussion/message/1734#message1734 http://nsclient.org/nscp/discussion/message/1734#message1734 <p> Without <a class="missing wiki">MaxWarn/MinWarn/MaxCrit?</a>/minCrit there will be no errors... </p> <p> <em> Michael Medin </em></p> Message