<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: check_logfiles examples</title>
	<atom:link href="http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.consol.de</link>
	<description>Open Source by ConSol*</description>
	<lastBuildDate>Fri, 11 May 2012 03:44:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-42088</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Fri, 11 Nov 2011 00:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-42088</guid>
		<description>&lt;p&gt;As soon as a &lt;em&gt;new&lt;/em&gt; error message appears in your logfile, the status will be CRITICAL&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>As soon as a <em>new</em> error message appears in your logfile, the status will be CRITICAL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Fisher</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-41762</link>
		<dc:creator>David Fisher</dc:creator>
		<pubDate>Mon, 07 Nov 2011 19:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-41762</guid>
		<description>&lt;p&gt;I am building a monitoring configuration for an application in windows that writes log files.  I found your plugin and downloaded the Check_logfiles.zip which looks like it contains the windows executable.  When I run the program against a very simple test log file (looking for &#039;Critical&#039; in a line I always get everything is OK nothing is found.  Do I need to compile the program from the tar download or is there another windows executable?  Thank you.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am building a monitoring configuration for an application in windows that writes log files.  I found your plugin and downloaded the Check_logfiles.zip which looks like it contains the windows executable.  When I run the program against a very simple test log file (looking for &#8216;Critical&#8217; in a line I always get everything is OK nothing is found.  Do I need to compile the program from the tar download or is there another windows executable?  Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Johansson</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-29759</link>
		<dc:creator>Erik Johansson</dc:creator>
		<pubDate>Thu, 04 Aug 2011 12:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-29759</guid>
		<description>&lt;p&gt;I went back to this and it works now, I have relative paths instead for the command and no Perl: check_logfiles=scripts&#092;check_logfiles.exe -f scripts&#092;check_logfiles.cfg
I can&#039;t recall if have changed anyting else.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I went back to this and it works now, I have relative paths instead for the command and no Perl: check_logfiles=scripts&#092;check_logfiles.exe -f scripts&#092;check_logfiles.cfg
I can&#8217;t recall if have changed anyting else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Johansson</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-26764</link>
		<dc:creator>Erik Johansson</dc:creator>
		<pubDate>Mon, 11 Jul 2011 15:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-26764</guid>
		<description>&lt;p&gt;Hi. I am testing this and running a check from Linux to the Windows computer (NSClient++) I get this:
erik@ubuntu:/etc/icinga$ /usr/lib/nagios/plugins/check_nrpe -H 192.168.1.170 -c check_logfiles
Unrecognized character &#092;x90; marked by &lt;-- HERE after MZ&lt;-- HERE near column 3 at C:&#092;Program Files&#092;NSClient++&#092;scripts&#092;check_logfiles.exe line 1.
Is this something wrong with the .exe, like the error message says? I dowloaded it today from this site. Or is it Perl? I installed via ActiveState Perl64, 5.14.1.1401
I have this in NSC.ini under [External Scripts]:
check_logfiles=C:&#092;Perl64&#092;bin&#092;perl.exe &quot;C:&#092;Program Files&#092;NSClient++&#092;scripts&#092;check_logfiles.exe&quot; -f &quot;C:&#092;Program Files&#092;NSClient++&#092;scripts&#092;check_logfiles.cfg&quot;
Any ideas? Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi. I am testing this and running a check from Linux to the Windows computer (NSClient++) I get this:
erik@ubuntu:/etc/icinga$ /usr/lib/nagios/plugins/check_nrpe -H 192.168.1.170 -c check_logfiles
Unrecognized character &#092;x90; marked by &lt;&#8211; HERE after MZ&lt;&#8211; HERE near column 3 at C:&#092;Program Files&#092;NSClient++&#092;scripts&#092;check_logfiles.exe line 1.
Is this something wrong with the .exe, like the error message says? I dowloaded it today from this site. Or is it Perl? I installed via ActiveState Perl64, 5.14.1.1401
I have this in NSC.ini under [External Scripts]:
check_logfiles=C:&#092;Perl64&#092;bin&#092;perl.exe &#8220;C:&#092;Program Files&#092;NSClient++&#092;scripts&#092;check_logfiles.exe&#8221; -f &#8220;C:&#092;Program Files&#092;NSClient++&#092;scripts&#092;check_logfiles.cfg&#8221;
Any ideas? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-22506</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Wed, 25 May 2011 22:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-22506</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-22356&quot; rel=&quot;nofollow&quot;&gt;@Rahul&lt;/a&gt;, Could you please look into this request.
-Rahul.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-22356" rel="nofollow">@Rahul</a>, Could you please look into this request.
-Rahul.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-22356</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Mon, 23 May 2011 20:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-22356</guid>
		<description>&lt;p&gt;Hi Lausser,&lt;/p&gt;

&lt;p&gt;I am using this plugin for a while now and am facing a problem right now,  Here is how my configuration file looks like,&lt;/p&gt;

&lt;p&gt;@searches = (&lt;/p&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;p&gt;Pattern1&lt;/p&gt;

&lt;p&gt;#
  {
     tag =&gt; &#039;Pattern1&#039;,
     logfile =&gt; &#039;/var/tmp/logfile1-log4j.log&#039;,
     criticalpatterns =&gt; [
           &#039;FATAL&#039;,
           &#039;Item limit per service exceeded&#039;,
           &#039;java.lang.OutOfMemoryError: Java heap space&#039;,
           &#039;ParserException&#039;,
        ],
     criticalexceptions =&gt; [
           &#039;RESCODE=IDNOTFOUND&#039;,
        ],
     options =&gt; &#039;sticky=900,noprotocol,nologfilenocry,supersmartscript&#039;,
     script =&gt; sub {
            ( my $line = $ENV{CHECK_LOGFILES_SERVICEOUTPUT}) =~ s/&#092;&#124;/&#092;;/g;
              print &quot;$line found in $ENV{CHECK_LOGFILES_LOGFILE}&quot;;
              return $ENV{CHECK_LOGFILES_SERVICESTATEID};
     }
  },&lt;/p&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;p&gt;Pattern2&lt;/p&gt;

&lt;p&gt;#
  {
     tag =&gt; &#039;Pattern2&#039;,
     logfile =&gt; &#039;/var/tmp/logfile2-log4j.log&#039;,
     criticalpatterns =&gt; [
           &#039;FATAL&#039;,
           &#039;ParserException&#039;,
        ],
     options =&gt; &#039;sticky=900,noprotocol,nologfilenocry,supersmartscript&#039;,
     script =&gt; sub {
            ( my $line = $ENV{CHECK_LOGFILES_SERVICEOUTPUT}) =~ s/&#092;&#124;/&#092;;/g;
              print &quot;$line found in $ENV{CHECK_LOGFILES_LOGFILE}&quot;;
              return $ENV{CHECK_LOGFILES_SERVICESTATEID};
     }
  },&lt;/p&gt;

&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;I have 20-30 such entries in given file. The problem is, even though the pattern match occurs in any of the logfiles, the logfile name displayed is always the last pattern.&lt;/p&gt;

&lt;p&gt;e.g. In above configuration, if their is one line found with &#039;FATAL&#039; pattern in Pattern1 section, the alert text would still show the logfile name as /var/tmp/logfile2-log4j.log instead of /var/tmp/logfile1-log4j.log&lt;/p&gt;

&lt;p&gt;do you see any issues with the way I am setting this up.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Lausser,</p>

<p>I am using this plugin for a while now and am facing a problem right now,  Here is how my configuration file looks like,</p>

<p>@searches = (</p>

<p>#</p>

<p>Pattern1</p>

<p>#
  {
     tag =&gt; &#8216;Pattern1&#8242;,
     logfile =&gt; &#8216;/var/tmp/logfile1-log4j.log&#8217;,
     criticalpatterns =&gt; [
           'FATAL',
           'Item limit per service exceeded',
           'java.lang.OutOfMemoryError: Java heap space',
           'ParserException',
        ],
     criticalexceptions =&gt; [
           'RESCODE=IDNOTFOUND',
        ],
     options =&gt; &#8216;sticky=900,noprotocol,nologfilenocry,supersmartscript&#8217;,
     script =&gt; sub {
            ( my $line = $ENV{CHECK_LOGFILES_SERVICEOUTPUT}) =~ s/&#092;|/&#092;;/g;
              print &#8220;$line found in $ENV{CHECK_LOGFILES_LOGFILE}&#8221;;
              return $ENV{CHECK_LOGFILES_SERVICESTATEID};
     }
  },</p>

<p>#</p>

<p>Pattern2</p>

<p>#
  {
     tag =&gt; &#8216;Pattern2&#8242;,
     logfile =&gt; &#8216;/var/tmp/logfile2-log4j.log&#8217;,
     criticalpatterns =&gt; [
           'FATAL',
           'ParserException',
        ],
     options =&gt; &#8216;sticky=900,noprotocol,nologfilenocry,supersmartscript&#8217;,
     script =&gt; sub {
            ( my $line = $ENV{CHECK_LOGFILES_SERVICEOUTPUT}) =~ s/&#092;|/&#092;;/g;
              print &#8220;$line found in $ENV{CHECK_LOGFILES_LOGFILE}&#8221;;
              return $ENV{CHECK_LOGFILES_SERVICESTATEID};
     }
  },</p>

<p>);</p>

<p>I have 20-30 such entries in given file. The problem is, even though the pattern match occurs in any of the logfiles, the logfile name displayed is always the last pattern.</p>

<p>e.g. In above configuration, if their is one line found with &#8216;FATAL&#8217; pattern in Pattern1 section, the alert text would still show the logfile name as /var/tmp/logfile2-log4j.log instead of /var/tmp/logfile1-log4j.log</p>

<p>do you see any issues with the way I am setting this up.</p>

<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hernan Fonseca</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-19188</link>
		<dc:creator>Hernan Fonseca</dc:creator>
		<pubDate>Thu, 31 Mar 2011 16:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-19188</guid>
		<description>&lt;p&gt;Lausser, 
Im trying this to catch some events ID in the application  event log on Windows&lt;/p&gt;

&lt;p&gt;@searches = (
{
    options =&gt; &#039;eventlogformat=&quot;%w src:%s id:%i %m&quot;&#039;,
    tag =&gt; &#039;evt_app&#039;,
    type =&gt; &#039;eventlog&#039;,
    eventlog =&gt; {
        eventlog =&gt; &#039;application&#039;,
        include =&gt; {
            source =&gt; &#039;BizTalk Server 2006&#039;,
            eventid =&gt; [&#039;5429&#039;,&#039;5410&#039;,&#039;6912&#039;,&#039;6913&#039;,&#039;5753&#039;,&#039;10034&#039;,&#039;7184&#039;,&#039;5439&#039;,&#039;7221&#039;,&#039;5649&#039;,&#039;5773&#039;,&#039;5888&#039;,&#039;5777&#039;,&#039;5697&#039;,&#039;5652&#039;,&#039;5743&#039;,&#039;5740&#039;],
                    },
                },
    criticalpatterns =&gt; &#039;.*&#039;,
});&lt;/p&gt;

&lt;p&gt;The problem is, that i wanna catch all events Id =5429 or all events ID =5410, or all events Id=6912 , and so on....&lt;/p&gt;

&lt;p&gt;how could be the best way to do that with out making all in separates files of course.&lt;/p&gt;

&lt;p&gt;thanks in advance&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Lausser, 
Im trying this to catch some events ID in the application  event log on Windows</p>

<p>@searches = (
{
    options =&gt; &#8216;eventlogformat=&#8221;%w src:%s id:%i %m&#8221;&#8216;,
    tag =&gt; &#8216;evt_app&#8217;,
    type =&gt; &#8216;eventlog&#8217;,
    eventlog =&gt; {
        eventlog =&gt; &#8216;application&#8217;,
        include =&gt; {
            source =&gt; &#8216;BizTalk Server 2006&#8242;,
            eventid =&gt; ['5429','5410','6912','6913','5753','10034','7184','5439','7221','5649','5773','5888','5777','5697','5652','5743','5740'],
                    },
                },
    criticalpatterns =&gt; &#8216;.*&#8217;,
});</p>

<p>The problem is, that i wanna catch all events Id =5429 or all events ID =5410, or all events Id=6912 , and so on&#8230;.</p>

<p>how could be the best way to do that with out making all in separates files of course.</p>

<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Hawkins</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-17511</link>
		<dc:creator>Matt Hawkins</dc:creator>
		<pubDate>Fri, 11 Mar 2011 20:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-17511</guid>
		<description>&lt;p&gt;Lausser,&lt;/p&gt;

&lt;p&gt;I&#039;m trying to figure out how the timeout works.  I&#039;m trying to get the check_logfiles script to die after 60 seconds.  I&#039;ve use the &quot;-t 60&quot; option but it doesn&#039;t seem to work.  I&#039;m sure I&#039;m doing something wrong or I misunderstand what it is used for.&lt;/p&gt;

&lt;p&gt;Thanks in advance as always.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Lausser,</p>

<p>I&#8217;m trying to figure out how the timeout works.  I&#8217;m trying to get the check_logfiles script to die after 60 seconds.  I&#8217;ve use the &#8220;-t 60&#8243; option but it doesn&#8217;t seem to work.  I&#8217;m sure I&#8217;m doing something wrong or I misunderstand what it is used for.</p>

<p>Thanks in advance as always.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: outremont</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-16051</link>
		<dc:creator>outremont</dc:creator>
		<pubDate>Wed, 23 Feb 2011 17:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-16051</guid>
		<description>&lt;p&gt;Guten Tag
Ich hab 2 logfiles welche ich auf ein Eintrag prüfen muss. Leider befinden sich die Logs in anderen Ordner!&lt;/p&gt;

&lt;p&gt;Zudem reicht es mir wenn nur eine Datei den Eintrag besitzt, bzw. er muss nicht in beiden Dateien erscheinen.&lt;/p&gt;

&lt;p&gt;Gibt es eine mögichkeit dies abzufragen?&lt;/p&gt;

&lt;p&gt;Gruss Outremont&lt;/p&gt;

&lt;p&gt;Ich hab folgendes Skript, welches nur ein OK bringt wenn beide Dateien den Eintrag haben:&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;logfile monitoring&lt;/p&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;p&gt;DBExport logfile&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;$seekfilesdir = &#039;C:&#092;&#092;groundwork&#092;&#092;temp&#039;;
@searches = (
    {
        tag =&gt; &#039;DBExport Logfile&#039;,
        logfile =&gt; &#039;D:&#092;&#092;backup&#092;&#092;oracle&#092;&#092;full&#092;&#092;posdb&#092;&#092;monday&#092;&#092;log&#092;&#092;exp_monday.log&#039;,
        criticalpatterns =&gt; [
            &#039;!Export erfolgreich ohne Warnungen beendet.&#039;&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;    ],&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;options           =&gt; &#039;protocol&#039;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;},
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;{
        tag =&gt; &#039;DBExport Logfile&#039;,
        logfile =&gt; &#039;D:&#092;&#092;backup&#092;&#092;oracle&#092;&#092;full&#092;&#092;posdb&#092;&#092;tuesday&#092;&#092;log&#092;&#092;exp_tuesday.log&#039;,
        criticalpatterns =&gt; [
            &#039;!Export erfolgreich ohne Warnungen beendet.&#039;&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;    ],&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;options           =&gt; &#039;protocol&#039;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;},
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;);&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Guten Tag
Ich hab 2 logfiles welche ich auf ein Eintrag prüfen muss. Leider befinden sich die Logs in anderen Ordner!</p>

<p>Zudem reicht es mir wenn nur eine Datei den Eintrag besitzt, bzw. er muss nicht in beiden Dateien erscheinen.</p>

<p>Gibt es eine mögichkeit dies abzufragen?</p>

<p>Gruss Outremont</p>

<p>Ich hab folgendes Skript, welches nur ein OK bringt wenn beide Dateien den Eintrag haben:</p>

<hr />

<p>logfile monitoring</p>

<p>#</p>

<p>DBExport logfile</p>

<hr />

<p>$seekfilesdir = &#8216;C:&#092;&#092;groundwork&#092;&#092;temp&#8217;;
@searches = (
    {
        tag =&gt; &#8216;DBExport Logfile&#8217;,
        logfile =&gt; &#8216;D:&#092;&#092;backup&#092;&#092;oracle&#092;&#092;full&#092;&#092;posdb&#092;&#092;monday&#092;&#092;log&#092;&#092;exp_monday.log&#8217;,
        criticalpatterns =&gt; [
            '!Export erfolgreich ohne Warnungen beendet.'</p>

<p><pre><code>    ],</code></pre></p>

<pre><code>options           =&amp;gt; 'protocol'
</code></pre>

<p>},
</p>

<p>{
        tag =&gt; 'DBExport Logfile',
        logfile =&gt; 'D:&#092;&#092;backup&#092;&#092;oracle&#092;&#092;full&#092;&#092;posdb&#092;&#092;tuesday&#092;&#092;log&#092;&#092;exp_tuesday.log',
        criticalpatterns =&gt; [
            '!Export erfolgreich ohne Warnungen beendet.'</p>

<p><pre><code>    ],</code></pre></p>

<pre><code>options           =&amp;gt; 'protocol'
</code></pre>

<p>},
</p>

<p>);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdouce</title>
		<link>http://labs.consol.de/lang/en/nagios/check_logfiles/check_logfiles-beispielecheck_logfiles-examples/comment-page-1/#comment-15118</link>
		<dc:creator>sdouce</dc:creator>
		<pubDate>Mon, 14 Feb 2011 15:57:05 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=574#comment-15118</guid>
		<description>&lt;p&gt;Hello ,
First thanks you for your plugin ! 
My question is i would like to use the check_logfile command to do something like that :&lt;/p&gt;

&lt;p&gt;./check_logfiles  --logfile=&quot;/path/to/file.log&quot; --config=ALERTLOG.cfg&lt;/p&gt;

&lt;p&gt;This way i can control many different logfile with identical config file ...? Do you know if its possible ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello ,
First thanks you for your plugin ! 
My question is i would like to use the check_logfile command to do something like that :</p>

<p>./check_logfiles  &#8211;logfile=&#8221;/path/to/file.log&#8221; &#8211;config=ALERTLOG.cfg</p>

<p>This way i can control many different logfile with identical config file &#8230;? Do you know if its possible ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

