Page 6 of 6

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

Posted: Fri Feb 02, 2018 4:50 pm
by drq883
I know I'm really late to this forum thread, but wanted to add a post describing what I did instead of adjusting the perfdata variables.

The problem I have with renaming all my perfdata to use correct characters in variable names is that it will create new filenames (that is the whole idea here). But with new filenames I would lose all the historical data. If I did keep the old files around for historical data, the warning would still print.

So, looking at the code in nagiosgraph/ngshared.pm, I saw that the message was only printed if this was satisfied:

Code: Select all

if (! $Config{hidejswarnings}) {
So I just set hidejswarnings to 1 in nagiosgraph.conf and the warnings were gone. I don't lose any historical data this way.

I'll play around with renaming the rrd file and fixing the perfdata at the same time (hard with 1000s of rrd files) to see if I can make it work.

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

Posted: Mon Feb 05, 2018 12:12 pm
by npolovenko
@drq883, Thank you for sharing your solution with the forum! I'm sure someone in the future will find it useful.
Let me know if you have any questions for us.