Page 1 of 1

check_logfiles

Posted: Wed Aug 12, 2020 2:52 pm
by fsodah
how to get this done ,,, i need to sniff some pattern in diff log files from diff services... how to install and how can get this run from client and server side? Thanks in advance

Re: check_logfiles

Posted: Wed Aug 12, 2020 3:01 pm
by jbrunkow
You should be able to do so with the -q option of the check_logs plugin or by downloading and installing the check_logfiles plugin.

You can see the installation instructions here:

https://labs.consol.de/nagios/check_log ... stallation

Look in your libexec folder to see what plugins are present in XI.

Code: Select all

cd /usr/local/nagios/libexec && ls
check_logfiles on GitHub
check_logfiles on Nagios Exchange

Re: check_logfiles

Posted: Thu Aug 13, 2020 12:06 am
by fsodah
I have the following

Code: Select all

[root@nagios libexec]# ls check_l*
check_last_logs.pl  check_ldap  check_ldaps  check_load  check_log
[root@nagios libexec]# ls -al check_l*
-rwxrwxr-x 1 apache nagios   1811 Sep 24  2019 check_last_logs.pl
-rwxrwxr-x 1 apache nagios 227968 Jun 27 10:32 check_ldap
lrwxrwxrwx 1 apache nagios     10 Jun 27 10:32 check_ldaps -> check_ldap
-rwxrwxr-x 1 apache nagios 169704 Jun 27 10:32 check_load
-rwxrwxr-x 1 apache nagios   7068 Jun 27 10:32 check_log
[root@nagios libexec]# 

Re: check_logfiles

Posted: Thu Aug 13, 2020 1:11 am
by fsodah
If i do “configure, make and install” would be this normally for my nagios server without missing with the integrity of the system
and copy it to /usr/local/nagios/libexec and then chmod +x it and also chown nagios:nagios it.

Re: check_logfiles

Posted: Thu Aug 13, 2020 4:59 pm
by jbrunkow
Yeah, can run the following commands to configure and then install it.

Code: Select all

cd /tmp
wget https://labs.consol.de/assets/downloads/nagios/check_logfiles-3.12.tar.gz
tar zxf check_logfiles-3.12.tar.gz
cd check_logfiles-3.12
./configure
make all
make install
It will install in the default directory, so I don't think you have to move it there.

Re: check_logfiles

Posted: Fri Aug 14, 2020 8:12 am
by fsodah
Done ... please close it

Re: check_logfiles

Posted: Fri Aug 14, 2020 8:41 am
by scottwilkerson
fsodah wrote:Done ... please close it
Great

Locking thread