Page 1 of 1
404 Not found on trying to launch localhost/nagios
Posted: Mon Aug 12, 2019 3:35 am
by sunilkanth
Hi,
I installed Nagios core and the installation was successful but when i try to launch the nagios page i get a error saying " the requested URL /nagios was not found on this server. Apache/2.4.29(Ubuntu) server at localhost port 80.
Re: 404 Not found on trying to launch localhost/nagios
Posted: Mon Aug 12, 2019 7:35 am
by Guyver1
have you started apache?
systemctl start httpd
If you rebooted, did you add apache to startup?
systemctl enable httpd
have you opened the firewall port?
firewall-cmd --zone-public --add-port=80/tcp --permanent
firewall-cmd --reload
Re: 404 Not found on trying to launch localhost/nagios
Posted: Mon Aug 12, 2019 8:37 am
by scottwilkerson
Re: 404 Not found on trying to launch localhost/nagios
Posted: Mon Aug 12, 2019 9:37 pm
by sunilkanth
Yes, i did follow all the steps. I am able to see nagios running on CLI, but when i try to launch the web interface its not logging. But when i run localhost, i see the ubuntu home page, so i believe apache is up and running.
Re: 404 Not found on trying to launch localhost/nagios
Posted: Tue Aug 13, 2019 6:34 am
by scottwilkerson
It is usually these commands that would make you not get nagios is the UI when going to /nagios
Code: Select all
sudo make install-webconf
sudo a2enmod rewrite
sudo a2enmod cgi
Then
Code: Select all
sudo systemctl restart apache2.service