Apache log monitor inside a container

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
PhumeleleSJose96
Posts: 13
Joined: Mon Feb 14, 2022 5:39 am

Apache log monitor inside a container

Post by PhumeleleSJose96 »

I have a Nagios Log server installed on ubuntu 18.04. and I can access my ubuntu system logs as per documentation. Now I want to monitor apache error and access logs, which are in docker containers. Just wanted to know the process for same. I have done following inside docker container. But somehow I am not getting apache logs. Do I need to open port? echatspin or echatrandom any other configuration required?

Installed rsyslog in docker container.
downloaded http://..*.54/nagioslogserver/scripts/setup-linux.sh
bash setup-linux.sh -s ..*.54 -p 35544 -f "/var/log/apache2/error.log" -t apache_error
Last edited by PhumeleleSJose96 on Thu Aug 18, 2022 3:35 am, edited 1 time in total.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Apache log monitor inside a container

Post by gormank »

Make sure NLS shows listening on 35544 in the configuration page.

From the apache host check with nmap that the NLS logstash port is open.

nmap -p 35544 <NLS host>

If logstash is listening, and nmap shows the port not open, something is blocking it.
Post Reply