<?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</title>
	<atom:link href="http://labs.consol.de/lang/de/nagios/check_logfiles/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.consol.de</link>
	<description>Open Source by ConSol*</description>
	<lastBuildDate>Fri, 12 Mar 2010 15:05:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1140</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Thu, 11 Mar 2010 11:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1140</guid>
		<description>&lt;p&gt;By default it will be in the directory /var/tmp/check_logfiles (unless you specify another directory with the $seekfilesdir parameter). The filename of the seekfile is composed from the tag and the logfile&#039;s name.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>By default it will be in the directory /var/tmp/check_logfiles (unless you specify another directory with the $seekfilesdir parameter). The filename of the seekfile is composed from the tag and the logfile&#8217;s name.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1136</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Wed, 10 Mar 2010 17:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1136</guid>
		<description>&lt;p&gt;&quot;In principle check_logfiles scans a log file until the end-of-file is reached. The offset will then be saved in a so-called seekfile. The next time check_logfiles runs, this offset will be used as the starting position inside the log file&quot;&lt;/p&gt;

&lt;p&gt;Where is this so-called seekfile ? I want to delete it during my tests...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;In principle check_logfiles scans a log file until the end-of-file is reached. The offset will then be saved in a so-called seekfile. The next time check_logfiles runs, this offset will be used as the starting position inside the log file&#8221;</p>

<p>Where is this so-called seekfile ? I want to delete it during my tests&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1101</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Fri, 05 Mar 2010 10:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1101</guid>
		<description>&lt;p&gt;Did you copy&amp;paste the error message to your comment? I see a strange character here: ....Unknown option: ûcriticalexception ...&lt;/p&gt;

&lt;p&gt;The --criticalexception does work, i just doublechecked it. Please try it again.
&lt;pre lang=&quot;plain&quot;&gt;
check_logfiles.exe --logfile &quot;test.log&quot; --criticalpattern &quot;Error&quot; --criticalexception &quot;Invalid credentials&quot;
&lt;/pre&gt;
Please type the comand yourself, do not copy&amp;paste from this website. I have a suspicion that wordpress messes up the page contents (as it does with the double-dash)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Did you copy&amp;paste the error message to your comment? I see a strange character here: &#8230;.Unknown option: ûcriticalexception &#8230;</p>

<p>The &#8211;criticalexception does work, i just doublechecked it. Please try it again.

</p>
<div class="wp_syntax"><div class="code"><pre class="plain">check_logfiles.exe --logfile &quot;test.log&quot; --criticalpattern &quot;Error&quot; --criticalexception &quot;Invalid credentials&quot;</pre></div></div>



Please type the comand yourself, do not copy&amp;paste from this website. I have a suspicion that wordpress messes up the page contents (as it does with the double-dash)]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1099</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Fri, 05 Mar 2010 10:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1099</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;thanks a lot for your plugin, it’s very useful. I have a problem with the Windows version plugin: if I execute it with the “criticalexception” param, I get an error message that says “Unknown option”. You have below the whole error message.&lt;/p&gt;

&lt;p&gt;Best regards.&lt;/p&gt;

&lt;p&gt;C:&#92;ARCHIV~1&#92;NAGIOS~1&#92;plugins&gt;check_logfiles.exe --logfile=&quot;test.log&quot; --criticalpattern=&quot;Error&quot; --criticalexception=&quot;Invalid credentials&quot;
Unknown option: ûcriticalexception
This Nagios Plugin comes with absolutely NO WARRANTY. You may use
it on your own risk!
Copyright by ConSol Software GmbH, Gerhard Lausser.&lt;/p&gt;

&lt;p&gt;This plugin looks for patterns in logfiles, even in those who were rotated
since the last run of this plugin.&lt;/p&gt;

&lt;p&gt;You can find the complete documentation at
http://www.consol.com/opensource/nagios/check-logfiles
or
http://www.consol.de/opensource/nagios/check-logfiles&lt;/p&gt;

&lt;p&gt;Usage: check_logfiles [-t timeout] -f &lt;/p&gt;

&lt;p&gt;The configfile looks like this:&lt;/p&gt;

