SNMP Order Of Channel Types

Home » Asterisk Users » SNMP Order Of Channel Types
Asterisk Users No Comments

I have two very much identical systems running Asterisk 11 with the SNMP
module included.

I have found that the order of channel types on the two systems is different. One system has:

ASTERISK-MIB::astChanTypeName.1 = STRING: ConfBridgeRec ASTERISK-MIB::astChanTypeName.2 = STRING: Local ASTERISK-MIB::astChanTypeName.3 = STRING: SIP
ASTERISK-MIB::astChanTypeName.4 = STRING: Agent ASTERISK-MIB::astChanTypeName.5 = STRING: IAX2
ASTERISK-MIB::astChanTypeName.6 = STRING: Bridge ASTERISK-MIB::astChanTypeName.7 = STRING: MulticastRTP
ASTERISK-MIB::astChanTypeName.8 = STRING: DAHDI

But the other has:

ASTERISK-MIB::astChanTypeName.1 = STRING: ConfBridgeRec ASTERISK-MIB::astChanTypeName.2 = STRING: Local ASTERISK-MIB::astChanTypeName.3 = STRING: Bridge ASTERISK-MIB::astChanTypeName.4 = STRING: SIP
ASTERISK-MIB::astChanTypeName.5 = STRING: IAX2
ASTERISK-MIB::astChanTypeName.6 = STRING: Agent ASTERISK-MIB::astChanTypeName.7 = STRING: MulticastRTP
ASTERISK-MIB::astChanTypeName.8 = STRING: DAHDI

This makes it difficult to have a common MRTG configuration between them monitoring for SIP channel usage.

Can anyone tell me:

1. What determines the order of channel types?

2. Is this likely to vary between reboots or rebuilds?

3. Is there a way I can make the order predictable and fixed? modules.conf?

4. Or alternatively, a way I can make MRTG find the correct index dynamically?

Thanks for any advice, Tony