[asterisk-users] SNMP order of channel types

Tony Mountifield tony at softins.co.uk
Fri Jan 8 04:16:09 CST 2016


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

-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list