New version installed successfully, but New Map doesn't work (empty frame). When I click the link "View Status Detail For This Host" the browser (firefox and IE11) tries to open/save file status.cgi
Legacy map works fine.
My enviroment is:
-OS Centos 5.10 (Final) kernel 2.6.18-400.el5
- Apache: 2.2.3-83
- PHP: PHP 5.1.6 (cli)
Code: Select all
# rpm -qa | grep php
php-xml-5.1.6-45.el5_11
php-pdo-5.1.6-45.el5_11
php-gd-5.1.6-45.el5_11
php-rrdtool-1.4.4-1.el5.rf
phpmyadmin-2.11.11.3-2.el5.rf
php-common-5.1.6-45.el5_11
php-mysql-5.1.6-45.el5_11
php-soap-5.1.6-45.el5_11
php-mcrypt-5.1.6-15.el5.centos.1
php-5.1.6-45.el5_11
php-mbstring-5.1.6-45.el5_11
php-pear-1.4.9-8.el5
php-cli-5.1.6-45.el5_11
php-devel-5.1.6-45.el5_11
php-odbc-5.1.6-45.el5_11
In my httpd.conf configured:
Code: Select all
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Code: Select all
[Fri Aug 21 11:30:05 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/statusjson.cgi, referer: http://nagios.domain.by/map.html?host=all
[Fri Aug 21 11:30:05 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/objectjson.cgi, referer: http://nagios.domain.by/map.html?host=all
In my /etc/httpd/conf/httpd.conf I re-configured ScriptAlias as mentioned below:
Code: Select all
ScriptAlias /cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
AllowOverride None
Options ExecCGI
Options None
Order allow,deny
Allow from all
</Directory>
Code: Select all
<AuthnProviderAlias ldap domain>
AuthLDAPURL "ldap://corp.domain.by:3268/ou=BNB,dc=corp,dc=domain,dc=by?sAMAccountName?sub?(objectClass=user)" NONE
AuthLDAPBindDN nagios@corp.domain.by
AuthLDAPBindPassword password
</AuthnProviderAlias>
<VirtualHost *:80>
DocumentRoot /usr/local/nagios/share
ServerName nagios.domain.by
</VirtualHost>
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthType Basic
AuthzLDAPAuthoritative off
AuthBasicProvider domain
AuthName "Nagios LDAP Authentication"
require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthType Basic
AuthzLDAPAuthoritative off
AuthBasicProvider domain
AuthName "Nagios LDAP Authentication"
require valid-user
</IfVersion>
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthType Basic
AuthzLDAPAuthoritative off
AuthBasicProvider domain
AuthName "Nagios LDAP Authentication"
require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthType Basic
AuthzLDAPAuthoritative off
AuthBasicProvider domain
AuthName "Nagios LDAP Authentication"
require valid-user
</IfVersion>
</Directory>
I tried to disable my virtual hosting, execute make install-webconf and access GUI through IP address (http://10.1.1.2/nagios), but map map doesn't work again((
Can somebody help me?