Total all data sources

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

Moderators: Developers, Moderators

Post Reply
skee
Posts: 14
Joined: Thu Jul 17, 2008 9:08 am

Total all data sources

Post by skee »

Hi guys,
i got a problem with the "total all data sources" function.
This is what i got:

RRD/Datasource1:
usr:10 sys:4 wio:7

RRD/Datasource2:
usr:90 sys:5 wio:3

RRD/Datasource3:
usr:20 sys:14 wio:51

now i want to build one graph where the summs of these datasotces are shown as lines. in this example: Line1 at 21, Line2 at 98 and Line3 at 85.
I tried with the "total all data sources" function, but all i got, was one line at 204.

is it possible to do what i want to do?^^

thanks for help

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

Post by gandalf »

TOTAL ALL DATA SOURCES totals all available data source. You may want to use TOTAL SIMILAR DATA SOURCES NODUPS to total each item seperately
See http://docs.cacti.net/manual:087:6_refe ... ata_source for more help
Reinhard
skee
Posts: 14
Joined: Thu Jul 17, 2008 9:08 am

Post by skee »

Hi gandalf,
i tried with TOTAL SIMILAR DATA SOURCES NODUPS, but, all i got
was the sum of similar datasource_items.
Example:
In my case, that would be possible:
RRD/Datasource1(usr)+RRD/Datasource2(usr)+RRD/Datasource3(usr)=120
RRD/Datasource1(sys)+RRD/Datasource2(sys)+RRD/Datasource3(sys)=23

But, this is what i want:
RRD/Datasource1(usr)+RRD/Datasource1(sys)+RRD/Datasource1(wio)=21
RRD/Datasource2(usr)+RRD/Datasource2(sys)+RRD/Datasource2(wio)=98

And, as far as i understood it, the TOTAL SIMILAR DATA SOURCES NODUPS cant do this. Or do i have a error in my logic? ;)

sry, for my bad englisch..

thanks for the help ;)

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

Post by gandalf »

skee wrote:Hi gandalf,
i tried with TOTAL SIMILAR DATA SOURCES NODUPS, but, all i got
was the sum of similar datasource_items.
Example:
In my case, that would be possible:
RRD/Datasource1(usr)+RRD/Datasource2(usr)+RRD/Datasource3(usr)=120
RRD/Datasource1(sys)+RRD/Datasource2(sys)+RRD/Datasource3(sys)=23
That's what it's supposed to deliver
But, this is what i want:
RRD/Datasource1(usr)+RRD/Datasource1(sys)+RRD/Datasource1(wio)=21
RRD/Datasource2(usr)+RRD/Datasource2(sys)+RRD/Datasource2(wio)=98
There's no cacti variable for this. You will have to create a CDEF using the DEF names of each data source
Reinhard
skee
Posts: 14
Joined: Thu Jul 17, 2008 9:08 am

Post by skee »

Hmm, thats almost impossible.i got 50K Datasources ;)

but, then i have to try another way.

thanks for you time
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may consider using reportit to create numeric/tabular aggregates; this works even with a huge amount of datasources
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests