cacti exporting all graphs after upgrade?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
monachus
Posts: 42
Joined: Mon Sep 06, 2004 1:27 am
Location: New York, NY
Contact:

cacti exporting all graphs after upgrade?

Post by monachus »

upgraded to 0.8.7e today and now cacti exports _everything_ no matter whether it's configured to or not. it sent load up to > 50 and created massive gaps in every other graph.

i've been prowling around in the code and the database but am unable to find what criteria the code looks for to determine if a graph should be exported. i see that in graph_templates_graph t_export has a default of 0 but setting something to export changes this to "on." most of the items in this table have an empty string ('') for export and t_export (legacy schema? we've been using cacti for years). i tried setting t_export and export to 0 for all existing rows - it still happily exports thousands of graphs every three minutes.

we only need < 10 graphs actually exported, but they represent our network status on our public support page. if someone in the dev team can give me a hand with this, it would be great.
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Known issue.....

Best solution is to limit the graphs which you wish to export in a separate tree and assign it to the export user.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: cacti exporting all graphs after upgrade?

Post by TheWitness »

monachus wrote:upgraded to 0.8.7e today and now cacti exports _everything_ no matter whether it's configured to or not. it sent load up to > 50 and created massive gaps in every other graph.

i've been prowling around in the code and the database but am unable to find what criteria the code looks for to determine if a graph should be exported. i see that in graph_templates_graph t_export has a default of 0 but setting something to export changes this to "on." most of the items in this table have an empty string ('') for export and t_export (legacy schema? we've been using cacti for years). i tried setting t_export and export to 0 for all existing rows - it still happily exports thousands of graphs every three minutes.

we only need < 10 graphs actually exported, but they represent our network status on our public support page. if someone in the dev team can give me a hand with this, it would be great.
How were you xporting prior to upgrading? Tony's suggestion is correct and has received quite a bit of attention (aka works). However, "classic" has not been actively maintained and may not be working, as you have seen. I need to know what your expectation was and what is happening now.

Thanks,

TheWitness
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?
monachus
Posts: 42
Joined: Mon Sep 06, 2004 1:27 am
Location: New York, NY
Contact:

Post by monachus »

i've always used classic and written to an NFS-mounted directory that is also visible to our webservers. doest it no longer honor the "allow graph export" flag?
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ahh, well, I never QA/tested that. This is likely a "minor" fix if it's broken. Will check likely sometime Friday.

TheWitness
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?
monachus
Posts: 42
Joined: Mon Sep 06, 2004 1:27 am
Location: New York, NY
Contact:

Post by monachus »

great. thank you. let me know if i can help in any way.
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try this. Let me know.

TheWitness
Attachments
graph_export_patch.patch
(1.79 KiB) Downloaded 174 times
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?
monachus
Posts: 42
Joined: Mon Sep 06, 2004 1:27 am
Location: New York, NY
Contact:

Post by monachus »

that appears to work. thank you for the quick turnaround!
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The commit had a few more fixes, but the differences are minor and should not impact you version. However, if you are inclined, the branches/0.8.7 of SVN includes the final final on this one.

TheWitness
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?
laffen
Cacti User
Posts: 56
Joined: Tue Jul 13, 2004 2:57 am
Location: Norway

Post by laffen »

rony wrote:Known issue.....

Best solution is to limit the graphs which you wish to export in a separate tree and assign it to the export user.
Could you give some more details? Just started looking at graph exporting, I can't see where I asssign a designated grap tree to an export user.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest