Installation problems

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
eclipse2000
Posts: 2
Joined: Mon Dec 03, 2012 4:59 am

Installation problems

Post 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
twelsh
Posts: 15
Joined: Wed Jan 04, 2012 4:40 am

Re: Installation problems

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Installation problems

Post 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/
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
eclipse2000
Posts: 2
Joined: Mon Dec 03, 2012 4:59 am

Re: Installation problems

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Installation problems

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Installation problems

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
tspears
Posts: 1
Joined: Mon Dec 31, 2012 10:40 am

Re: Installation problems

Post 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.
Locked