Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a data source which returns the number of messages sent since startup. I want to be able to graph this, but I'm unsure of the best way.

What I'm thinking is graphing the increase in messages since the last interval (the data source doesn't provide this method, so I'd need cacti to do it).

Any ideas?

share|improve this question
up vote 1 down vote accepted

This is exactly how interface counters are handled: They specify the number of bytes or packets received or sent over an interface. Cacti (resp. rrdtool) then calculates the difference between the current and the last reading and stores and graphs that value.

I guess it would be the best to check out the "Interface - Traffic" data template. The "Data Source Type" setting defines how cacti/rrdtool should handle the values. "COUNTER" or "DERIVE" is what you need. For an explanation of all the different data source types, check out the rrdtool docs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.