localhost/nagios 404 not found

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

localhost/nagios 404 not found

Postby ziedmahjoub » Fri Jan 16, 2015 5:54 am

Hello , Im working on IT in a company and i'm new at nagios , i installed ubuntu server 14.04.1 and free Nagios core. i made the installation with this faq :

http://ubuntuserverguide.com/2013/02/ho ... 12-10.html

but i installed nagios-4.0.8 instead of 3.4.4 .

After i completed the installation , when i open http://localhost/nagios/ ,it told me :
NOT FOUND
The requested URL /nagios was not found on this server.


i checked apache2 and nagios services and they are running .

Someone has an idea what can be the porblem ?
ziedmahjoub
 
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: localhost/nagios 404 not found

Postby slansing » Fri Jan 16, 2015 11:20 am

Did you make sure to run:

Code: Select all
make install-webconf

During the build process? I'm not sure why that was missing from the guide, but I've ran into this issue when I don't do that. Take a look at:

http://assets.nagios.com/downloads/nagi ... Source.pdf
slansing
 
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: localhost/nagios 404 not found

Postby lgroschen » Fri Jan 16, 2015 11:56 am

In addition to sams link here is a great resource for Ubuntu 14.04 for configuring core 4: http://www.unixmen.com/install-configure-nagios-4-ubuntu-14-1014-04/
/Luke
User avatar
lgroschen
 
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: localhost/nagios 404 not found

Postby Box293 » Fri Jan 16, 2015 7:33 pm

Here is a detailed guide to install core on Ubuntu 14.04.

http://sites.box293.com/nagios/guides/installing-nagios/4-0-x/ubuntu-14-04
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Box293
Too Basu
 
Posts: 4849
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: localhost/nagios 404 not found

Postby ziedmahjoub » Mon Jan 19, 2015 8:37 am

i installed the webconfig in my installation .

guys do u recommand me to reinstall it again ?
ziedmahjoub
 
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: localhost/nagios 404 not found

Postby abrist » Mon Jan 19, 2015 4:20 pm

After the web config install, did you restart apache?
Code: Select all
service httpd restart

Or:
Code: Select all
service apache restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: localhost/nagios 404 not found

Postby ziedmahjoub » Tue Jan 20, 2015 5:46 am

Yes i made it , and i have installed it again now with this URL and same problem :((((((( :

http://www.unixmen.com/install-configur ... 4-1014-04/
ziedmahjoub
 
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: localhost/nagios 404 not found

Postby ziedmahjoub » Tue Jan 20, 2015 9:07 am

wowowowoowwo , i juste realise it now , when i type : make install-webconf

i got this message :

/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file '/etc/httpd/conf.d/nagios.conf': No such file or directory
make: *** [install-webconf] Error 1


and i dont have httpd and conf.d directories in /etc/

i think in new apache2 version we have /etc/apache2/conf-available who is doing their job , right ?
ziedmahjoub
 
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: localhost/nagios 404 not found

Postby ziedmahjoub » Tue Jan 20, 2015 9:35 am

i made this solution requested in this guide :
http://www.unixmen.com/install-configur ... 4-1014-04/

the solution says :

You may get the following error:

/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file ‘/etc/httpd/conf.d/nagios.conf’: No such file or directory
Makefile:296: recipe for target 'install-webconf' failed
make: *** [install-webconf] Error 1
The above error message describes that nagios is trying to create the nagios.conf file inside the /etc/httpd.conf/ directory. But, in Ubuntu systems the nagios.conf file should be placed in /etc/apache2/sites-enabled/ directory.

So, run the following command instead of using sudo make install-webconf.

sudo /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-enabled/nagios.conf



but it didn't solve my problem
ziedmahjoub
 
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: localhost/nagios 404 not found

Postby ziedmahjoub » Tue Jan 20, 2015 10:34 am

Hello,

i solved my problem with creating the files needed :

mkdir /etc/httpd
mkdir /etc/httpd/conf.d
mkdir /etc/httpd/conf.d/nagios.conf

and its solved !!!

but i didn't understand how !! Because i think that in the new apache version /etc/httpd/conf.d and /etc/apache2/conf.d are replaced in /etc/apache2/conf-available .
SO how when i create httpd and conf.d my problem is solved ?
Maybe in the Markfile webconf still linked to /etc/httpd/conf.d/nagios.conf ?
ziedmahjoub
 
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Next

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 36 guests