404 Not found on trying to launch localhost/nagios

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
sunilkanth
Posts: 2
Joined: Mon Aug 12, 2019 3:26 am

404 Not found on trying to launch localhost/nagios

Post 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.
Guyver1
Posts: 27
Joined: Tue Apr 16, 2019 4:43 am

Re: 404 Not found on trying to launch localhost/nagios

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 404 Not found on trying to launch localhost/nagios

Post by scottwilkerson »

Did you follow this guide and all steps?
https://support.nagios.com/kb/article/n ... tml#Ubuntu
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sunilkanth
Posts: 2
Joined: Mon Aug 12, 2019 3:26 am

Re: 404 Not found on trying to launch localhost/nagios

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 404 Not found on trying to launch localhost/nagios

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked