Export 'Total in/out' values

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
riven_x
Posts: 2
Joined: Thu Feb 23, 2006 6:13 am

Export 'Total in/out' values

Post by riven_x »

Hi,

When I log on to Cacti and I open a graph and click the button under the magnifying glass, you'll get some text, a part of it is this:

COMMENT:"Total In\: 1.62 GB" \
COMMENT:"Total Out\: 855.25 MB"

Is there any option to export these values to a database and refreshes the record every 5 minutes?

Thanks in advance.

Greets.
riven_x
Posts: 2
Joined: Thu Feb 23, 2006 6:13 am

Post by riven_x »

Anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

There's no good chance for this. The code that computes this is part of cacti and the computation is done 'on the fly', not stored anywhere.
Of course you could fetch all relevant data with rrdtool fetch, do the computation and store the data in another rrd. Perhaps rrdtool VDEF function (see: http://www.rrdtool.org) may help computing. And perhaps, rrdtool graph's PRINT statement will allow for printing this, but I never tried this.
All that looks quite awesome
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests