Re: Nagiosgraph: JavaScript is disabled. nagiosgraph.js is n
Posted: Fri Feb 02, 2018 4:50 pm
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:
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.
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}) {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.