Nagiosgraph/cgi-bin/show.cgi error:JavaScript is disabled
Posted: Thu Jul 07, 2016 2:19 am
Host: Centos 7
Nagios Core:4.1 /usr/local/nagios
Nagiso-pulins:2.1
Nagiosgraph:1.5.2 /usr/local/nagiosgraph
Firstly: Install and config nagios and it's work fine, then install and configure nagiosgraph1.5, and refer to the installation ReadMe manuall:
everything is ok ,http://nagiosserver/nagiosgraph/cgi-bin/showconfig.cgi is normal.
until http://nagiosserver/nagiosgraph/cgi-bin/show.cgi ,it prompted :
JavaScript is disabled.
nagiosgraph.js is not installed or wrong version.
please help, I searched on google this error,but can't found a solution.
Of course, I'm sure nagiosgraph.js path is right>/usr/local/nagiosgraph/share/nagiosgraph.js, and it's version is 1.7
Below is nagiosgraph.conf :
logfile = /var/log/nagiosgraph.log
# Location of output from nagiosgraph CGI scripts
cgilogfile = /var/log/nagiosgraph-cgi.log
# Location of nagios performance data log file.
perflog = /var/nagios/perfdata.log
# Directory in which to store RRD files
rrddir = /var/nagios/rrd
# File containing regular expressions to identify service and perf data
mapfile = /usr/local/nagiosgraph/etc/map
# Nagiosgraph CGI URL.
nagiosgraphcgiurl = /nagiosgraph/cgi-bin
# Nagios CGI URL. If the Nagiosgraph CGI scripts are in a directory other
# than the Nagios CGI directory, then specify the Nagios CGI URL here.
#nagioscgiurl = /nagios/cgi-bin
# JavaScript: URL to the nagiosgraph javascript file.
javascript = /nagiosgraph/nagiosgraph.js
# Stylesheet: URL to the nagiosgraph stylesheet.
stylesheet = /nagiosgraph/nagiosgraph.css
Below is nagiosgraph-apache.conf:
# enable nagiosgraph CGI scripts
ScriptAlias /nagiosgraph/cgi-bin "/usr/local/nagiosgraph/cgi-bin"
<Directory "/usr/local/nagiosgraph/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# authentication should match whatever is used in nagios
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
# enable nagiosgraph CSS and JavaScript
Alias /nagiosgraph "/usr/local/nagiosgraph/share"
<Directory "/usr/local/nagiosgraph/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
and httpd error log:
[autoindex:error] [pid 17392] [client 127.0.0.1:40196] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.htm,default.html,index.php) found, and server-generated directory index forbidden by Options directive
Nagios Core:4.1 /usr/local/nagios
Nagiso-pulins:2.1
Nagiosgraph:1.5.2 /usr/local/nagiosgraph
Firstly: Install and config nagios and it's work fine, then install and configure nagiosgraph1.5, and refer to the installation ReadMe manuall:
everything is ok ,http://nagiosserver/nagiosgraph/cgi-bin/showconfig.cgi is normal.
until http://nagiosserver/nagiosgraph/cgi-bin/show.cgi ,it prompted :
JavaScript is disabled.
nagiosgraph.js is not installed or wrong version.
please help, I searched on google this error,but can't found a solution.
Of course, I'm sure nagiosgraph.js path is right>/usr/local/nagiosgraph/share/nagiosgraph.js, and it's version is 1.7
Below is nagiosgraph.conf :
logfile = /var/log/nagiosgraph.log
# Location of output from nagiosgraph CGI scripts
cgilogfile = /var/log/nagiosgraph-cgi.log
# Location of nagios performance data log file.
perflog = /var/nagios/perfdata.log
# Directory in which to store RRD files
rrddir = /var/nagios/rrd
# File containing regular expressions to identify service and perf data
mapfile = /usr/local/nagiosgraph/etc/map
# Nagiosgraph CGI URL.
nagiosgraphcgiurl = /nagiosgraph/cgi-bin
# Nagios CGI URL. If the Nagiosgraph CGI scripts are in a directory other
# than the Nagios CGI directory, then specify the Nagios CGI URL here.
#nagioscgiurl = /nagios/cgi-bin
# JavaScript: URL to the nagiosgraph javascript file.
javascript = /nagiosgraph/nagiosgraph.js
# Stylesheet: URL to the nagiosgraph stylesheet.
stylesheet = /nagiosgraph/nagiosgraph.css
Below is nagiosgraph-apache.conf:
# enable nagiosgraph CGI scripts
ScriptAlias /nagiosgraph/cgi-bin "/usr/local/nagiosgraph/cgi-bin"
<Directory "/usr/local/nagiosgraph/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# authentication should match whatever is used in nagios
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
# enable nagiosgraph CSS and JavaScript
Alias /nagiosgraph "/usr/local/nagiosgraph/share"
<Directory "/usr/local/nagiosgraph/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
and httpd error log:
[autoindex:error] [pid 17392] [client 127.0.0.1:40196] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.htm,default.html,index.php) found, and server-generated directory index forbidden by Options directive