CDEF to total ALL_DATA_SOURCES_NODUPS for current Month

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

Moderators: Developers, Moderators

Post Reply
sneak147
Posts: 9
Joined: Fri Jan 25, 2008 11:14 am

CDEF to total ALL_DATA_SOURCES_NODUPS for current Month

Post by sneak147 »

Hi,

Im new to playing with CDEFs like 1 hour..

but I would like to display the total amount of
mail for that month in a GPRINT

I collect a daily figure ant that plots all fine..


would this be possible to do with a CDEF?

I know I would use the TIME, function and compare it to the epoc result I get from date -d "`date +%Y%m`" +%s and SUM up the datasources which match.. but have no Idea howto put all together..


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

Post by gandalf »

Please check, if Bandwidth Summation at http://docs.cacti.net/node/525 fits your needs
Reinhard
sneak147
Posts: 9
Joined: Fri Jan 25, 2008 11:14 am

Post by sneak147 »

Thanks this is exactly what I needed..

one question... is this a cacti funtion or a rrdtool function..

out of interest,,,
sneak147
Posts: 9
Joined: Fri Jan 25, 2008 11:14 am

Post by sneak147 »

anther question where do I put this string under ?? to make this work?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sneak147 wrote:Thanks this is exactly what I needed..

one question... is this a cacti funtion or a rrdtool function..

out of interest,,,
A cacti function
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sneak147 wrote:anther question where do I put this string under ?? to make this work?
See e.g. the Graph Template named Interface - Traffic (bits/sec, Total Bandwidth)
Reinhard
sneak147
Posts: 9
Joined: Fri Jan 25, 2008 11:14 am

Post by sneak147 »

Okay ive worked out how to use this varible..


but is this post http://forums.cacti.net/about19336.html

still relative to the latest version of cacti?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Not sure. It's not maintained officially. But chances are quite good that it still works, perhaps the patch applies it with some offset.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests