[asterisk-dev] Additional SNMP stats request

Steven Critchfield critch at basesys.com
Mon Aug 20 11:29:23 CDT 2007


On Mon, 2007-08-20 at 08:50 -0700, Justin Killen wrote:
> All,
> 
>  
> 
> I am trying to do some trend graphing of certain statistics within
> asterisk, but I’m having a hard time finding them.  My current
> implementation is an 8 port TDM card that users dial into from the
> PSTN, so I have Zap/1-1, Zap/2-1, Zap/3-1, etc.
> 
>  
> 
> What I would like to be able to query is the total number of answered
> calls, and the current ‘UP’ time.  My eventual plan would be to hook
> these numbers into MRTG or something similar that would give me the
> number of calls over the last 5 minutes.  I have tried using the
> ‘concurrent calls’ node, but that misses a lot of information (e.g. I
> gather stats, a person calls and hangs up, then the stats gather
> again).
> 
>  
> 
> So, in having these two nodes I would be able to deduce the average
> call length and true concurrent calls over time.

See I think that is the problem. The information you are looking for in
this last question is really best handled with the CDR not with SNMP.
You have a lot of things that might not be observable at the collection
times. 

Your metric of number of calls over the last 5 minutes seems like a
strange request when viewed from a operator of a asterisk system that
doesn't see very many calls under 5 minutes duration. Do you want
completed calls in the last 5 minutes, do you want call initializations
in the last 5 minutes, do you want something else? 

This is why I think your problem is actually 2 problems. SNMP captures
snapshots of the running system at collection times. Your question of
average call lengths would be handled by the cold hard CDR records.
Concurrent calls is a snapshot problem. I also at one time wrote a perl
app that created graphs from the CDRs to reproduce the data collection
points. 
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list