Hello,
New to using rrd tools and Cacti, please bear with me.
I'm trying to pull down data from an aggregate graph in a python script using <rrdtools fetch> but cannot locate the agg graphs associated rrd file on the server.
Anyone here know why?
Thanks,
Josh
Aggregate Graph Data
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Aggregate Graph Data
Look at the table:
You then have to get yourself to the local_data_id which is a join between two more tables. Then you can get to the RRDfiles
Something like that.
Code: Select all
MariaDB [cacti]> desc aggregate_graphs_items;
+--------------------+-----------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+-----------------------+------+-----+---------+-------+
| aggregate_graph_id | int(10) unsigned | NO | PRI | NULL | |
| local_graph_id | int(10) unsigned | NO | PRI | NULL | |
| sequence | mediumint(8) unsigned | NO | | 0 | |
+--------------------+-----------------------+------+-----+---------+-------+
3 rows in set (0.001 sec)
Code: Select all
SELECT DISTINCT rrd_path
FROM poller_item AS pi
INNER JOIN data_template_rrd AS dtr
ON pi.local_data_id = dtr.local_data_id
INNER JOIN graph_templates_item AS gti
ON gti.task_item_id = dtr.id
INNER JOIN aggregate_graphs_items AS agi
ON agi.local_graph_id = gti.local_graph_id
WHERE aggregate_graph_id = X;
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: Aggregate Graph Data
Thank you. This might not work for what Im trying to achieve. The aggregate graph polls 6 rrds every 5min then adds them up to get total max bandwidth across all our circuits in that 5min interval. The graph then finds the MAX of the aggregate bandwidth totals at the end of day. This MAX total is what Im trying to extract from the aggregate graph.
Thanks again for your in depth post.
Thanks again for your in depth post.
Who is online
Users browsing this forum: No registered users and 2 guests