ports/sysutils/snmp_exporter/files/generator-pf.yml

55 lines
1.4 KiB
YAML
Raw Normal View History

2023-08-16 22:26:55 +00:00
# Cut-down example of if_mib setup done using SNMPv3 (edit the various
# $snmpv3-... as needed) and information from OPENBSD-PF-MIB, based on
# https://yetiops.net/posts/openbsd-snmp-exporter/.
2023-08-18 18:38:43 +00:00
auths:
priv_snmpv3:
version: 3
username: "$snmpv3-user"
password: "$snmpv3-authkey"
priv_password: "$snmpv3-enckey"
security_level: authPriv
auth_protocol: SHA
priv_protocol: AES
2023-08-16 22:26:55 +00:00
modules:
if_mib:
walk: [sysUpTime, interfaces, ifXTable]
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
2023-08-18 18:38:43 +00:00
# Use OID to avoid conflict with PaloAlto PAN-COMMON-MIB.
lookup: 1.3.6.1.2.1.2.2.1.2 # ifDescr
2023-08-16 22:26:55 +00:00
- source_indexes: [ifIndex]
2023-08-18 18:38:43 +00:00
# Use OID to avoid conflict with Netscaler NS-ROOT-MIB.
lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName
2023-08-16 22:26:55 +00:00
overrides:
ifAlias:
ignore: true # Lookup metric
ifDescr:
ignore: true # Lookup metric
ifName:
ignore: true # Lookup metric
ifType:
type: EnumAsInfo
openbsd_pf:
walk:
- pfRunning
- pfRuntime
- pfDebug
- pfHostid
- pfStateCount
- pfStateSearches
- pfStateInserts
- pfStateRemovals
- pfIfTable
- pfIfDescr
- pfIfType
- pfIfIndex
lookups:
- source_indexes: [pfIfIndex]
lookup: pfIfDescr
drop_source_indexes: false