We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Apache log monitor inside a container

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

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

Return to Community Support

Who is online

Users browsing this forum: No registered users and 16 guests