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
Nagiosgraph/cgi-bin/show.cgi error:JavaScript is disabled
-
henrywang2016
- Posts: 9
- Joined: Wed Aug 19, 2015 8:15 pm
Nagiosgraph/cgi-bin/show.cgi error:JavaScript is disabled
- Attachments
-
- nagiosgraph-1.5.2.tar.gz
- nagiosgraph install manual on this package,"readme"
- (322.24 KiB) Downloaded 421 times
-
henrywang2016
- Posts: 9
- Joined: Wed Aug 19, 2015 8:15 pm
Re: Nagiosgraph/cgi-bin/show.cgi error:JavaScript is disable
AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex
This error has been solved, add index.php to httpd.conf.
This error has been solved, add index.php to httpd.conf.
-
henrywang2016
- Posts: 9
- Joined: Wed Aug 19, 2015 8:15 pm
Re: Nagiosgraph/cgi-bin/show.cgi error:JavaScript is disable
New Error_log Message:
[authz_core:error] [pid 17797] [client 10.127.154.82:51347] AH01630: client denied by server configuration: /usr/local/nagiosgraph/share/nagiosgraph.js, referer: http://nagiosserver/nagiosgraph/cgi-bin/show.cgi
[authz_core:error] [pid 17797] [client 10.127.154.82:51347] AH01630: client denied by server configuration: /usr/local/nagiosgraph/share/nagiosgraph.js, referer: http://nagiosserver/nagiosgraph/cgi-bin/show.cgi
-
henrywang2016
- Posts: 9
- Joined: Wed Aug 19, 2015 8:15 pm
Re: Nagiosgraph/cgi-bin/show.cgi error:JavaScript is disable
has been solved, changed apache conffig file ,httpd.conf ,
<Directory />
AllowOverride none
Require all denied
</Directory>
to
<Directory />
AllowOverride none
Require all granted
</Directory>
Now it works is fine, and will continue to next step.
<Directory />
AllowOverride none
Require all denied
</Directory>
to
<Directory />
AllowOverride none
Require all granted
</Directory>
Now it works is fine, and will continue to next step.
Re: Nagiosgraph/cgi-bin/show.cgi error:JavaScript is disable
I'm glad you were able to find a solution! Let us know if you encounter further problems.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/