[rrd-users] How would you handle this?

Simon Hobson linux at thehobsons.co.uk
Fri Apr 23 00:34:51 CEST 2010


Ulf Zimmermann wrote:
>I am looking at the logs of our fax servers, which run a card by 
>Eicon. The logfile has information like call direction, which I 
>would want to track as in, out and total, call time (start of call), 
>call duration and port number plus other information which for 
>tracking purpose I don't care about.
>
>I am thinking about running a script on this to feed into RRD maybe, 
>like once an hour to check the previous hour. But how would you 
>organize this in RRD?

RRD will only track rates, so you cannot use it to track individual 
calls or their start times. You could track number of calls, and 
total durations.

For logging number of calls, there are two ways of doing it. One is 
to total the calls per unit of time in your scripts, and pass this in 
as a data type absolute. The other would be to do an update for each 
call and feed in the value 1 for each call made/received - again data 
type absolute and assuming you don't ever have two calls on the same 
second.

Similarly, for call durations, you can either add them up for each 
time period and do an update with that total, or do an update for 
each call.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the rrd-users mailing list