NAGIOS 4.1.1: The requested URL /nagios/ was not found on th

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
ziniaragon
Posts: 5
Joined: Wed May 11, 2016 5:39 am

NAGIOS 4.1.1: The requested URL /nagios/ was not found on th

Post by ziniaragon »

Hi,

I just finished to install Nagios without problem but I can't access to my web interface.

I followed the procedure on https://assets.nagios.com/downloads/nag ... buntu.html

Maybe I forget something or the link between apache and Nagios does'nt work? any Idea?

Code: Select all

root@GLUENAG02:/etc/httpd/conf.d/nagios.conf# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
 
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
 
Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...
 
Running pre-flight check on configuration data...
 
Checking objects...
        Checked 8 services.
        Checked 1 hosts.
        Checked 1 host groups.
        Checked 0 service groups.
        Checked 1 contacts.
        Checked 1 contact groups.
        Checked 24 commands.
        Checked 5 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 1 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
 
Total Warnings: 0
Total Errors:   0
 
Things look okay - No serious problems were detected during the pre-flight check

Merci d'avance pour votre aide. 
Thanks for your help.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NAGIOS 4.1.1: The requested URL /nagios/ was not found o

Post by hsmith »

Is apache running? Pretty simple troubleshooting step, but still worth doing.

Code: Select all

service httpd status
service apache2 status
(Not sure which it is on your OS)
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NAGIOS 4.1.1: The requested URL /nagios/ was not found o

Post by rkennedy »

It looks like the instructions were for Ubuntu 6/7 -
These instructions were written based on an Ubuntu 6.10 (desktop) installation. They should work for an Ubuntu 7.10 install as well.
Take a look at this article -
https://support.nagios.com/kb/article.php?id=97
Former Nagios Employee
ziniaragon
Posts: 5
Joined: Wed May 11, 2016 5:39 am

Re: NAGIOS 4.1.1: The requested URL /nagios/ was not found o

Post by ziniaragon »

Finally I found the solution

Code: Select all

#ln /etc/httpd/conf.d/nagios.conf/httpd.conf /etc/apache2/conf-available/nagios.conf
#nano /etc/apache2/sites-enablef/000-default.conf
Add line:

Code: Select all

Include conf-available/nagios.conf 
Juste before the end of this balise:

Code: Select all

</virtualhost> 
Maybe you can add this on your procedure on the both link?

Thank you for your help
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NAGIOS 4.1.1: The requested URL /nagios/ was not found o

Post by lmiltchev »

Thanks for the feedback, ziniaragon! I forwarded your post to our developers. Is it all right if we lock this topic and mark it as resolved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ziniaragon
Posts: 5
Joined: Wed May 11, 2016 5:39 am

Re: NAGIOS 4.1.1: The requested URL /nagios/ was not found o

Post by ziniaragon »

Yes of course :)
Locked