Page 1 of 1

Installation problems

Posted: Mon Dec 03, 2012 5:03 am
by eclipse2000
We have just installed a new setup of this and the setup process all went well, no reported issues.
The system is installed on centOS, we can login no problem and it shows the main menu once logged in.
When we click on any of the links on the left menu all we get is the following,
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Can anyone point us in the right direction as to where we could be going wrong.

Thanks

Re: Installation problems

Posted: Mon Dec 03, 2012 10:13 am
by twelsh
Hi Eclipse2000,

Have you created your configs and started the Nagios daemon?

Did you do a make install-config which will create your /etc directory and dump a sample config in there?

That is normally what causes these kind off problems

Regards
twelsh

Re: Installation problems

Posted: Mon Dec 03, 2012 10:50 am
by sreinhardt
As twelsh mentioned, please make sure that your config files are correct and pointed at correctly from nagios.cfg. You may also try verifying your configuration is correct with the below command.

/usr/local/nagios/bin/nagios -v [location of nagios.cfg]
generally on a standard install nagios.cfg will be in /usr/local/nagios/etc/

Re: Installation problems

Posted: Mon Dec 03, 2012 12:31 pm
by eclipse2000
Thanks for the reply.
We followed this http://nagios.sourceforge.net/docs/3_0/ ... edora.html and as far as we could see everything installed with no errors.
We can login with the created user details and see the main screen. Its just anything else comes up with the server error.

Re: Installation problems

Posted: Mon Dec 03, 2012 1:02 pm
by sreinhardt
I have followed that same guide in the past and it certainly should work. At this point, I would still refer to checking the config files as you have them configured per point 7 in that guide. Please post the results if there are any errors. The initial web page and login is entirely handled by apache, or whichever web server you choose, and subsequent pages are when it actually requests information from the nagios process. Often you will have the error you are seeing if it is not properly started.

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Installation problems

Posted: Mon Dec 03, 2012 6:04 pm
by sreinhardt
Another possible issue I didn't initally think of is SElinux. Check the status with:

Code: Select all

sestatus
If it is enabled and enforcing, please disabled it and restart httpd with

Code: Select all

setenforce 0;service httpd restart
If this does not resolve the issue, modify /etc/selinux/config to selinux=disabled and restart the machine.

Re: Installation problems

Posted: Mon Dec 31, 2012 10:45 am
by tspears
This has happened to me numerous times when doing Nagios installs, and it's usually SELinux. As sreinhardt mentioned, you'll need to disable SEL and then restart httpd.