Page 4 of 6

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

Posted: Fri Nov 04, 2016 9:23 am
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.

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

Posted: Fri Nov 04, 2016 10:17 am
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:)

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

Posted: Fri Nov 04, 2016 10:38 am
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.

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

Posted: Mon Nov 07, 2016 3:09 am
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.

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

Posted: Mon Nov 07, 2016 10:09 am
by dwhitfield
apologies for the confusion, I meant the web address. http://IP/nagios/nagiosgraph.js or http://FQDN/nagios/nagiosgraph.js

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

Posted: Tue Nov 08, 2016 4:55 am
by mksmr
The problem is still there. We're talking about /usr/local/nagios/share/ssi/common-header.ssi, right? Just to make sure.

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

Posted: Tue Nov 08, 2016 12:42 pm
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?

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

Posted: Tue Nov 08, 2016 12:48 pm
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.

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

Posted: Wed Nov 09, 2016 5:45 am
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.

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

Posted: Wed Nov 09, 2016 11:17 am
by avandemore
This thread contains some interesting information:

https://sourceforge.net/p/nagiosgraph/d ... /1bcaa81e/