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 exporting data from graphs, not all data was properly included #3920

Closed
fnasib opened this issue Nov 16, 2020 · 4 comments
Closed

When exporting data from graphs, not all data was properly included #3920

fnasib opened this issue Nov 16, 2020 · 4 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@fnasib
Copy link

fnasib commented Nov 16, 2020

Hello,

The below is essentially a copy and paste (for the most part) from the cacti forum.

I have scoured the forums and I have only seen fragments that would seem to address my issues but nothing conclusive. I'll consolidate the issue and see if this is something that can be addressed.

This is the Interface Traffic configuration for a new Cacti 1.2.14 deployment, it graphs appropriately and presents bandwidth summation data. This is the same configuration running on version 0.8.7g. Where the issue starts is when the export to CSV via the web console (GUI) is selected. Only the graphed "input" data is exported but it does not export the "Summation Total In:" or "Summation Total Out:" data.

I by no means am a SQL DBA nor a PHP developer but from the limited understanding these do not appear to be the cause. In version 0.8.7g and earlier this functions works without issue. The Summation data is always generated in the CSV export file as rows 9 and 10.

The only variations that can be identified is that the graph_xport.php file has changed significantly over the years along with the cacti.sql file. Having said this, we suspect that this is configuration related and not PHP or SQL related, since software has developed and become more secure over the years. Hence the assumption is the graph template could be incorrectly configured, since it was modeled off Cacti 0.8.7g.

The interface traffic bit/sec bandwidth graph template/data query has not worked either.

If any further data/information is required please do let me know. Or of this has been answered in a different area then please do direct me accordingly.

I have linked the images to the cacti forums because I am getting errors in uploading PNG files.

https://forums.cacti.net/viewtopic.php?f=21&t=61190&p=284216&hilit=csv+export+summation#p284216

@TheWitness
Copy link
Member

Okay, looking at this, I'm thinking 'bug'.

@TheWitness TheWitness added the bug Undesired behaviour label Nov 20, 2020
@TheWitness TheWitness added this to the v1.2.16 milestone Nov 20, 2020
TheWitness added a commit that referenced this issue Nov 21, 2020
CSV Export with Summation Rows
@TheWitness TheWitness added the resolved A fixed issue label Nov 21, 2020
@TheWitness
Copy link
Member

Okay, this is fixed now. Thanks for reporting.

@TheWitness
Copy link
Member

This was crazy. The code had been removed sometime in 2016. Dude, like 4 years ago. Going to close. It's working fine in my instance. I changed the output format slightly, so if you have a robot going after the data, it'll have to be updated.

@fnasib
Copy link
Author

fnasib commented Nov 23, 2020

@TheWitness Many thanks for the find and correction!!

@netniV netniV changed the title CSV Export with Summation Rows When exporting data from graphs, not all data was properly included Nov 30, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2021
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

2 participants