Nagios web interface not available on Cpanel server

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.
jasgot
Posts: 19
Joined: Sat Feb 14, 2015 7:52 pm

Re: Nagios web interface not available on Cpanel server

Post 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/
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios web interface not available on Cpanel server

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jasgot
Posts: 19
Joined: Sat Feb 14, 2015 7:52 pm

Re: Nagios web interface not available on Cpanel server

Post 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.... :)
jasgot
Posts: 19
Joined: Sat Feb 14, 2015 7:52 pm

Re: Nagios web interface not available on Cpanel server

Post 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.
jasgot
Posts: 19
Joined: Sat Feb 14, 2015 7:52 pm

Re: Nagios web interface not available on Cpanel server

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios web interface not available on Cpanel server

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