OIDs verified against the bundled mibs/; matcher checked against 214 LibreNMS recordings (211 match). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx9FNLG2CqeBbVGGd9bFsP
66 lines
5.2 KiB
YAML
66 lines
5.2 KiB
YAML
# Provenance: standard objects (all under mibs/: IF-MIB, SNMPv2-MIB,
|
|
# HOST-RESOURCES-MIB, UCD-SNMP-MIB, ENTITY-MIB, ENTITY-SENSOR-MIB, IP-MIB;
|
|
# every OID verified with snmptranslate). Standard objects from IF-MIB (RFC 2863), SNMPv2-MIB (RFC 3418),
|
|
# HOST-RESOURCES-MIB (RFC 2790), UCD-SNMP-MIB (net-snmp project documentation),
|
|
# ENTITY-MIB (RFC 6933), ENTITY-SENSOR-MIB (RFC 3433) and IP-MIB (RFC 4293).
|
|
# OIDs are the IANA/IETF-registered values; no MIB text is reproduced.
|
|
#
|
|
# Decision: hrStorageUsed/Size/AllocationUnits are labelled with the row's
|
|
# hrStorageDescr value, but the label key is `component` (index_label.as), not
|
|
# `hrStorageDescr`. Build detail "Metric labels" allows no SNMP label besides
|
|
# device and iface/component, and the spec's hrStorageUsed{device, hrStorageDescr}
|
|
# is read as "the descr identifies the row". Dashboards and alert rules select
|
|
# on `component`.
|
|
#
|
|
# Notes: mem* objects are kilobytes (scale 1024 gives bytes). entPhySensorValue
|
|
# is the raw sensor reading; its type, scale and precision live in inventory, so
|
|
# its unit here is `count`. ipIfStats metrics are opt-in: a profile switches them
|
|
# on by restating the metric with `enabled: true`.
|
|
name: generic
|
|
priority: 0
|
|
provenance: IF-MIB, SNMPv2-MIB, HOST-RESOURCES-MIB, UCD-SNMP-MIB, ENTITY-MIB, ENTITY-SENSOR-MIB, IP-MIB (IETF RFCs and net-snmp docs)
|
|
snmp:
|
|
max_repetitions: 25
|
|
concurrency: 1
|
|
interfaces:
|
|
exclude_ifname: ['^lo$', '^lo[0-9]*$', '^Loopback', '^Null0$', '^NULL', '^InLoopBack']
|
|
discovery_tables:
|
|
- ENTITY-MIB::entPhysicalTable
|
|
- HOST-RESOURCES-MIB::hrStorageTable
|
|
- LLDP-MIB::lldpRemTable
|
|
metrics:
|
|
- { name: ifHCInOctets, oid: 1.3.6.1.2.1.31.1.1.1.6, type: counter64, unit: octets, interval: 60s, index_label: { column: ifIndex, as: iface } }
|
|
- { name: ifHCOutOctets, oid: 1.3.6.1.2.1.31.1.1.1.10, type: counter64, unit: octets, interval: 60s, index_label: { column: ifIndex, as: iface } }
|
|
- { name: ifInErrors, oid: 1.3.6.1.2.1.2.2.1.14, type: counter32, unit: errors, interval: 60s, index_label: { column: ifIndex, as: iface } }
|
|
- { name: ifOutErrors, oid: 1.3.6.1.2.1.2.2.1.20, type: counter32, unit: errors, interval: 60s, index_label: { column: ifIndex, as: iface } }
|
|
- { name: ifInDiscards, oid: 1.3.6.1.2.1.2.2.1.13, type: counter32, unit: packets, interval: 60s, index_label: { column: ifIndex, as: iface } }
|
|
- { name: ifOutDiscards, oid: 1.3.6.1.2.1.2.2.1.19, type: counter32, unit: packets, interval: 60s, index_label: { column: ifIndex, as: iface } }
|
|
- name: ifOperStatus
|
|
oid: 1.3.6.1.2.1.2.2.1.8
|
|
type: status
|
|
unit: enum
|
|
interval: 60s
|
|
index_label: { column: ifIndex, as: iface }
|
|
enum: { 1: up, 2: down, 3: testing, 4: unknown, 5: dormant, 6: notPresent, 7: lowerLayerDown }
|
|
- name: ifAdminStatus
|
|
oid: 1.3.6.1.2.1.2.2.1.7
|
|
type: status
|
|
unit: enum
|
|
interval: 60s
|
|
index_label: { column: ifIndex, as: iface }
|
|
enum: { 1: up, 2: down, 3: testing }
|
|
- { name: sysUpTime, oid: 1.3.6.1.2.1.1.3.0, type: gauge, unit: seconds, interval: 60s }
|
|
- { name: hrSystemUptime, oid: 1.3.6.1.2.1.25.1.1.0, type: gauge, unit: seconds, interval: 5m }
|
|
- { name: hrProcessorLoad, oid: 1.3.6.1.2.1.25.3.3.1.2, type: gauge, unit: percent, interval: 5m, index_label: { column: hrDeviceIndex, as: component } }
|
|
- { name: hrStorageUsed, oid: 1.3.6.1.2.1.25.2.3.1.6, type: gauge, unit: count, interval: 5m, index_label: { column: hrStorageDescr, as: component }, table: "HOST-RESOURCES-MIB::hrStorageTable" }
|
|
- { name: hrStorageSize, oid: 1.3.6.1.2.1.25.2.3.1.5, type: gauge, unit: count, interval: 5m, index_label: { column: hrStorageDescr, as: component }, table: "HOST-RESOURCES-MIB::hrStorageTable" }
|
|
- { name: hrStorageAllocationUnits, oid: 1.3.6.1.2.1.25.2.3.1.4, type: gauge, unit: bytes, interval: 5m, index_label: { column: hrStorageDescr, as: component }, table: "HOST-RESOURCES-MIB::hrStorageTable" }
|
|
- { name: memTotalReal, oid: 1.3.6.1.4.1.2021.4.5.0, type: gauge, unit: bytes, scale: 1024, interval: 5m }
|
|
- { name: memAvailReal, oid: 1.3.6.1.4.1.2021.4.6.0, type: gauge, unit: bytes, scale: 1024, interval: 5m }
|
|
- { name: entPhySensorValue, oid: 1.3.6.1.2.1.99.1.1.1.4, type: gauge, unit: count, interval: 5m, index_label: { column: entPhysicalName, as: component }, table: "ENTITY-MIB::entPhysicalTable" }
|
|
# Opt-in per-address-family octets from IP-MIB ipIfStatsTable (index ipVersion.ifIndex).
|
|
- { name: ipIfStatsHCInOctetsV4, oid: 1.3.6.1.2.1.4.31.3.1.6, type: counter64, unit: octets, interval: 5m, index_label: { column: ifIndex, as: iface }, index_prefix: "1", optional: true, enabled: false }
|
|
- { name: ipIfStatsHCOutOctetsV4, oid: 1.3.6.1.2.1.4.31.3.1.33, type: counter64, unit: octets, interval: 5m, index_label: { column: ifIndex, as: iface }, index_prefix: "1", optional: true, enabled: false }
|
|
- { name: ipIfStatsHCInOctetsV6, oid: 1.3.6.1.2.1.4.31.3.1.6, type: counter64, unit: octets, interval: 5m, index_label: { column: ifIndex, as: iface }, index_prefix: "2", optional: true, enabled: false }
|
|
- { name: ipIfStatsHCOutOctetsV6, oid: 1.3.6.1.2.1.4.31.3.1.33, type: counter64, unit: octets, interval: 5m, index_label: { column: ifIndex, as: iface }, index_prefix: "2", optional: true, enabled: false }
|