我为 LDAPS 身份验证设置了 Nagvis 和 Nagios。我在 Nagvis 中有一个监控点(链接),它将我带到 Nagios Core 中的服务信息。当我单击 Nagvis 中的链接以访问 Nagios 时,我收到以下错误:/var/log/httpd24/error_log:
[cgi:error] [pid 25523] [client 155.157.39.194:23160] Premature end of script headers: status.cgi, referer: https://[EM Server FQDN]/nagios/cgi-bin/status.cgi?host=all
当我进入下一页时,我遇到了一个内部服务器错误页面,它只是告诉我查阅错误日志。点击浏览器上的 F5 或后退导航按钮可解决此问题。当我将 LDAPS 身份验证替换为基本身份验证时,不会出现任何问题。
我的 CGI 文件具有适当的权限。在 LDAP 身份验证的过程中一定会丢失一些东西吗?
任何帮助表示赞赏!附上我的nagios.conf ...
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
Deny from all
# Limit HTTP methods
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
Allow from <IP subnet of allowed hosts>
Session on
SessionCookieName httpd_nagsess path=/
SessionMaxAge 1800
SessionCryptoPassphrase <obscured>
ErrorDocument 401 /auth/login.html
AuthFormProvider ldap
AuthType form
AuthLDAPGroupAttributeIsDN on
AuthName "Nagios Login via Active Directory (LDAPS)"
AuthLDAPURL "ldaps://<domain controller #1 FQDN>:3269 <domain controller #2 FQDN>:3269/DC=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>?sAMAccountName?sub?(objectClass=*)" NONE
AuthLDAPBindDN "CN=AD-Binder,OU=Service Accounts,OU=Users and Groups,OU=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>"
AuthLDAPBindPassword <obscured>
require ldap-group CN=em_admin,OU=Groups,OU=Users and Groups,OU=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>,DC=<obscured>
</Directory>