Page 1 of 1

Issue with check_logfiles plugin

Posted: Wed Mar 04, 2015 6:18 am
by RIDS_I2MP
Hi team,

we are using check_logfiles plugin to look for some pattern in our log files in few application servers, tough it was working fine till early this week on all the servers, we have had an issue on 1 server. When a check is executed we see the message 'CHECK_NRPE: Socket timeout after 30 seconds' on the nagios console. We have logged into the application server and run the plugin to check a pattern as there we get the below message.

Code: Select all

[nagios@localhost libexec]$ ./check_logfiles --logfile=logfile path --criticalpattern=string
Argument "           'runcount' => 38544," isn't numeric in localtime at ./check_logfiles line 2966.
I have tried re-compiling the plugin from source and also replacing it with the plugin from a different server where it was working fine with no success. 1 thing I observed is the tmp files created in /tmp are not getting created now. Please help

Re: Issue with check_logfiles plugin

Posted: Wed Mar 04, 2015 11:08 am
by abrist
Can you post a link to this plugin?
What OS/version is the plugin running on?
I want to test this plugin myself.

Re: Issue with check_logfiles plugin

Posted: Thu Mar 05, 2015 4:00 am
by RIDS_I2MP
Link for the plugin check_logfiles - http://labs.consol.de/lang/en/nagios/check_logfiles/

OS Version - Linux 2.6.18-371.el5 #1 SMP Thu Sep 5 21:21:44 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

Re: Issue with check_logfiles plugin

Posted: Thu Mar 05, 2015 10:53 am
by ssax
Looks like it may be an issue with the contents of one of your seekfiles that check_logfiles uses.

Look in the directory below for check_logfiles._log_file_path and/or check_logfiles._log_file_path.seek and compare it to one on the working machine.

Code: Select all

/var/tmp/check_logfiles/check_logfiles
Let us know what you find.