<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hello,</div>
<div> </div>
<div>I am having issues getting the check_logfiles script from consol.com to work; I am using their latest script and it was compiled in my AIX 5.3 environment.</div>
<div> </div>
<div>From the aix box’s console I run: check_logfiles –t 10 –f /test.cfg and I am expected to get a CRITICAL warning based on test.cfg’s configuration:</div>
<div> </div>
<div><font color="#C00000">$seekfilesdir = '/tmp';</font></div>
<div><font color="#C00000">@searches = (</font></div>
<div><font color="#C00000">  {</font></div>
<div><font color="#C00000">    tag => 'aix',</font></div>
<div><font color="#C00000">    logfile => '/mirde.log',</font></div>
<div><font color="#C00000">criticalpatterns => </font></div>
<div><font color="#C00000">        [</font></div>
<div><font color="#C00000">        'W3SVC2',</font></div>
<div><font color="#C00000">    ],</font></div>
<div><font color="#C00000">    warningpatterns => </font></div>
<div><font color="#C00000">        [</font></div>
<div><font color="#C00000">        'W3SVC3',</font></div>
<div><font color="#C00000">    ],</font></div>
<div><font color="#C00000">        options => 'count',</font></div>
<div><font color="#C00000">  },</font></div>
<div><font color="#C00000">);</font></div>
<div> </div>
<div>My results from the script keep coming out as OK, where it should give me a CRITICAL and WARNING message since the 2 patterns exist in mirde.log test log.</div>
<div> </div>
<div>Any idea why this is not working and/or tips?</div>
<div> </div>
<div>The script seems functional, if I point the logfile to a non-existent file it will error out properly. The check script has a chmod of 777 as well and is being executed under root.</div>
<div> </div>
<div>Thanks. </div>
<div> </div>
<div><font face="Courier New, monospace" size="2"><b>Mirza Dedic</b></font></div>
<div><font face="Courier New, monospace" size="2">Jr. Technical Analyst - The Oppenheimer Group</font></div>
<div><font face="Courier New, monospace" size="2">Office #<b>(604) 461-6779 </b>: Cell #<b>(778) 895-8950</b></font></div>
<div> </div>
<div> </div>
<div> </div>
</font>
</body>
</html>