Hi Support,
I spent about 5 hours to find a solution for viewing nagios web interface since cpanel is using SuPhp bind with Apache. I’ve done the nagios installation so quickly but cpanel apache config. didn’t allow to include “conf.d” folders in “include” list. obviously this command wont work.
#make install-webconf
Everything is seems to be OK but when I open http://ip/nagios
after enter credentials this page appears.
"500 Internal Server Error
The request was not completed. The server met an unexpected condition."
In my nagios.conf
first I made the “include” file entry on main config. file.
#vi /etc/httpd/conf/httpd.conf and include the line on my domain virtual host part.
Include “/home/myuser/conf/nagios.conf”
#vi /home/myuser/conf/nagios.conf and add the following line in it.
in my nagios.conf
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
suPHP_UserGroup nagios nagios
SuexecUserGroup nagios nagios
in my httpd logs
[Mon May 02 20:50:23 2011] [error] [client 115.186.171.133] Premature end of script headers: index.php
[Mon May 02 20:50:23 2011] [error] [client 115.186.171.133] File does not exist: /usr/local/nagios/share/sys_cpanel, referer: http://x.x.x.x/nagios/
[Mon May 02 20:50:24 2011] [error] [client 115.186.171.133] SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (32008) of file "/usr/local/nagios/share/index.php"
Any help will be appreciated.
Installing Nagios On WHM/Cpanel Server
Can i Install Nagios server On Virtual machine(VM)
Hi All,
Could you please let me know whether we can install Nagios Server Software on Vistural machine.
Thanks in advance.
Harsh
Could you please let me know whether we can install Nagios Server Software on Vistural machine.
Thanks in advance.
Harsh
Re: Installing Nagios On WHM/Cpanel Server
Hey all!
There are a couple of things I would like to say in regard to this. First I will reply to Harsh:
Now on to sheikhatif
Unfortunately I had to run the EasyApache system on my virtual machine, and in doing so, I have somehow killed my installation. I am getting the same error in my logs when I attempt to get to my Nagios install now.
If anyone has any way of fixing this, I would greatly appreciate it. I know that it is a permissions issue with relation to suPHP, but for the life of me I have not been able to resolve it. I know that it can work with suPHP because I just had it working, but I can not figure out what broke the page load causing the 500 error.
FYI == My actual monitoring still works, I just can't load the admin...
There are a couple of things I would like to say in regard to this. First I will reply to Harsh:
In response to this, YES, you can install this on a virtual machine. I have had this working on a Cpanel virtual machine within the last week.Could you please let me know whether we can install Nagios Server Software on Vistural machine.
Now on to sheikhatif
in my httpd logs
[Mon May 02 20:50:23 2011] [error] [client 115.186.171.133] Premature end of script headers: index.php
[Mon May 02 20:50:23 2011] [error] [client 115.186.171.133] File does not exist: /usr/local/nagios/share/sys_cpanel, referer: http://x.x.x.x/nagios/
[Mon May 02 20:50:24 2011] [error] [client 115.186.171.133] SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (32008) of file "/usr/local/nagios/share/index.php"
Unfortunately I had to run the EasyApache system on my virtual machine, and in doing so, I have somehow killed my installation. I am getting the same error in my logs when I attempt to get to my Nagios install now.
If anyone has any way of fixing this, I would greatly appreciate it. I know that it is a permissions issue with relation to suPHP, but for the life of me I have not been able to resolve it. I know that it can work with suPHP because I just had it working, but I can not figure out what broke the page load causing the 500 error.
FYI == My actual monitoring still works, I just can't load the admin...