Data source for tracking "all time" total

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
User avatar
Cylindric
Cacti User
Posts: 54
Joined: Mon Jul 16, 2007 9:32 am

Data source for tracking "all time" total

Post by Cylindric »

Hello,

I have just started logging against a PowerMTA server, and all the usual counters for messages/sec and queue sizes etc are great.

One thing I have been asked for is if we can track "total messages sent, ever". There is a counter value I can get to (msg_sent) which just returns a "total out" counter, which increases continuously. The problem is that the counter resets on reboot. This means a typical block of records might look like:

Code: Select all

Reported    |   Actual
59,442,028   59,442,028
61,621,631   61,621,631
62,354,211   62,354,211
   234,555   62,588,766
   903,343   63,257,554
  1,001,122  63,355,333
The only way I can think of is to store the counter value myself, and when it 'overflows' note a new baseline and record future values as reported+baseline. The values are retrieved by a PHP script, so it wouldn't be difficult to process them on the way through.
Server: Windows Server 2008 R2 x64 (running on a VM, 4Gb RAM)
Cacti: 0.8.8a (using cmd, 270 datasources in 145s)
MySQL: 5.5.16, Apache: 2.2.21, PHP: 5.3.16
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests