Issue with check_logfiles plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Issue with check_logfiles plugin

Post 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
Thanks & Regards,
I2MP Team.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Issue with check_logfiles plugin

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Issue with check_logfiles plugin

Post 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
Thanks & Regards,
I2MP Team.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issue with check_logfiles plugin

Post 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.
Locked