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
Installation problems
Re: Installation problems
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
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
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/
/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
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.
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
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.cfgNagios-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
Another possible issue I didn't initally think of is SElinux. Check the status with:If it is enabled and enforcing, please disabled it and restart httpd with If this does not resolve the issue, modify /etc/selinux/config to selinux=disabled and restart the machine.
Code: Select all
sestatusCode: Select all
setenforce 0;service httpd restartNagios-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.
Re: Installation problems
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.