Nagiosgraph: JavaScript is disabled. nagiosgraph.js is not

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by dwhitfield »

mksmr wrote:I am indeed thinking about abandoning Linux altogether in favour of OpenBSD.
Unfortunately, we only have source install instructions for FreeBSD: https://support.nagios.com/kb/article.php?id=96. One of the support staff is a FreeBSD user (not me).

https://devuan.org/ might also interest you, though we don't have source install instructions for that either. You might be able use old init install instructions. If you end up going with either of those, it would be great if you would share your experience on the forums...in a new thread.

In the mean time, we'll leave this open for community comment.
mksmr
Posts: 55
Joined: Thu Sep 22, 2016 7:17 am

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by mksmr »

dwhitfield wrote: Unfortunately, we only have source install instructions for FreeBSD
As far as I can tell, the generic install instructions widely apply. Currently battling with a compile error...
dwhitfield wrote: https://devuan.org/ might also interest you
It does, and as a matter of fact I am already using it. As of now there is no conceivable difference to Debian Wheezy, so I expect that the install procedure will for a while still be be identical. I still hope that the discomfort of many users and devs about the direction Linux in general is going will at some point change things there, but I feel the need to look for alternatives. But that's another story...
I will try to migrate as much as possible to OpenBSD, and Nagios is my first major project. This means it's quite likely that you'll hear from this quite soon:)
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by dwhitfield »

I am the one that brought your OpenBSD thread to John's attention (the point being, I did see it). The Debian 7 instructions are different than Debian 8. That's what I meant as far as install directions.

As for the issue at hand, could you try putting the full path rather than a relative path in <script type="text/javascript" src="/nagios/nagiosgraph.js"></script>. I'll try to do some digging on if that can be done globally, like in a PHP file or something.
mksmr
Posts: 55
Joined: Thu Sep 22, 2016 7:17 am

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by mksmr »

dwhitfield wrote:putting the full path rather than a relative path in <script type="text/javascript" src="/nagios/nagiosgraph.js"></script>.
File common-header.ssi changed to

Code: Select all

<script type="text/javascript" src="/usr/local/nagios/share/nagiosgraph.js"></script>
The error is still there.
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by dwhitfield »

apologies for the confusion, I meant the web address. http://IP/nagios/nagiosgraph.js or http://FQDN/nagios/nagiosgraph.js
mksmr
Posts: 55
Joined: Thu Sep 22, 2016 7:17 am

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by mksmr »

The problem is still there. We're talking about /usr/local/nagios/share/ssi/common-header.ssi, right? Just to make sure.
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by rkennedy »

<script type="text/javascript" src="/usr/local/nagios/share/nagiosgraph.js"></script>
Did you change this to be an absolute http:// path? What are you using now, and what is the error reported? Does your browser console show the javascript loading properly?
Former Nagios Employee
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by avandemore »

@dwhitfield is out for a bit. Looking over this thread I admit to being a bit lost. Where are we at exactly?

Are you still trying to use Nagiosgraph? Have you contacted them about this problem? Even if we were to come to some sort of resolution to this issue, it needs to be fixed upstream for it to be a real fix.
Previous Nagios employee
mksmr
Posts: 55
Joined: Thu Sep 22, 2016 7:17 am

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by mksmr »

avandemore wrote:Where are we at exactly?
We have agreed that the said problem isn't actually a genuine Nagios problem. As far as I can see it isn't a local problem either because it appears in all OS/browser environments I could get my hands on. The thread is being kept open in hope that any other user might come across with a solution.
avandemore wrote: Are you still trying to use Nagiosgraph? Have you contacted them about this problem? Even if we were to come to some sort of resolution to this issue, it needs to be fixed upstream for it to be a real fix.
Yes, I'm still trying to fix the problem. Most of Nagiosgraph is working (graphs are being created, added to, and displayed properly). The problem affects the selection box.
I have posted a message to https://sourceforge.net/p/nagiosgraph/d ... on/394748/ on Sourceforge about a month ago. It appears that none of the devs is watching it although this seems to be a quite common problem.
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n

Post by avandemore »

This thread contains some interesting information:

https://sourceforge.net/p/nagiosgraph/d ... /1bcaa81e/
Previous Nagios employee
Locked