1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +00:00

snmp__if_combined: don't pull in unneeded data.

This commit is contained in:
Diego Elio Pettenò 2012-08-28 14:19:50 -07:00
parent 8d259040ac
commit 5cad9514bd

View file

@ -85,12 +85,11 @@ Should support indexing by
- ifIndex
- ifName
- ifDescr
- ifAlias
- mac-address
(and anything else MRTG can index by) in addition to OID-index as now.
Pulling in a user definable set of ifName/ifDescr/ifAlias for textual
Pulling in a user definable set of ifName/ifDescr for textual
description and even graph_title would also be nice.
IFF we get a patch to support the .oldname attribute then we may use
@ -447,33 +446,22 @@ sub do_collect {
{ 2 => 'ifDescr',
# Type: See above
3 => 'ifType',
4 => 'ifMtu',
5 => 'ifSpeed',
6 => 'ifMac',
7 => 'ifAdminStatus',
# Oper: 1) up 2) down 3) testing
# 4) unknown, 5) dormant 6) not present
# 7) lowerLayerDown
8 => 'ifOperStatus',
10 => 'ifInOctets',
11 => 'ifInUcastPkts',
15 => 'ifUnUnknownProtos',
16 => 'ifOutOctets',
18 => 'ifOutNUcastPkts',
});
# ifXEntry - SNMP v2 and up only - on some devices
$snmpinfoX = $session->get_hash(
-baseoid => $ifv2OIDBase,
-cols =>
{ 2 => 'ifInMulticastPkts',
3 => 'ifInBroadcastPkts',
4 => 'ifOutMulticastPkts',
5 => 'ifOutBroadcastPkts',
6 => 'ifHCInOctets',
{ 6 => 'ifHCInOctets',
10 => 'ifHCOutOctets',
15 => 'ifHighSpeed',
18 => 'ifAlias',
});
}