Thanks Tarak this has resolved my issue.

I assume that when you point check_logfiles on a log file, it makes a hash of 
the file and starts to monitor at the EOF waiting for new input and scanning 
for the specific information.

CC'ing the nagios-users.

Thank you.

From: Tarak Patel [mailto:tarak.pa...@ec.gc.ca]
Sent: January/20/2009 1:28 PM
To: Mirza Dedic
Subject: Re: [Nagios-users] AIX & check_logfiles from consol.com issues/errors 
- please help

Hi,

If I remember correctly each time you execute the script it keeps track of the 
offset in file. This means that if there are no new entries (matching the 
criterias) in the logfile since the last time check_logfile was executed it 
will return okay. I think the script adds an offset value in a file (might be a 
hidden file starting with .)

Regards,

Tarak.
System Analyst
Envrionment Canada
(514)421-4799

Mirza Dedic wrote:
Hello,

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.

>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:

$seekfilesdir = '/tmp';
@searches = (
  {
    tag => 'aix',
    logfile => '/mirde.log',
criticalpatterns =>
        [
        'W3SVC2',
    ],
    warningpatterns =>
        [
        'W3SVC3',
    ],
        options => 'count',
  },
);

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.

Any idea why this is not working and/or tips?

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.

Thanks.

Mirza Dedic
Jr. Technical Analyst - The Oppenheimer Group
Office #(604) 461-6779 : Cell #(778) 895-8950









________________________________






------------------------------------------------------------------------------

This SF.net email is sponsored by:

SourcForge Community

SourceForge wants to tell your story.

http://p.sf.net/sfu/sf-spreadtheword






________________________________






_______________________________________________

Nagios-users mailing list

Nagios-users@lists.sourceforge.net<mailto:Nagios-users@lists.sourceforge.net>

https://lists.sourceforge.net/lists/listinfo/nagios-users

::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.

::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to