Skip to content

Instantly share code, notes, and snippets.

@M0NsTeRRR
Last active March 15, 2021 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M0NsTeRRR/fcbffd3dfa30939707e212ceacd9f5ab to your computer and use it in GitHub Desktop.
Save M0NsTeRRR/fcbffd3dfa30939707e212ceacd9f5ab to your computer and use it in GitHub Desktop.
modules:
# Default IF-MIB interfaces table with ifIndex.
if_mib:
walk:
- 1.3.6.1.2.1.1.3 # sysUpTime
- 1.3.6.1.2.1.2 # interfaces
- 1.3.6.1.2.1.31.1.1 # ifXTable
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: ifDescr
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.31.1.1.1.1
overrides:
ifType:
type: EnumAsInfo
version: 3
auth:
username: admin
security_level: authPriv
password: "{{ snmp_exporter_pass }}"
auth_protocol: SHA
priv_protocol: AES
priv_password: "{{ snmp_exporter_private }}"
# Mikrotik CCR2004-1G-12S+2XS
mikrotik:
walk:
- 1.3.6.1.2.1.1.3 # sysUpTime
- 1.3.6.1.2.1.2 # interfaces
- 1.3.6.1.2.1.31.1.1 # ifXTable
- 1.3.6.1.4.1.14988 # mikrotik
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: ifDescr
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.31.1.1.1.1
overrides:
ifType:
type: EnumAsInfo
version: 3
auth:
username: admin
security_level: authPriv
password: "{{ snmp_exporter_pass }}"
auth_protocol: SHA
priv_protocol: AES
priv_password: "{{ snmp_exporter_private }}"
# Juniper SRX300
juniper:
walk:
- 1.3.6.1.2.1.1.3 # sysUpTime
- 1.3.6.1.2.1.2 # interfaces
- 1.3.6.1.2.1.31.1.1 # ifXTable
- 1.3.6.1.4.1.2636.3.1.8.1.14.1.1.0.0 # jnxContentsModel.1.1.0.0
- 1.3.6.1.2.1.25.6.3.1.2 # hrSWInstalledName
- 1.3.6.1.4.1.2636.3.1.13.1.6.2 # jnxOperatingState
- 1.3.6.1.4.1.2636.3.1.13.1.8 # jnxOperatingCPU
- 1.3.6.1.4.1.2636.3.1.13.1.11 # jnxOperatingBuffer
- 1.3.6.1.4.1.2636.3.1.13.1.7 # jnxOperatingTemp
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: ifDescr
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.31.1.1.1.1
overrides:
ifType:
type: EnumAsInfo
version: 3
auth:
username: admin
security_level: authPriv
password: "{{ snmp_exporter_pass }}"
auth_protocol: SHA
priv_protocol: AES
priv_password: "{{ snmp_exporter_private }}"
# Brocade ICX 6650 & 7150-C12P
brocade:
walk:
- 1.3.6.1.2.1.1.3 # sysUpTime
- 1.3.6.1.2.1.2 # interfaces
- 1.3.6.1.2.1.31.1.1 # ifXTable
- 1.3.6.1.4.1.1991.1.1.2.1.11 # snAgImgVer
- 1.3.6.1.4.1.1991.1.1.1.2 # snChasPwr
- 1.3.6.1.4.1.1991.1.1.1.3 # snChasFan
- 1.3.6.1.4.1.1991.1.1.2.11 # snAgentCpu
- 1.3.6.1.4.1.1991.1.1.2.1.53 # snAgentMemUtil
- 1.3.6.1.4.1.1991.1.1.2.13 # snAgentTemp
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: ifDescr
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.31.1.1.1.1
overrides:
ifType:
type: EnumAsInfo
version: 3
auth:
username: admin
security_level: authPriv
password: "{{ snmp_exporter_pass }}"
auth_protocol: SHA
priv_protocol: AES
priv_password: "{{ snmp_exporter_private }}"
# FS S3900 24T4S
# fs:
# walk:
# - 1.3.6.1.2.1.1.3 # sysUpTime
# - 1.3.6.1.2.1.2 # interfaces
# - 1.3.6.1.2.1.31.1.1 # ifXTable
# - 1.3.6.1.4.1.52642.2.1.45.1.1.5.1 # swProdName
# - 1.3.6.1.4.1.52642.2.1.45.1.1.2.0 # swProdVersion
# - 1.3.6.1.4.1.52642.2.1.45.1.39.2 # cpuStatus
# - 1.3.6.1.4.1.52642.2.1.45.1.39.3 # memoryStatus
# - 1.3.6.1.4.1.52642.2.1.45.1.1.11.1.3 # switchThermalTempValue
# lookups:
# - source_indexes: [ifIndex]
# lookup: ifAlias
# - source_indexes: [ifIndex]
# lookup: ifDescr
# - source_indexes: [ifIndex]
# lookup: 1.3.6.1.2.1.31.1.1.1.1
# overrides:
# ifType:
# type: EnumAsInfo
# version: 3
# auth:
# username: admin
# security_level: authPriv
# password: "{{ snmp_exporter_pass }}"
# auth_protocol: SHA
# priv_protocol: AES
# priv_password: "{{ snmp_exporter_private }}"
# Qnap TS-219 PII
qnap:
walk:
- 1.3.6.1.2.1.1.3 # sysUpTime
- 1.3.6.1.2.1.2 # interfaces
- 1.3.6.1.2.1.31.1.1 # ifXTable
- 1.3.6.1.4.1.24681.1.2.1 #qnap
- 1.3.6.1.4.1.24681.1.2.2 #qnap
- 1.3.6.1.4.1.24681.1.2.3 #qnap
- 1.3.6.1.4.1.24681.1.2.4 #qnap
- 1.3.6.1.4.1.24681.1.2.5 #qnap
- 1.3.6.1.4.1.24681.1.2.6 #qnap
- 1.3.6.1.4.1.24681.1.2.10 #qnap
- 1.3.6.1.4.1.24681.1.2.11 #qnap
- 1.3.6.1.4.1.24681.1.2.12 #qnap
- 1.3.6.1.4.1.24681.1.2.13 #qnap
- 1.3.6.1.4.1.24681.1.2.14 #qnap
- 1.3.6.1.4.1.24681.1.2.15 #qnap
- 1.3.6.1.4.1.24681.1.2.16 #qnap
- 1.3.6.1.4.1.24681.1.2.17 #qnap
- 1.3.6.1.4.1.24681.1.3 #qnap
- 1.3.6.1.4.1.24681.1.4 #qnap
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: ifDescr
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.31.1.1.1.1
- source_indexes: [hdIndex]
lookup: hdDescr
overrides:
ifType:
type: EnumAsInfo
version: 3
auth:
username: admin
security_level: authPriv
password: "{{ snmp_exporter_pass }}"
auth_protocol: SHA
priv_protocol: DES
priv_password: "{{ snmp_exporter_private }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment