Cacti / plugin_gexport

Cacti Graph Export Plugin
GNU General Public License v2.0
12 stars 9 forks source link

Graphs not rendering on Cacti 1.2.15 #46

Closed razvanzeces closed 3 years ago

razvanzeces commented 3 years ago

This issue it's related to the initial one with number #3910.

@TheWitness solved the log error issue, but they are still not showing up on the website where they are beeing exported via FTP. The export works just fine, no error on the Log section, simply can't see the Graphs when selecting one device.

In the first screenshot it can be saw that when selected a device, no graphs are beeing showed up. Neither if I chose another one. Export runs at 5 minutes.

In the second screenshot, it's the log that confirms the success of export over FTP. err1

exportlog

TheWitness commented 3 years ago

Okay, cool. Now, open the Browsers debug panel (F12 on Windows, and goto the console there). Then click on a host. Do you see an error? Second question, are the PNG files located on the server?

razvanzeces commented 3 years ago

@TheWitness yup, it reports some errors. brerr

Should I capture all errors?

And yup again, .PNG files are on the FTP Server.

images

TheWitness commented 3 years ago

Well, that's an interesting error. I guess I have to install this thing to see what's going on.

razvanzeces commented 3 years ago

It's weird because the PNG files are beeing exported and they are not corrupted or something else.

If I download them on my computer they show just fine. If I go to the root folder and access the graph_10.html file it shows just ok the graphs but not with the Cacti design, but if I try to access them from the main website it's not working.

jav4 commented 3 years ago

Try changing, on line 267 of website.template from:

...'.png').load(function() {

to

...'.png').on("load",function() {

TheWitness commented 3 years ago

I've been looking at this most of the day. Code was pretty wobbly. Looks like there have been a bunch of Cacti changes, and this plugin has not been keeping up. I'll have some updates shortly.

TheWitness commented 3 years ago

This should be fixed up now.

razvanzeces commented 3 years ago

It's working now.

Thank you for all the work @TheWitness