Nagios Https Errors any Apache Gurus?

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
Honess_84
Posts: 3
Joined: Mon Jun 04, 2012 6:01 pm

Nagios Https Errors any Apache Gurus?

Post by Honess_84 »

Hi All,
I am using the latest Nagios version 3.4.1, and seem to be having an issue with Apache and SSL with the Host Groups link in the side panel.

When I click the side panel of:

Host Groups
Summary
Grid

I get 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


ALL OTHER side panel and all links within NAGIOS work fine except these 3 links????

My Nagios link is https://servername which redirects the to the nagios page:

vim /etc/httpd/conf/httpd.conf has the DocumentRoot "/usr/local/nagios/share" I have disabled the listen option and installed mod_ssl so it listens on https and generated my certs etc which is all well and good.

I tail -f my /var/log/httpd/ssl_access.log and /var/log/httpd/ssl_error.log and it looks to be accessing this page fine.

- nagiosadmin [07/Jun/2012:10:58:50 +1000] "GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=overview HTTP/1.1" 200 5366
- nagiosadmin [07/Jun/2012:10:58:52 +1000] "GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=summary HTTP/1.1" 200 5490
- nagiosadmin [07/Jun/2012:10:58:55 +1000] "GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=grid HTTP/1.1" 200 5300


I checked my vim /usr/local/nagios/etc/cgi.cfg

Made the changes below with a service httpd restart and service nagios restart after each change in the cgi.cfg.

Tried changing use_ssl_authentication=0 to 1 ruined the side panel and couldn't access all links
Tried changing use_authentication=1 to 0 did not make a difference


Below shows the correct permissons inf the cgi.cfg
this is the correct user and always logins fine and I have no issues with any links but these 3 links...?

authorized_for_system_information=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin


url_html_path=/ : changed this from /nagios no difference.

I have this working fine on another VM that does not use https so it's looks to be this related...

vim /etc/httpd/conf.d/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
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
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

Any Apache people can see if I am doing something obviously wrong??

Thanks
Locked