check_logfiles does not seem to work
Posted: Thu Nov 28, 2013 10:16 am
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
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
When I execute the check via
Is the check compiled right? Or is the installation broken? And if so, what can I do?
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
Code: Select all
#! /usr/bin/perl -w
# nagios: -epn
as a test I get nothing back./usr/local/nagios/libexec/check_logfiles --logfile=/var/log/syslog --criticalpattern='terminated'
Is the check compiled right? Or is the installation broken? And if so, what can I do?