Page 1 of 1

check_logfiles does not seem to work

Posted: Thu Nov 28, 2013 10:16 am
by Mr. Vitriol
Hi,
I'm slowly getting a grip on nagios and it's various functions. The newest task, I set for myself, is monitoring logfiles using check_logfiles, because we use logrotation on several servers. My Problem is, that the plugin does not seem to work.

I dowloaded the file, unpacked it and used

Code: Select all

configure && make && make install
Afterwards I have the check_logfiles plugin where it should be, at /usr/local/nagios/libexec but the file is only 35B big and contains only

Code: Select all

#! /usr/bin/perl -w
# nagios: -epn
When I execute the check via
/usr/local/nagios/libexec/check_logfiles --logfile=/var/log/syslog --criticalpattern='terminated'
as a test I get nothing back.

Is the check compiled right? Or is the installation broken? And if so, what can I do?

Re: check_logfiles does not seem to work

Posted: Mon Dec 02, 2013 11:46 am
by slansing
If you re-compile, do you see any errors? Does it complete properly?

Re: check_logfiles does not seem to work

Posted: Fri Dec 06, 2013 5:44 am
by Mr. Vitriol
Thanks for your help.

Unfortunatley urgent problems keep me buisy in the moment. I was not able to follow your hint. I will get back to it as fast as I can.

Re: check_logfiles does not seem to work

Posted: Fri Dec 06, 2013 11:40 am
by sreinhardt
ok, let us know when you get a chance.