check_logfiles

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fsodah
Posts: 292
Joined: Thu Sep 12, 2019 1:19 am

check_logfiles

Post 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
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: check_logfiles

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 292
Joined: Thu Sep 12, 2019 1:19 am

Re: check_logfiles

Post 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]# 
fsodah
Posts: 292
Joined: Thu Sep 12, 2019 1:19 am

Re: check_logfiles

Post 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.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: check_logfiles

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 292
Joined: Thu Sep 12, 2019 1:19 am

Re: check_logfiles

Post by fsodah »

Done ... please close it
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_logfiles

Post by scottwilkerson »

fsodah wrote:Done ... please close it
Great

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked