Page 2 of 2
Re: Nagios web interface not available on Cpanel server
Posted: Mon Feb 16, 2015 5:59 pm
by jasgot
scottwilkerson wrote:No, it is a config fragment. But your httpd.conf should be including files from the conf.d directory it is placed in /etc/httpd/conf.d.
From what I can tell, I can put additional vhost directives in a .conf file in either /etc/httpd/conf.d or in:
/usr/local/apache/conf/userdata/std/2/xxx/nagios.xxx.com/
Re: Nagios web interface not available on Cpanel server
Posted: Tue Feb 17, 2015 11:26 am
by tgriep
That is what I was trying to get from your config file but no results came back.
You could try removing the following to see if if works for you.
Code: Select all
ScriptAlias /cgi-bin/ /sites/xxx/public_html/nagios/cgi-bin/
If it doesn't, could you post the httpd.conf and the nagiosxi.conf file?
Re: Nagios web interface not available on Cpanel server
Posted: Tue Feb 17, 2015 3:13 pm
by jasgot
When I go to the site/nagios it shows me the /nagios folder for the subdomain, not the /usr/local/nagios/share folder.
So it seems the alias is not working.....
Can I post just the virtual host section of httpd.conf or do you need the whole thing, That's a lot of redacting....

Re: Nagios web interface not available on Cpanel server
Posted: Tue Feb 17, 2015 3:54 pm
by jasgot
OK. It appears as though I had some aliasing misconfigured.
Alias /nagios "/usr/local/nagios/share"
meant I have to use http://nagios.***.com/nagios
This was not working:
http://www.***.com/nagios
After sorting this out and changing owner and group and permissions of the sbin and the share folders I can now see Nagios.
It didn't ask me for a password, and I keep getting this error:
"It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file."
But it appears I am making progress.
Re: Nagios web interface not available on Cpanel server
Posted: Wed Feb 18, 2015 8:25 am
by jasgot
After re-adding the vhost info for the password auth, everything is now working. Thank you to each of you for giving thoughts and ideas that ultimately led to a solutions.
Cheers!
Jason
Re: Nagios web interface not available on Cpanel server
Posted: Wed Feb 18, 2015 10:44 am
by ssax
That's great to hear, I will be locking the topic now. If you have any further issues, don't hesitate to create a new one.