Nagios Web not working

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
vbelenky
Posts: 4
Joined: Mon Aug 31, 2015 4:10 pm

Nagios Web not working

Post by vbelenky »

I followed the instructions at https://assets.nagios.com/downloads/nag ... Source.pdf to install Nagios on CentOS. However, when I run:

Code: Select all

curl -I http://localhost/nagios
I get the following output:

Code: Select all

HTTP/1.1 404 Not Found
Date: Mon, 31 Aug 2015 20:56:35 GMT
Server: Apache/2.2.15 (CentOS)
Connection: close
Content-Type: text/html; charset=iso-8859-1
I went through many threads on this forum but still can't get it to work.

Please help.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Web not working

Post by hsmith »

vbelenky wrote:I followed the instructions at https://assets.nagios.com/downloads/nag ... Source.pdf to install Nagios on CentOS. However, when I run:

Code: Select all

curl -I http://localhost/nagios
I get the following output:

Code: Select all

HTTP/1.1 404 Not Found
Date: Mon, 31 Aug 2015 20:56:35 GMT
Server: Apache/2.2.15 (CentOS)
Connection: close
Content-Type: text/html; charset=iso-8859-1
I went through many threads on this forum but still can't get it to work.

Please help.
Can you please post the output of a service nagios status?

What version of CentOS are you running?
Former Nagios Employee.
me.
vbelenky
Posts: 4
Joined: Mon Aug 31, 2015 4:10 pm

Re: Nagios Web not working

Post by vbelenky »

The output of

Code: Select all

service nagios status


is:

Code: Select all

nagios (pid 25461) is running...
The version of CentOS is 6.6
vbelenky
Posts: 4
Joined: Mon Aug 31, 2015 4:10 pm

Re: Nagios Web not working

Post by vbelenky »

I solved this problem. Inside "/etc/httpd/conf.d/nagios.conf" I uncommented the 2 lines "Allow from 127.0.0.1" and restarted apache "service httpd restart".
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Web not working

Post by hsmith »

vbelenky wrote:I solved this problem. Inside "/etc/httpd/conf.d/nagios.conf" I uncommented the 2 lines "Allow from 127.0.0.1" and restarted apache "service httpd restart".
Hm, I thought it would do that for you...not an issue we normally run into. Thanks for the update and including the resolution.

Are we all right to mark this one 'resolved'?
Former Nagios Employee.
me.
vbelenky
Posts: 4
Joined: Mon Aug 31, 2015 4:10 pm

Re: Nagios Web not working

Post by vbelenky »

Yes, please mark it as resolved.
Locked