z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

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.

Apache log monitor inside a container

Postby PhumeleleSJose96 » Wed Aug 17, 2022 7:11 am

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.
PhumeleleSJose96
 
Posts: 11
Joined: Mon Feb 14, 2022 5:39 am

Re: Apache log monitor inside a container

Postby gormank » Wed Aug 17, 2022 3:19 pm

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.
gormank
 
Posts: 1033
Joined: Tue Dec 02, 2014 12:00 pm


Return to Open Source Nagios Projects

Who is online

Users browsing this forum: Google [Bot] and 6 guests