how to graph export (csv\xls..) as i saw it at the browser

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

Moderators: Developers, Moderators

Post Reply
mosiausi
Posts: 14
Joined: Thu Mar 03, 2011 3:02 am

how to graph export (csv\xls..) as i saw it at the browser

Post by mosiausi »

someone know how can i do it?
because the "export to csv" that built in, can export just the time and date.
i need to export the data of two graphs at my cacti to .csv file. (once at week)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: how to graph export (csv\xls..) as i saw it at the brows

Post by TheWitness »

A script that does a custom wget would be a snap to achieve such a thing.
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?
mosiausi
Posts: 14
Joined: Thu Mar 03, 2011 3:02 am

Re: how to graph export (csv\xls..) as i saw it at the brows

Post by mosiausi »

there is any plugin for this?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: how to graph export (csv\xls..) as i saw it at the brows

Post by TheWitness »

If you grab the latest copy of Cacti's SVN branches/graph_xport.php, you can do the following:

Code: Select all

wget http://<myserver>/cacti/graph_xport.php?graph_start=<timestamp>&graph_end=<timestamp>&local_graph_id=<somegraph>&rra_id=0&stdout=true
As much as you want. What will be returned is the CSV.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest