[asterisk-dev] Additional SNMP stats request
Justin Killen
jkillen at allamericanasphalt.net
Tue Aug 21 14:09:11 CDT 2007
> So it sounds as if, for fixed-capacity* channel types, you're asking
> for:
>
> 1. Per-channel (tabular) instantaneous utilization stats, perhaps
> represented by a set of counters, each one representing the number of
> seconds the channel has been in a given state (active, idle, looped,
> others?)
> 2. Per-adapter (tabular) instantaneous utilization stats, perhaps a
> gauge representing total channels, plus one for each of the states a
> channel can be in
>
> MIB sketch:
>
> +- astFixedCapacityResources
> +-+- astFCChanStatsTable
> + +- astFCChanStatsEntry
> | |-+- astFCChanIndex
> | |-+- astFCChanName
> | |-+- astFCChanAdapter (keys to astFCAdapterStatsIndex)
> | |-+- astFCChanActiveSec
> | |-+- astFCChanIdleSec
> | |-+- astFCChanLoopSec
> | |-+- ...
> +-+- astFCAdapterStatsTable
> | +- astFCAdapterStatsEntry
> | |-+- astFCAdapterStatsIndex
> | |-+- astFCAdapterStatsName
> | |-+- astFCAdapterStatsChannelsTotal
> | |-+- astFCAdapterStatsChannelsActive
> | |-+- astFCAdapterStatsChannelsIdle
> | |-+- astFCAdapterStatsChannelsLoop
> | |-+- ...
>
> *Note that "fixed-capacity" is a term I just made up in my own mind;
> if an equivalent term already exists, we should use that instead.
>
> -jeff
That looks good to me. So, I would have something like this then:
astFCChanStatsEntry.0.astFCChanActiveSec = 100 (a summation of
Zap/1-1, Zap/2-1, Zap/3-1, etc)
astFCChanStatsEntry.0.astFCChanName = Zap
astFCChanStatsEntry.0.astFCChanAdapter = 0
astFCAdapterStatsEntry.0.ChannelsTotal = 8
That would work well for total call times - I would also suggest adding
number of calls per channel as well, i.e.
astFCChanInboundCalls = 50
astFCChanOutboundCalls = 50
and corresponding adapter stats:
astFCAdaptorStatsInboundCalls = 50
astFCAdaptorStatsOutboundCalls = 50
where astFCChanInboundCalls are the number of calls initiated on that
channel, and astFCChanOutboundCalls are calls Dial'd onto that channel
-Justin
More information about the asterisk-dev
mailing list