Question about displaying a total for a time period

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

Moderators: Developers, Moderators

Post Reply
mrpepik
Posts: 1
Joined: Mon Oct 10, 2005 2:35 pm
Location: Atlanta, GA

Question about displaying a total for a time period

Post by mrpepik »

Hi Everyone,

I just finished creating a graph for pulling the Current WATTS used from APC PDU's and I was wondering if there was a way to display a total of all WATTS used for the time period I am viewing?

For example if my pdu is using 1902 watts on each consecutive query I pull, is there a way I can total them all up and display that total at the bottom of the graph? I am testing by putting in a Commant with no CDEF and a GPRINT of exact numbers and I have this in my Text Format: "Test Total: |sum:auto:total:9:auto|" and all this does is display the total in MB which is not what I want and reading the docs it appears to me that this sort of display can only be for traffic from the interfaces.

If it can't be done, thats cool, I was just wondering if it could. :-)

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

Post by gandalf »

eschoeller
Cacti User
Posts: 234
Joined: Mon Dec 13, 2004 3:03 pm

Post by eschoeller »

mrpepik: Did you ever figure this out? I'm having the same problem. I've read, and re-read the very short description of "Bandwidth Summation" and it really seems to be lacking the information I need to understand if I can apply Summation to data sources other than Interface Traffic. My Summation isn't even working for some reason, all I have is "Total: 0 bytes"
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

perhaps this helps: Cacti 088 will bring full VDEF support. This way, you can TOTAL using plain rrdtool. Code is already in
R.
eschoeller
Cacti User
Posts: 234
Joined: Mon Dec 13, 2004 3:03 pm

Post by eschoeller »

Oh, very interesting. I've never heard of VDEFs before, but they seem very useful.

In the meantime, I did a bit more reading and found out that my main problem was that I had a single Data Template for multiple graphs - some of the items weren't used and thus I had NaN's in the RRDs, which apparently messed up the summation. I created separate data templates for each graph and now the summation is working correctly.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests