Page 1 of 1

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

Posted: Wed May 11, 2016 5:50 am
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.

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

Posted: Wed May 11, 2016 10:45 am
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)

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

Posted: Wed May 11, 2016 10:51 am
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

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

Posted: Thu May 12, 2016 1:37 am
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

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

Posted: Thu May 12, 2016 12:31 pm
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?

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

Posted: Thu May 12, 2016 1:56 pm
by ziniaragon
Yes of course :)