&lt;p&gt;$seekfilesdir = &#039;/opt/nagios/var/tmp&#039;;&lt;/p&gt;

&lt;p&gt;where the state information will be saved.&lt;/p&gt;

&lt;p&gt;$protocolsdir = &#039;/opt/nagios/var/tmp&#039;;&lt;/p&gt;

&lt;p&gt;where protocols with found patterns will be stored.&lt;/p&gt;

&lt;p&gt;$scriptpath = &#039;/opt/nagios/var/tmp&#039;;&lt;/p&gt;

&lt;p&gt;where scripts will be searched for.&lt;/p&gt;

&lt;p&gt;$MACROS = { CL_DISK01 =&gt; &quot;/dev/dsk/c0d1&quot;, CL_DISK02 =&gt; &quot;/dev/dsk/c0d2&quot; };&lt;/p&gt;

&lt;p&gt;@searches = (
  {
    tag =&gt; &#039;temperature&#039;,
    logfile =&gt; &#039;/var/adm/syslog/syslog.log&#039;,
    rotation =&gt; &#039;bmwhpux&#039;,
    criticalpatterns =&gt; [&#039;OVERTEMP_EMERG&#039;, &#039;Power supply failed&#039;],
    warningpatterns =&gt; [&#039;OVERTEMP_CRIT&#039;, &#039;Corrected ECC Error&#039;],
    options =&gt; &#039;script,protocol,nocount&#039;,
    script =&gt; &#039;sendnsca_cmd&#039;
  },
  {
    tag =&gt; &#039;scsi&#039;,
    logfile =&gt; &#039;/var/adm/messages&#039;,
    rotation =&gt; &#039;solaris&#039;,
    criticalpatterns =&gt; &#039;Sense Key: Not Ready&#039;,
    criticalexceptions =&gt; &#039;Sense Key: Not Ready /dev/testdisk&#039;,
    options =&gt; &#039;noprotocol&#039;
  },
  {
    tag =&gt; &#039;logins&#039;,
    logfile =&gt; &#039;/var/adm/messages&#039;,
    rotation =&gt; &#039;solaris&#039;,
    criticalpatterns =&gt; [&#039;illegal key&#039;, &#039;read error.&lt;em&gt;$CL_DISK01$&#039;],
    criticalthreshold =&gt; 4
    warningpatterns =&gt; [&#039;read error.&lt;/em&gt;$CL_DISK02$&#039;],
  }
);&lt;/p&gt;

&lt;p&gt;C:&#92;ARCHIV~1&#92;NAGIOS~1&#92;plugins&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>

<p>thanks a lot for your plugin, it’s very useful. I have a problem with the Windows version plugin: if I execute it with the “criticalexception” param, I get an error message that says “Unknown option”. You have below the whole error message.</p>

<p>Best regards.</p>

<p>C:&#92;ARCHIV~1&#92;NAGIOS~1&#92;plugins&gt;check_logfiles.exe &#8211;logfile=&#8221;test.log&#8221; &#8211;criticalpattern=&#8221;Error&#8221; &#8211;criticalexception=&#8221;Invalid credentials&#8221;
Unknown option: ûcriticalexception
This Nagios Plugin comes with absolutely NO WARRANTY. You may use
it on your own risk!
Copyright by ConSol Software GmbH, Gerhard Lausser.</p>

<p>This plugin looks for patterns in logfiles, even in those who were rotated
since the last run of this plugin.</p>

<p>You can find the complete documentation at
<a href="http://www.consol.com/opensource/nagios/check-logfiles" rel="nofollow">http://www.consol.com/opensource/nagios/check-logfiles</a>
or
<a href="http://www.consol.de/opensource/nagios/check-logfiles" rel="nofollow">http://www.consol.de/opensource/nagios/check-logfiles</a></p>

<p>Usage: check_logfiles [-t timeout] -f </p>

<p>The configfile looks like this:</p>

<p>$seekfilesdir = &#8216;/opt/nagios/var/tmp&#8217;;</p>

<p>where the state information will be saved.</p>

<p>$protocolsdir = &#8216;/opt/nagios/var/tmp&#8217;;</p>

<p>where protocols with found patterns will be stored.</p>

<p>$scriptpath = &#8216;/opt/nagios/var/tmp&#8217;;</p>

<p>where scripts will be searched for.</p>

<p>$MACROS = { CL_DISK01 =&gt; &#8220;/dev/dsk/c0d1&#8243;, CL_DISK02 =&gt; &#8220;/dev/dsk/c0d2&#8243; };</p>

<p>@searches = (
  {
    tag =&gt; &#8216;temperature&#8217;,
    logfile =&gt; &#8216;/var/adm/syslog/syslog.log&#8217;,
    rotation =&gt; &#8216;bmwhpux&#8217;,
    criticalpatterns =&gt; ['OVERTEMP_EMERG', 'Power supply failed'],
    warningpatterns =&gt; ['OVERTEMP_CRIT', 'Corrected ECC Error'],
    options =&gt; &#8217;script,protocol,nocount&#8217;,
    script =&gt; &#8217;sendnsca_cmd&#8217;
  },
  {
    tag =&gt; &#8217;scsi&#8217;,
    logfile =&gt; &#8216;/var/adm/messages&#8217;,
    rotation =&gt; &#8217;solaris&#8217;,
    criticalpatterns =&gt; &#8216;Sense Key: Not Ready&#8217;,
    criticalexceptions =&gt; &#8216;Sense Key: Not Ready /dev/testdisk&#8217;,
    options =&gt; &#8216;noprotocol&#8217;
  },
  {
    tag =&gt; &#8216;logins&#8217;,
    logfile =&gt; &#8216;/var/adm/messages&#8217;,
    rotation =&gt; &#8217;solaris&#8217;,
    criticalpatterns =&gt; ['illegal key', 'read error.<em>$CL_DISK01$'],
    criticalthreshold =&gt; 4
    warningpatterns =&gt; ['read error.</em>$CL_DISK02$'],
  }
);</p>

<p>C:&#92;ARCHIV~1&#92;NAGIOS~1&#92;plugins&gt;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1090</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Thu, 04 Mar 2010 15:11:12 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1090</guid>
		<description>&lt;p&gt;If you use the option report=long, then the tag is also shown in the output. Tag and logfile are available as environment variables to handler scripts. Something like this is possible:
&lt;pre lang=&quot;bash&quot;&gt;
@searches = ({
    tag =&gt; &#039;xyxy&#039;,
    logfile =&gt; &#039;xyxy.log&#039;,
    options =&gt; &#039;supersmartscript&#039;,
    script =&gt; sub {
      printf &quot;%s - %s - %s\n&quot;,
          $ENV{CHECK_LOGFILES_TAG},
          $ENV{CHECK_LOGFILES_LOGFILE},
          $ENV{CHECK_LOGFILES_SERVICEOUTPUT};
      return $ENV{CHECK_LOGFILES_SERVICESTATEID};
    },
   ....
&lt;/pre&gt;
This adds tag and current logfile as prefix to the matched lines. Of course, this will bloat your output.
Alternatively you might have a look at supersmartpostscript. (See the examples page).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If you use the option report=long, then the tag is also shown in the output. Tag and logfile are available as environment variables to handler scripts. Something like this is possible:

</p>
<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #000000;">@</span>searches = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>
    tag =<span style="color: #000000;">&gt;</span> <span style="color: #C37554;">'xyxy'</span>,
    logfile =<span style="color: #000000;">&gt;</span> <span style="color: #C37554;">'xyxy.log'</span>,
    options =<span style="color: #000000;">&gt;</span> <span style="color: #C37554;">'supersmartscript'</span>,
    script =<span style="color: #000000;">&gt;</span> sub <span style="color: #7a0874; font-weight: bold;">&#123;</span>
      <span style="color: #32839B; font-weight: bold;">printf</span> <span style="color: #ff0000;color: #800101;">&quot;%s - %s - %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>,
          <span style="color: #007800;">$ENV</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>CHECK_LOGFILES_TAG<span style="color: #7a0874; font-weight: bold;">&#125;</span>,
          <span style="color: #007800;">$ENV</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>CHECK_LOGFILES_LOGFILE<span style="color: #7a0874; font-weight: bold;">&#125;</span>,
          <span style="color: #007800;">$ENV</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>CHECK_LOGFILES_SERVICEOUTPUT<span style="color: #7a0874; font-weight: bold;">&#125;</span>;
      <span style="color: #32839B; font-weight: bold;">return</span> <span style="color: #007800;">$ENV</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>CHECK_LOGFILES_SERVICESTATEID<span style="color: #7a0874; font-weight: bold;">&#125;</span>;
    <span style="color: #7a0874; font-weight: bold;">&#125;</span>,
   ....</pre></div></div>



This adds tag and current logfile as prefix to the matched lines. Of course, this will bloat your output.
Alternatively you might have a look at supersmartpostscript. (See the examples page).]]></content:encoded>
	</item>
	<item>
		<title>By: JK</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1089</link>
		<dc:creator>JK</dc:creator>
		<pubDate>Thu, 04 Mar 2010 14:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1089</guid>
		<description>&lt;p&gt;Thank you for that great plugin. I have one issue:
Is it possible to include the tag and logfile parameter in the output of the plugin?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you for that great plugin. I have one issue:
Is it possible to include the tag and logfile parameter in the output of the plugin?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1077</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1077</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-1075&quot; rel=&quot;nofollow&quot;&gt;@lausser&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;ah, cool, thanks.  replied b4 I saw that you had already.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-1075" rel="nofollow">@lausser</a>,</p>

<p>ah, cool, thanks.  replied b4 I saw that you had already.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1076</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1076</guid>
		<description>&lt;p&gt;If you expect situations where no valid logfile exists, you need to set options=&gt;&#039;nologfilenocry&#039; to suppress the UNKNOWN.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If you expect situations where no valid logfile exists, you need to set options=>&#8217;nologfilenocry&#8217; to suppress the UNKNOWN.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1075</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1075</guid>
		<description>&lt;p&gt;check_logfiles already handles the weirdest situation, guessing filenames or finding logfiles by regular expression alas is beyond the scope of this tool.
What you can do:&lt;/p&gt;

&lt;p&gt;The configfile is simply a piece of perl-code. Why not write
&lt;pre lang=&quot;perl&quot;&gt;code...code...code
$logfile = what i found to be the current logfile;
@searches = ({
....
  logfile =&gt; $logfile,
  options =&gt; &#039;allyoucaneat&#039;, #start from the beginning
....
});
&lt;/pre&gt;
 An alternative would be rotating::uniform. (look above in these comments, there already is an example)
&lt;pre lang=&quot;perl&quot;&gt;
$tracefile = &#039;a file where debugging will be written to&#039;;
@searches = ({
  type =&gt; &#039;rotating::uniform&#039;,
  # a dummy logfile entry. it is used only because it
  # shows the plugin which directory to look in
  logfile =&gt; &#039;/home/edwinst....backuplog/i_dont_exist&#039;,
  # now the pattern for rotated files (in ..../backuplog)
  rotation =&gt; &#039;db2backup_dw_prd\d+_\d{8}_\d+\.log&#039;,
  criticalpatterns =&gt; &#039;........
});
&lt;/pre&gt;
Now always the newest logfile is considered the current, active logfile and all the others are considered rotated archives.&lt;/p&gt;

&lt;p&gt;Create the tracefile with the touch-command and watch it&#039;s contents with tail -f.&lt;/p&gt;

&lt;p&gt;Play around with it, it should work.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>check_logfiles already handles the weirdest situation, guessing filenames or finding logfiles by regular expression alas is beyond the scope of this tool.
What you can do:</p>

<p>The configfile is simply a piece of perl-code. Why not write

</p>
<div class="wp_syntax"><div class="code"><pre class="perl">code<span style="color: #000000;">...</span>code<span style="color: #000000;">...</span>code
<span style="color: #AAA258;">$logfile</span> <span style="color: #000000;">=</span> what i found to be the current logfile<span style="color: #000000;">;</span>
<span style="color: #AAA258;">@searches</span> <span style="color: #000000;">=</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>
<span style="color: #000000;">....</span>
  logfile <span style="color: #000000;">=&gt;</span> <span style="color: #AAA258;">$logfile</span><span style="color: #000000;">,</span>
  options <span style="color: #000000;">=&gt;</span> <span style="color: #ff0000;">'allyoucaneat'</span><span style="color: #000000;">,</span> <span style="color: #666666; font-style: italic;color: #8F8F8F; font-weight: 100;">#start from the beginning</span>
<span style="color: #000000;">....</span>
<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span></pre></div></div>



 An alternative would be rotating::uniform. (look above in these comments, there already is an example)


<div class="wp_syntax"><div class="code"><pre class="perl"><span style="color: #AAA258;">$tracefile</span> <span style="color: #000000;">=</span> <span style="color: #ff0000;">'a file where debugging will be written to'</span><span style="color: #000000;">;</span>
<span style="color: #AAA258;">@searches</span> <span style="color: #000000;">=</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>
  type <span style="color: #000000;">=&gt;</span> <span style="color: #ff0000;">'rotating::uniform'</span><span style="color: #000000;">,</span>
  <span style="color: #666666; font-style: italic;color: #8F8F8F; font-weight: 100;"># a dummy logfile entry. it is used only because it</span>
  <span style="color: #666666; font-style: italic;color: #8F8F8F; font-weight: 100;"># shows the plugin which directory to look in</span>
  logfile <span style="color: #000000;">=&gt;</span> <span style="color: #ff0000;">'/home/edwinst....backuplog/i_dont_exist'</span><span style="color: #000000;">,</span>
  <span style="color: #666666; font-style: italic;color: #8F8F8F; font-weight: 100;"># now the pattern for rotated files (in ..../backuplog)</span>
  rotation <span style="color: #000000;">=&gt;</span> <span style="color: #ff0000;">'db2backup_dw_prd\d+_\d{8}_\d+\.log'</span><span style="color: #000000;">,</span>
  criticalpatterns <span style="color: #000000;">=&gt;</span> <span style="color: #ff0000;">'........
});</span></pre></div></div>



Now always the newest logfile is considered the current, active logfile and all the others are considered rotated archives.

<p>Create the tracefile with the touch-command and watch it&#8217;s contents with tail -f.</p>

<p>Play around with it, it should work.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://labs.consol.de/lang/de/nagios/check_logfiles/comment-page-1/#comment-1074</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/?page_id=91#comment-1074</guid>
		<description>&lt;p&gt;Did this but it still gets an UNKNOWN error if there are no valid log files.  I &quot;think&quot; it works other than that...  See issues?&lt;/p&gt;

&lt;p&gt;$scriptpath = &#039;/pkgs/linux/intel/nagiosplug/et0.1/libexec&#039;;
@searches = ();
foreach my $logfile (glob &#039;/home/edwinst1/scripts/logs/backuplog/db2backup_dw_prd1_*.log&#039;) {
        next if (-M &quot;$logfile&quot; &gt; 8);
        push(@searches, { tag =&gt; basename($logfile), logfile =&gt; $logfile, options =&gt; &#039;protocol,count&#039;, criticalpatterns =&gt; [&#039;ERROR&#039;,&#039;DB2&#92;sbackup.+failed&#039;] });
}
1;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Did this but it still gets an UNKNOWN error if there are no valid log files.  I &#8220;think&#8221; it works other than that&#8230;  See issues?</p>

<p>$scriptpath = &#8216;/pkgs/linux/intel/nagiosplug/et0.1/libexec&#8217;;
@searches = ();
foreach my $logfile (glob &#8216;/home/edwinst1/scripts/logs/backuplog/db2backup_dw_prd1_*.log&#8217;) {
        next if (-M &#8220;$logfile&#8221; &gt; 8);
        push(@searches, { tag =&gt; basename($logfile), logfile =&gt; $logfile, options =&gt; &#8216;protocol,count&#8217;, criticalpatterns =&gt; ['ERROR','DB2&#92;sbackup.+failed'] });
}
1;</p>]]></content:encoded>
	</item>
</channel>
</rss>
