I'm having an issue with our cacti setup. I recently upgraded our wildly out of date cacti up to v1.2.20. The process went pretty smoothly, our graphing is working fine, the in-line real-time works great, but a handful of my users prefer having the pop-out real time graphs while they are monitoring and that does not refresh for them.
It just sits at "countdown: 10" and does not count down or refresh. If they manually refresh the data is there and current, so we know the poller is running and populating the rrd and creating the graph, just the page doesn't refresh automatically. Further trouble shooting and I have been unable to recreate this behavior on my machine, and several others, which leads me to believe it's a user setting. But our chrome/edge settings are pushed out by our corp IT team and we should all be identical. We've all cleared cache but otherwise as far as I can tell settings seem identical between working and non-working users.
TLDR: Cacti backend runs great, data is populated properly, just the real-time popup doesn't auto refresh for a handful of users (not everyone).
If anyone has a clue or idea of what settings I should look into it'd be greatly helpful, hopefully I can get things they way my team likes it again soon.
Real-Time popup not refreshing
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Real-Time popup not refreshing
Look for java script errors in the popup window. Review Cacti log for warnings or validation errors.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Real-Time popup not refreshing
Unfortunately no, there is no errors or warnings in the cacti log or for javascript in pop out window.
Looking at the dev tools of chrome, I can see it successfully loads graph_realtime.php and then all the jquery stuff, then realtime and main js files, then csrf-magic and that's as far as it gets. Just stops without an error or any indication of failure. I do notice that those are all called by graph_realtime.php, the next steps which are not executing are the pngs called from jquery-ui.css and then the reload of graph_realtime.php from jquery.js. So I think you're on the right track, something is preventing javascript from executing properly, but without an error or any indication it's going to be hard to pinpoint.
Looking at the dev tools of chrome, I can see it successfully loads graph_realtime.php and then all the jquery stuff, then realtime and main js files, then csrf-magic and that's as far as it gets. Just stops without an error or any indication of failure. I do notice that those are all called by graph_realtime.php, the next steps which are not executing are the pngs called from jquery-ui.css and then the reload of graph_realtime.php from jquery.js. So I think you're on the right track, something is preventing javascript from executing properly, but without an error or any indication it's going to be hard to pinpoint.
Re: Real-Time popup not refreshing
Here's something interesting, I went into graph_realtime.php and changed the:
$(window).on('load', function() {
to a:
$(document).ready(function () {
and now it seems to be working for those that I've had re-test it.
I'm not aware of anything that would (or even could) block a window on load function but I'll keep poking around for a root cause (and I have a few users left to test) but this seems to be working.
$(window).on('load', function() {
to a:
$(document).ready(function () {
and now it seems to be working for those that I've had re-test it.
I'm not aware of anything that would (or even could) block a window on load function but I'll keep poking around for a root cause (and I have a few users left to test) but this seems to be working.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Real-Time popup not refreshing
Change that to this:
I'll see about updating and testing.
Code: Select all
$(function() {
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Real-Time popup not refreshing
I'll make the change and test among my problem users. It's such a weird unique case scenario, I doubt it's something that will need a wider update.
But anyway thank you for your assistance with getting my head in the right place to do the troubleshooting.
But anyway thank you for your assistance with getting my head in the right place to do the troubleshooting.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Real-Time popup not refreshing
The change has been committed to the 1.2.x branch FYI.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 6 guests