error accessing the web page

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
matthes138
Posts: 2
Joined: Thu Aug 02, 2012 9:49 am

Re: error accessing the web page

Post by matthes138 »

yes my local ip is 10.1.2.80 and i have typed in http://10.1.2.80/nagios i get the login prompt but still get the error message of Whoops!!
I have tried may times of restarting the service and totally restarting the server also.

Really lost as to why it isnt working?
matthes138
Posts: 2
Joined: Thu Aug 02, 2012 9:49 am

Re: error accessing the web page

Post by matthes138 »

after following the directions on this website for installing on Cent OS 5.7 64bit. Everything works fine until the last step of accessing the web page it give me?
I access my web page at http://localhost/nagios i get the log in prompt to access the web page and have checked my password many times
Whoops!
404 - component not found
You may not be able to visit this page because of:
and out of date bookmark/favorite
Im using the lastest download of nagios and plugins
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error accessing the web page

Post by slansing »

Can you post your httpd.conf file, it is located here:

Code: Select all

 /etc/httpd/conf/
ITINTERN
Posts: 4
Joined: Mon Aug 06, 2012 11:59 am

Re: error accessing the web page

Post by ITINTERN »

Sounds like a problem I had and I can help you I believe.
First things first run
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
This will check your configuration files and tell you if anything is wrong. The reason you get the Whoops! screen is because something is off in your configuration. So after that checks out and you see a statement at the bottom:
Things look okay - No serious problems were detected during the pre-flight check
You are good to go. However, if you don't get this you will be informed of where there is an error in the config files and what line, etc.
So once you fix all of the errors, hopefully only some! Use the following commands:
Always verify with the first step before restarting to make sure everything is ok. If not and something is wrong you will get the Whoops! screen again.
sudo /etc/init.d/nagios start <-- Starts
OR
sudo /etc/init.d/networking restart <-- Restarts
OR
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg <-- Manually Starts
OR
/etc/rc.d/init.d/nagios reload <-- Also Restarts

If one doesn't work and you still have the Whoops! screen, try the next one. I have had some work sometimes and not the next. But please please please always -v (Verify) before restarting or starting.
Locked