From OpenNMS
Contents |
Note
This is a work in progress.
Current selectors
- ifType (group level, specific to SNMP)
- "select"ed interfaces (snmpCollect column in the snmpInterface table); set by capsd or provisiond (can be overridden by user)
- see org.opennms.netmgt.collectd.SnmpCollector.limitCollectionToInstances in opennms.properties for a flag that limits collection to known instances
Goal state
- At collection time, be able to build an arbitrarily complex test based on attribute values for a given instance of a generic resource.
Data used for making decisions
- Any attribute (or collection of attributes) in a collection set.
- Any data stored in the database for that entity.
Examples:
- ifType (per-instance SNMP column value)
- hrStorageDescr (per-instance SNMP column value)
Instance list from datacollection-config.xml
835 0 95 ifIndex 73 rttMonCtrlAdminIndex 71 asAppIndex 59 applIndex 29 1 24 ainfLDskInstance 21 sinfLDskInstance 19 msdpPeerEntry 18 ainfNetInstance 15 frCircuitIfIndex 14 sinfNetInstance 13 ipuMGCPMsgStatsEntry 13 dskIndex 11 sinfCpuInstance 10 naDfIndex 10 hpuxFSTable 10 EqVol 9 mplsL3VpnVrf 9 cesServerFarmRserverEntry 9 ainfCpuInstance 8 vcPipePosition 8 stSentry3Infeed 8 pipePosition 8 mtxrWlRtabAddr 8 ltmVSStatName 8 3 7 pgmonIndex 7 ltmPoolStatName 7 ciscoMemoryPoolType 7 ciscoApCntIndex 7 aixVolumeGroup 6 temperatureProbeIndex 6 mtxrWlStatIndex 6 aixFilesystem 5 swFCPortIndex 5 stSentry3Tower 5 stSentry3EnvMon 5 rbshBwPort 5 hrStorageNonUnique 5 hrStorageIndex 5 diskIOIndex 5 aixPagingSpace 4 rbshCpuIndivIndex 4 netwareDisk 4 lgpPwrMeasurementPtIndex 4 ciscoSlbInstance 4 bgpPeerEntry 4 aixPhysicalVolume 4 8 4 6 4 5 3 umOrgIndex 3 prtMarkerSuppliesIndex 3 powerUsageIndex 3 juniSystemSlot 3 hrDeviceEntry 3 f5ifName 3 coolingDeviceIndex 3 aixPrintQueue 2 pethMainPseGroupIndex 2 juniSystemTempIndex 2 ciscoEnvMonVoltageStatusIndex 2 ciscoEnvMonTemperatureStatusIndex 2 astChanType 2 2 1 rPDULoadStatusIndex 1 lgpEnvTemperatureIdDegF 1 cbgpPeerAddrFamilyPrefixEntry 1 7
Command: perl -ne 'if (m/instance="([^\"]*)"/) { print "$1\n"; }' opennms-base-assembly/src/main/filtered/etc/datacollection-config.xml | sort | uniq -c | sort -nr
ifType list
90 all 88 ignore 1 71 1 129 1 127
Command: perl -ne 'if (m/ifType="([^\"]*)"/) { print "$1\n"; }' opennms-base-assembly/src/main/filtered/etc/datacollection-config.xml | sort | uniq -c | sort -nr






