Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Realtime, if no graph contents are present an error is generated #3532

Closed
simonpunk opened this issue May 4, 2020 · 6 comments
Closed
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@simonpunk
Copy link

Cacti version:
Version 1.2.12 (download from https://www.cacti.net/downloads/cacti-latest.tar.gz)

Bug:
After a fresh installation of cacti, it creates a device of my local machine automatically with some graph templates, all the graph templates can be displayed, and rrdtool debug says 'OK', but it still shows no data after half an hour, and I notice it keeps logging the same error message to cacti.log in every 11 seconds.

05/04/2020 10:11:14 - ERROR PHP NOTICE: Undefined variable: graph_contents in file: /opt/cacti/graph_realtime.php on line: 218
05/04/2020 10:11:14 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_realtime.php[218]:CactiErrorHandler())

I took a look at the latest commit of graph_realtime.php, seems it still didn't handle the $graph_contents properly as it can be null if it doesn't match one of the if cause.
I don't know what $graph_contents should be first defined.

@simonpunk simonpunk added bug Undesired behaviour unverified Some days we don't have a clue labels May 4, 2020
@simonpunk simonpunk changed the title graph graph templates not showing any data. May 4, 2020
@netniV
Copy link
Member

netniV commented May 4, 2020

You likely have a permissions problem creating the RRA oe RRA subfolders (if you are using the organised option).

The realtime graph is actually a separate issue that should be investigated in its own right. And is what I'm going to investigate here. Should you need further assistance on the "My graphs show no data" issue, I would refer to previous issues or the forums for more information as normally this is a configuration issue not a code issue.

@bmfmancini
Copy link
Member

I have had no issues on Realtime I just put 1.2.12 in my lab and man I am not sure what was done but I see a noticble performance boost in how long it takes for the graph to populate

@netniV
Copy link
Member

netniV commented May 4, 2020

I'd be thanking @TheWitness for that one. This may be a specific issue with this setup if yours appears to be OK

@TheWitness TheWitness changed the title graph templates not showing any data. Issues with Realtime in 1.2.12 May 5, 2020
@TheWitness
Copy link
Member

Re-labeled this one as a Realtime Issue. There are actually two realtime issues with the 1.2.12 release. Going to fix both under this ticket. The issue with data sources not showing up is likely either permissions or poller related.

TheWitness added a commit that referenced this issue May 5, 2020
Issues with Realtime in 1.2.12
@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels May 5, 2020
@TheWitness TheWitness added this to the 1.2.13 milestone May 5, 2020
@TheWitness
Copy link
Member

All fixed up now.

@simonpunk
Copy link
Author

@TheWitness
Thanks, issue is fixed for me now!

@netniV netniV changed the title Issues with Realtime in 1.2.12 When using Realtime, if no graph contents are present an error is generated Jul 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

4 participants