Nagios web interface cannot connect to apache

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.
Locked
avarf
Posts: 3
Joined: Mon Feb 11, 2019 8:14 am

Nagios web interface cannot connect to apache

Post by avarf »

I pulled and started the nagios container (jasonrivers/nagios) and I can have access to the web interface but inside I get: "Unable to get process status" and if I click on any of the statuses I get this error:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Apache/2.4.29 (Ubuntu) Server at localhost Port 80
Inside the nagios container I checked port 80 but it was down. Can someone guide me how to solve this problem?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios web interface cannot connect to apache

Post by scottwilkerson »

I'm not familiar with that specific container but I know our official container needs to be run with the following to open the port

Code: Select all

docker run -p 80:80 -dit nagiosenterprises/nagioscore
https://hub.docker.com/r/nagiosenterprises/nagioscore/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
avarf
Posts: 3
Joined: Mon Feb 11, 2019 8:14 am

Re: Nagios web interface cannot connect to apache

Post by avarf »

My problem is I have to use a nagios container that is currently running on a server but not my machine so I tested that container which also didn't work on my machine.
I checked the servers environment variables and compared it with my machine and I found out that my machine soesn't have these variables:

Code: Select all

APACHE_LOCK_DIR=/var/run
APACHE_LOG_DIR=/var/log/apache2
APACHE_RUN_GROUP=nagios
APACHE_RUN_USER=nagios
Can this be the problem?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios web interface cannot connect to apache

Post by scottwilkerson »

avarf wrote:Can this be the problem?
Possibly, but as I mentioned we are not the creators of this docker image so I have no idea how it is setup to run.

You will likely need to consult with the author
https://hub.docker.com/r/jasonrivers/nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked