On the new (4.1.1) server, I am unable to get Kerberos to work quite right with Nagios. The symptom I see is that I can open the web ui without being prompted for credentials. However, when I click on some links (such as the Hosts or Services links in the sidebar), I get an error message such as: It appears as though you do not have permission to view information for any of the services you requested... I get this message despite having my Windows username ([email protected]) configured as a contact and part of the admin group in the Nagios config, which I BELIEVE should allow me to view hosts and services for which that contact is configured (I'm just using the default localhost.cfg right now). For good measure, I also added my [email protected] to all of the authorized_for_* lines in the cgi.cfg file.
I'm fairly certain that my Kerberos service user account and keytab file are set up correctly, as I was able to configure a test site and have it work OK.
One of the first things I noticed when configuring Nagios 4.1.1 is that the Apache nagios.conf file has changed. I read about it here: https://support.nagios.com/forum/viewto ... 34&t=32789. I was unable to get even Basic (local) authentication working with the new file until I commented out all of the <IfVersion> stuff and the section applying to older versions of Apache. Once I did that, I could log on fine as nagiosadmin.
I went on to configure SSL, which was also fine, and then matched my Kerberos configuration as closely as I could to my previous Nagios 4.0.8 installation, which did not work. The only real difference is that, in the newer version of Nagios, the line:
Code: Select all
Require all grantedCode: Select all
Order allow,deny
Allow from allCode: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Kerberos
KrbAuthRealms DOM.TLD
KrbServiceName HTTP
Krb5Keytab /etc/httpd/conf.d/bantest-http.keytab
KrbMethodNegotiate on
KrbMethodK5Passwd off
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Kerberos
KrbAuthRealms DOM.TLD
KrbServiceName HTTP
Krb5Keytab /etc/httpd/conf.d/bantest-http.keytab
KrbMethodNegotiate on
KrbMethodK5Passwd off
Require valid-user
</Directory>Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Require all granted
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Kerberos
KrbAuthRealms DOM.TLD
KrbServiceName HTTP
Krb5Keytab /etc/httpd/conf.d/bantest-http.keytab
KrbMethodNegotiate on
KrbMethodK5Passwd off
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
Require all granted
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Kerberos
KrbAuthRealms DOM.TLD
KrbServiceName HTTP
Krb5Keytab /etc/httpd/conf.d/bantest-http.keytab
KrbMethodNegotiate on
KrbMethodK5Passwd off
Require valid-user
</Directory>Code: Select all
192.168.3.9 - - [09/Dec/2015:15:41:58 -0800] "GET /nagios HTTP/1.1" 401 381
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios HTTP/1.1" 301 235
192.168.3.9 - [email protected][09/Dec/2015:15:41:58 -0800] "GET /nagios/ HTTP/1.1" 200 900
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/side.php HTTP/1.1" 200 4576
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/main.php HTTP/1.1" 200 9343
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/stylesheets/common.css?4.0.8 HTTP/1.1" 200 9734
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/images/sblogo.png HTTP/1.1" 200 3231
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/images/logofullsize.png HTTP/1.1" 200 9543
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/images/weblogo1.png HTTP/1.1" 200 2401
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/js/jquery-1.7.1.min.js HTTP/1.1" 200 93868
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/images/sflogo.png HTTP/1.1" 200 469
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/images/passiveonly.gif HTTP/1.1" 200 882
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/cgi-bin/statusjson.cgi?query=programstatus HTTP/1.1" 200 985
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/images/favicon.ico HTTP/1.1" 200 822
192.168.3.9 - [email protected] [09/Dec/2015:15:41:58 -0800] "GET /nagios/images/enabled.gif HTTP/1.1" 200 90Code: Select all
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios HTTP/1.1" 301 235
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/ HTTP/1.1" 200 901
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/side.php HTTP/1.1" 200 4776
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/main.php HTTP/1.1" 200 9123
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/stylesheets/common.css?4.1.1 HTTP/1.1" 200 9734
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/images/sblogo.png HTTP/1.1" 200 3231
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/images/logofullsize.png HTTP/1.1" 200 9543
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/images/weblogo1.png HTTP/1.1" 200 2401
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/images/sflogo.png HTTP/1.1" 200 469
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/images/passiveonly.gif HTTP/1.1" 200 882
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/cgi-bin/statusjson.cgi?query=programstatus HTTP/1.1" 200 976
192.168.3.9 - - [09/Dec/2015:15:53:59 -0800] "GET /nagios/images/enabled.gif HTTP/1.1" 200 90
192.168.3.9 - - [09/Dec/2015:15:54:02 -0800] "GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail HTTP/1.1" 200 7742
192.168.3.9 - - [09/Dec/2015:15:54:04 -0800] "GET /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 7932Does anyone have any ideas about how I could further troubleshoot or fix this? I COULD just give up and run my new installation on version 4.0.8, but I would much prefer to be on the latest version of Nagios.
Thanks in advance!