Hello everybody,
I am running the following installation:
Nagios Core 4.1.1 on CentOS7
Nagiosgraph
On the client side I am currently using Debian Jessie, Firefox ESR 45.3.0, IcedTea Web Plugin (1.5.3).
On the top of the nagiosgraph pages I am getting the warnings
"JavaScript is disabled" and
"nagiosgraph.js is not installed or wrong version."
in a red frame each. Anyway all graphs are displayed properly, so the installation is actually working. Both error messages did not show up in Firefox on OpenBSD.
The whole thing is not more than a visual flaw; nevertheless I'd like to fix it. Wondered if anybody here could nudge me into the right direction.
TIA
Matthias
Nagiosgraph: JavaScript is disabled. nagiosgraph.js is not
-
- Posts: 55
- Joined: Thu Sep 22, 2016 7:17 am
Nagiosgraph: JavaScript is disabled. nagiosgraph.js is not
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
Nagiosgraph is not one of our products. We can try to help but you may try posting your question on the nagiosgraph support site.
What is the output of the following command?
Can you post the "nagiosgraph.conf"?
Also, can you access the "nagiosgraph.js" directly by accessing the URL below?
What is the output of the following command?
Code: Select all
find / -name nagiosgraph.js
Also, can you access the "nagiosgraph.js" directly by accessing the URL below?
Code: Select all
http://ip address/nagiosgraph/nagiosgraph.js
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 55
- Joined: Thu Sep 22, 2016 7:17 am
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
Code: Select all
# locate nagiosgraph.js
/usr/local/nagios/share/nagiosgraph.js
Code: Select all
logfile = /var/nagios/nagiosgraph.log
cgilogfile = /var/nagios/nagiosgraph-cgi.log
perflog = /var/nagios/perfdata.log
rrddir = /var/nagios/rrd
mapfile = /etc/nagiosgraph/map
nagiosgraphcgiurl = /nagios/cgi-bin
#nagioscgiurl = /nagios/cgi-bin
javascript = /nagios/nagiosgraph.js
stylesheet = /nagios/nagiosgraph.css
#labelfile = /etc/nagiosgraph/labels.conf
#hostdb = /etc/nagiosgraph/hostdb.conf
#servdb = /etc/nagiosgraph/servdb.conf
groupdb = /etc/nagiosgraph/groupdb.conf
groupcfgfile = /etc/nagios/nagios.cfg
#datasetdb = /etc/nagiosgraph/datasetdb.conf
#authzmethod = nagios3
#authzfile = /etc/nagios/cgi.cfg
#authzmethod = nagiosgraph
#authzfile = /etc/nagiosgraph/access.conf
debug = 1
# log level for insert.pl
#debug_insert = 5
#debug_insert_host = host1
#debug_insert_service = PLW
#debug_show = 5
#debug_show_host = host1
#debug_show_service = ping
#debug_showhost = 5
#debug_showhost_host = host1
#debug_showhost_service = ping
#debug_showservice = 5
#debug_showservice_host = host1
#debug_showservice_service = ping
#debug_showgroup = 5
#debug_showgroup_host = host1
#debug_showgroup_service = ping
#debug_showgraph = 5
#debug_showgraph_host = host1
#debug_showgraph_service = ping
#debug_testcolor = 5
geometries = 650x50,800x100,900x200,900x400,2000x100
default_geometry = 900x200
colorscheme = 9
#colorsaturation = 0.8
#colorvalue = 0.95
#colors = D05050,D08050,D0D050,50D050,50D0D0,5050D0,D050D0,505050
# light/dark pairs: blue, green, purple, orange
colors = 90d080,30a030,90c0e0,304090,ffc0ff,a050a0,ffc060,c07020
# green from light to dark
#colors = 80d080,50a050,308030
#colormax = 888888
#colormin = BBBBBB
plotas = LINE2
# plotasLINE3 = .*.acme.com,PING,.*,data;
plotasLINE1 = load5,data;load15,data
plotasLINE2 =
plotasLINE3 =
plotasAREA = idle,data;system,data;user,data;nice,data
plotasTICK =
stack = system,data;user,data;nice,data
#negate = byte-received;drop-received;error-received;multi-received;packet-received
#lineformat = crit=LINE1,D05050
#lineformat = system=AREA,FFAAAA;nice=AREA,AAAAFF,STACK;idle,AREA,AAFFAA,STACK
#lineformat = nice,data=AREA,AAAAFF,STACK;idle,data=AREA,AAFFAA,STACK
lineformat = warn=LINE1,D0D050;crit=LINE1,D05050
#fixedscale = .*,PING,loss,.*;
# graphs to show in host-service page (hour, day, week, month, quarter, year)
timeall = hour,day,week
# graphs to show in host page
timehost = hour,day,week
# graphs to show in service page
timeservice = hour,day,week
# graphs to show in group page
timegroup = hour,day,week
expand_timeall = hour,day,week,month,quarter,year
expand_timehost = week
expand_timeservice = week
expand_timegroup = day
# Formats for time and date.
timeformat_now = %H:%M:%S %d %b %Y %Z
timeformat_hour = %H:%M
timeformat_day = %H:%M %e %b
timeformat_week = %e %b
timeformat_month = Week %U
timeformat_quarter = Week %U
timeformat_year = %b %Y
refresh = 300
#hidengtitle = true
showprocessingtime = true
showtitle = true
# Set this to display a description for each graph in html.
showdesc = true
showgraphtitle = true
#hidelegend = true
#graphonly = true
withmaximums = PING,HTTP
withminimums = PING,HTTP
#altautoscale = service1,service2
#altautoscalemin = service1,min1;service2,min2
#altautoscalemax = service1,max1;service2,max2
#nogridfit = service1,service2
#logarithmic = service1,service2
#rrdopts=--border 0 --color BACK#ffffff
#rrdoptsfile=/etc/nagiosgraph/rrdopts.conf
#perfloop = 30
#heartbeat = 600
#heartbeats = HOST,SERVICE,DATABASE=1200;HOST,SERVICE,.*=1800;.*,.*,.*=600
stepsize = 60
#stepsizes = HOST,SERVICE,DATABASE=600;HOST,SERVICE,.*=1200;.*,.*,.*=300
# RRA:(AVERAGE|MIN|MAX|LAST):xff:step1:row1
# RRA:(AVERAGE|MIN|MAX|LAST):xff:step2:row2
# RRA:(AVERAGE|MIN|MAX|LAST):xff:step3:row3
# RRA:(AVERAGE|MIN|MAX|LAST):xff:step4:row4
#
# Using default values, the RRAs are as follows:
# RRA:AVERAGE:0.5:1:600
# RRA:AVERAGE:0.5:6:700
# RRA:AVERAGE:0.5:24:775
# RRA:AVERAGE:0.5:288:797
#resolution = 600 700 775 797
#resolution = 17280 17520 32850 1095
# Specify resolution for specific hosts and services.
#resolutions = HOST,SERVICE,.*=17280 17520 32850 1095;.*,.*,.*=600 700 775 797
#step = 1 6 24 288
# Specify step for specific hosts and services.
#steps = HOST,SERVICE,.*=1 12 48 596;.*,.*,.*=1 6 24 288
#xff = 0.5
# Specify xff for specific hosts and services.
#xffs = HOST,SERVICE,.*=0.9;.*,.*,.*=0.5
# [host,]service,database;[[host,]service2,database][;...]
# The old-style specification is deprecated:
# service1[,service2[,service3[,...]]]
#maximums = .*.acme.com,service1,.*;
#maximums = host1,service1,database;service2,database2;.*.acme.com,service3,.*
maximums = Current Load,.*;Current Users,.*;Total Processes,.*;PLW,.*
minimums =
lasts =
#hostservvar = server1,service1,val1;server2,service2,val2
#hostservvar = host2,PLW,smtp_error
# flat : all in a single directory (the old way):
# rrddir/HOST_SERVICE_DATABASE.rrd
# subdir : organized by host (the new way):
# rrddir/HOST/SERVICE___DATABASE.rrd
dbseparator = subdir
#language = es
#hidejswarnings = 1
In my case it is
http://<mymachine>/nagios/nagiosgraph.js
I can access it.
As I said, the whole thing IS actually working - just the error messages are a bit annoying.
Regards
Matthias
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
I am not very familiar with nagiosgraph, but looking at the actual location or the "nagiosgraph.js", I would assume that you need to change the following directive in "nagiosgraph.conf" from this:
to this:
I could be wrong though.
Have you posted your question on the nagiosgraph support site? Any word from them?
Code: Select all
javascript = /nagios/nagiosgraph.js
Code: Select all
javascript = /nagios/share/nagiosgraph.js
Have you posted your question on the nagiosgraph support site? Any word from them?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 55
- Joined: Thu Sep 22, 2016 7:17 am
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
I need to correct my earlier posting, my system IS malfunctioning. The graphs are being displayed, but the box in the upper right where you can select timeframes and graphs is broken.
would be correct, and the file is accessible this way.
No, this made things worse. Anyway I would expect that the position of nagiosgraph.js would have to be relative to the webserver root. In this case, the directivelmiltchev wrote:I am not very familiar with nagiosgraph, but looking at the actual location or the "nagiosgraph.js", I would assume that you need to change the following directive in "nagiosgraph.conf" from this:
Code: Select all
javascript = /nagios/nagiosgraph.js
Not yet, I did not want to open the topic on several boards.lmiltchev wrote:Have you posted your question on the nagiosgraph support site? Any word from them?
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
-
- Posts: 6579
- Joined: Mon Oct 05, 2015 11:45 am
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
[mksmr wrote: Not yet, I did not want to open the topic on several boards.
Your best bet may be contacting them for support at this point. Based on what you said earlier -
Code: Select all
On the top of the nagiosgraph pages I am getting the warnings
"JavaScript is disabled" and
"nagiosgraph.js is not installed or wrong version."
Former Nagios Employee
-
- Posts: 55
- Joined: Thu Sep 22, 2016 7:17 am
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
I agree. I've opened an issue there, see https://sourceforge.net/p/nagiosgraph/d ... /085cac2f/. Thanks anyway.rkennedy wrote: Your best bet may be contacting them for support at this point.
Matthias
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
-
- Posts: 6579
- Joined: Mon Oct 05, 2015 11:45 am
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
Sounds good, I'll leave this open should you have any further questions for us.
Former Nagios Employee
-
- Posts: 55
- Joined: Thu Sep 22, 2016 7:17 am
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
Seems to be an abundant problem, but it isn't really discussed much. One user indicated (in a thread that's now closed) that a malformed check returned illegal values which resulted in Java crashing every time a graphs page is called. But he never stated what the precise problem was and how he got it fixed.
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
-
- Posts: 9117
- Joined: Mon Sep 23, 2013 8:40 am
Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
Sorry we can't be of more help :( Did you have a link to the closed thread? I can take a look and see if anything he said sticks out, but again not being our project my knowledge of it is limited.
Former Nagios employee