Hi all!
I've got a counter (the numbers of printed pages by a network printer to be precise) which I could query via SNMP. However, showing an ever increasing graph which shows the total number of pages printed wouldn't be too helpful in my opinion. Therefore I would like to ask: is there any allready existing method in Cacti (or rrdtool) to not show the absolute number of a counter but only its changes over time?
To give an example: When five pages are printed in a certain time interval, the counter increases from "123456" to "123461". But Cacti should show only a graph value of "5" for that specific time interval. (And "0" before and after if no more pages are printed.)
TIA,
sjs
Graphing only changes in a value?
Moderators: Developers, Moderators
Re: Graphing only changes in a value?
Try to use GAUGE data source type instead of COUNTER in Data Template.sjs wrote: I've got a counter (the numbers of printed pages by a network printer to be precise) which I could query via SNMP. However, showing an ever increasing graph which shows the total number of pages printed wouldn't be too helpful in my opinion. Therefore I would like to ask: is there any allready existing method in Cacti (or rrdtool) to not show the absolute number of a counter but only its changes over time?
To give an example: When five pages are printed in a certain time interval, the counter increases from "123456" to "123461". But Cacti should show only a graph value of "5" for that specific time interval. (And "0" before and after if no more pages are printed.)
sjs
Re: Graphing only changes in a value?
Thanks for the hint.XTech wrote:Try to use GAUGE data source type instead of COUNTER in Data Template.sjs wrote: To give an example: When five pages are printed in a certain time interval, the counter increases from "123456" to "123461". But Cacti should show only a graph value of "5" for that specific time interval. (And "0" before and after if no more pages are printed.)
sjs
But JFTR, as I found out in the meantime, it's exactly the other way round: GAUGE will show "123456" and "123461" (to stick with the abovementioned example) while COUNTER will show "5". (After applying a CDEF to convert the per second(?) value to a polling interval value.)
Regards
sjs
Re: Graphing only changes in a value?
Sorry, I posted a wrong hint. Just confused with GAUGE and COUNTER, edited data sources last time a while ago. But as I see, you solved your problem despite of my wrong hint
Re: Graphing only changes in a value?
Hi! Have exactly the same issue; could you point me the CDEF you used to convert to the "per second" pls?sjs wrote: Thanks for the hint.
But JFTR, as I found out in the meantime, it's exactly the other way round: GAUGE will show "123456" and "123461" (to stick with the abovementioned example) while COUNTER will show "5". (After applying a CDEF to convert the per second(?) value to a polling interval value.)
I'm to track water usage by hour/day/week/month and already have access to the total liters counter value
Regards
Re: Graphing only changes in a value?
On my cacti installation it's called "Make Per 5 Minutes". But I don't know, if this CDEF comes with the standard cacti package or if it was installed by one of the "external" graph templates I'm using.sjs wrote: Hi! Have exactly the same issue; could you point me the CDEF you used to convert to the "per second" pls?
HTH,
sjs
Who is online
Users browsing this forum: No registered users and 3 guests