Nagios Web Interface through firewall
Posted: Mon May 13, 2019 5:52 pm
Hello,
I have installed Nagios Core 4.4.3 with HTTP on Ubuntu 18.04. The installation is in our DMZ monitoring a number of servers. The web interface works well as long as it is used from a machine in the DMZ. I have opened Port 22 and 80 so that we can monitor the environment from the internal network, so there is a firewall between my network and the Nagios server.
Issue: If I access the Web Interface from the internal machine using "http://nagiosserver/nagios", then the browser waits for some time (60s), then gives a "Connection Reset" or "Can't reach this page".
I tried to make the site a VirtualHost, and then used "http://nagiosserver/" The main page loads, but I noticed that none of the CGI scripts are able to execute. e.g. The Status Check in the middle of the page eventually returns "net::ERR_CONNECTION_RESET". If I select any of the sidebar links, none of the pages are able to load also with the same error.
To confuse the issue, I installed NagiosGraph, which also uses CGI scripts, and this appears to work fine using "http://nagiosserver/nagiosgraph"
The Ubuntu firewall has been disabled
Tried Chrome, IE and Edge
Tried different client machine
Checked Nagios file permissions
I matched the file permissions with the NagiosGraph
Followed numerous threads configuring <Directory> Require all granted </Directory>
I thought I had a firewall issue, but the Nagiosgraph cgi's wok fine, so don't think it is that, but I am not sure what else to check.
Any ideas what I can check?
I have installed Nagios Core 4.4.3 with HTTP on Ubuntu 18.04. The installation is in our DMZ monitoring a number of servers. The web interface works well as long as it is used from a machine in the DMZ. I have opened Port 22 and 80 so that we can monitor the environment from the internal network, so there is a firewall between my network and the Nagios server.
Issue: If I access the Web Interface from the internal machine using "http://nagiosserver/nagios", then the browser waits for some time (60s), then gives a "Connection Reset" or "Can't reach this page".
I tried to make the site a VirtualHost, and then used "http://nagiosserver/" The main page loads, but I noticed that none of the CGI scripts are able to execute. e.g. The Status Check in the middle of the page eventually returns "net::ERR_CONNECTION_RESET". If I select any of the sidebar links, none of the pages are able to load also with the same error.
To confuse the issue, I installed NagiosGraph, which also uses CGI scripts, and this appears to work fine using "http://nagiosserver/nagiosgraph"
The Ubuntu firewall has been disabled
Tried Chrome, IE and Edge
Tried different client machine
Checked Nagios file permissions
I matched the file permissions with the NagiosGraph
Followed numerous threads configuring <Directory> Require all granted </Directory>
I thought I had a firewall issue, but the Nagiosgraph cgi's wok fine, so don't think it is that, but I am not sure what else to check.
Any ideas what I can check?