I spent almost whole day, trying solve that problem. Finally - I came here
I have installed Nagiosgrapth (manually), but after opening page like "http://nagios.domain.com/nagios/cgi-bin ... t%20memory" - I have next error:
JavaScript is disabled.
nagiosgraph.js is not installed or wrong version.

As I goggled - basically, problem is in URLs in nagiosgraph.conf.
Here is my content:
Code: Select all
logfile = /var/log/nagios/nagiosgraph.log
cgilogfile = /var/log/nagios/nagiosgraph-cgi.log
perflog = /var/log/nagios/perfdata.log
rrddir = /var/nagios/rrd
mapfile = /opt/nagiosgraph/etc/map
nagiosgraphcgiurl = /nagios/cgi-bin
javascript = /js/nagiosgraph.js
stylesheet = /stylesheets/nagiosgraph.cssCode: Select all
<script type="text/javascript" src="/js/nagiosgraph.js"></script>Code: Select all
# curl -u nagiosadmin:pass http://nagios.domain.com/nagios/js/nagiosgraph.js | head
...
//
// $Id$
// License: OSI Artistic License
// http://www.opensource.org/licenses/artistic-license-2.0.php
// Author: (c) 2005 Soren Dossing
// Author: (c) 2008 Alan Brenner, Ithaka Harbors
// Author: (c) 2010 Matthew Wall
var PNAME = [ 'hour', 'day', 'week', 'month', 'quarter', 'year' ];
curl: (23) Failed writing body (456 != 1448)Also - I have same Nagios + Nagiosgrapth installation on another server, with same (aha...) setup - and it's works.
What I'm doing wrong here?
Thanks.
P.S. No errors in NGINX or Nagios logs, related to nagiosgraph.js.
P.P.S. Full setup described http://rtfm.co.ua/nagios-ruchnaya-ustan ... giosgraph/, although it's in russian - but configuration(s) available.