Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Dec 18, 2017 12:26 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Graphing only changes in a value?
PostPosted: Tue Aug 02, 2016 11:31 am 
Offline

Joined: Wed Oct 24, 2007 1:22 pm
Posts: 19
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


Top
 Profile  
 
 Post subject: Re: Graphing only changes in a value?
PostPosted: Tue Aug 02, 2016 10:24 pm 
Offline
Cacti User
User avatar

Joined: Sat May 26, 2012 9:25 pm
Posts: 59
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


Try to use GAUGE data source type instead of COUNTER in Data Template.


Top
 Profile  
 
 Post subject: Re: Graphing only changes in a value?
PostPosted: Mon Aug 08, 2016 10:25 am 
Offline

Joined: Wed Oct 24, 2007 1:22 pm
Posts: 19
XTech wrote:
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


Try to use GAUGE data source type instead of COUNTER in Data Template.


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.)


Regards
sjs


Top
 Profile  
 
 Post subject: Re: Graphing only changes in a value?
PostPosted: Mon Aug 08, 2016 9:48 pm 
Offline
Cacti User
User avatar

Joined: Sat May 26, 2012 9:25 pm
Posts: 59
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 :-)


Top
 Profile  
 
 Post subject: Re: Graphing only changes in a value?
PostPosted: Thu Nov 30, 2017 5:42 am 
Offline

Joined: Thu Nov 30, 2017 5:36 am
Posts: 1
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.)


Hi! Have exactly the same issue; could you point me the CDEF you used to convert to the "per second" pls?
I'm to track water usage by hour/day/week/month and already have access to the total liters counter value

Regards


Top
 Profile  
 
 Post subject: Re: Graphing only changes in a value?
PostPosted: Fri Dec 01, 2017 3:21 pm 
Offline

Joined: Wed Oct 24, 2007 1:22 pm
Posts: 19
sjs wrote:
Hi! Have exactly the same issue; could you point me the CDEF you used to convert to the "per second" pls?


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.


HTH,
sjs


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group