Skip to content

Instantly share code, notes, and snippets.

@pmoranga
Created May 25, 2020 07:42
Show Gist options
  • Save pmoranga/890f511986f7cc6a3354bd4a1fc4b2a1 to your computer and use it in GitHub Desktop.
Save pmoranga/890f511986f7cc6a3354bd4a1fc4b2a1 to your computer and use it in GitHub Desktop.
Datadog SNMP configuration to collect Synology statistics.
init_config:
mibs_folder: /mibs
profiles:
generic:
definition_file: _generic-host-resources.yaml
instances:
- ip_address: $REPLACE_WITH_SYNOLOGY_IP_ADDRESS
community_string: public
snmp_version: 2
timeout: 5
tags:
- datacenter:home
metrics:
- OID: .1.3.6.1.4.1.2021.11.9.0
name: ssCpuUser
- OID: .1.3.6.1.4.1.2021.11.10.0
name: ssCpuSystem
- OID: .1.3.6.1.4.1.2021.11.11.0
name: laCpuIdle
- OID: .1.3.6.1.4.1.2021.10.1.5.1
name: laLoad.1
- OID: .1.3.6.1.4.1.6574.1.2.0
name: cpuTemp
- OID: .1.3.6.1.2.1.1.3.0
name: uptime
- OID: .1.3.6.1.4.1.2021.4.3.0
name: swapTotal
- OID: .1.3.6.1.4.1.2021.4.4.0
name: swapFree
- OID: .1.3.6.1.4.1.2021.4.5.0
name: memoryTotal
- OID: .1.3.6.1.4.1.2021.4.6.0
name: memoryUsed
- OID: .1.3.6.1.4.1.2021.4.11.0
name: memoryFree
- OID: .1.3.6.1.4.1.2021.4.15.0
name: memoryCached
- MIB: IF-MIB
table: ifTable
symbols:
- ifInOctets
- ifOutOctets
metric_tags:
- tag: interface
column: ifDescr
# Reference https://github.com/DataDog/integrations-core/blob/6facb27ae8cf83fa009dfcabaf84142c5e2b11c3/snmp/datadog_checks/snmp/data/profiles/isilon.yaml#L67
- MIB: SYNOLOGY-DISK-MIB
table:
name: diskTable
OID: 1.3.6.1.4.1.6574.2.1
symbols:
- OID: 1.3.6.1.4.1.6574.2.1.1.6
name: diskTemp
- OID: 1.3.6.1.4.1.6574.2.1.1.5
name: diskStatus
metric_tags:
- column:
OID: 1.3.6.1.4.1.6574.2.1.1.2
name: diskBay
tag: disk_bay
- column:
OID: 1.3.6.1.4.1.6574.2.1.1.3
name: diskModel
tag: disk_model
- MIB: SYNOLOGY-DISK-MIB
table:
name: smartTable
OID: 1.3.6.1.4.1.6574.5.1
symbols:
- OID: 1.3.6.1.4.1.6574.5.1.1.5
name: smart_current
- OID: 1.3.6.1.4.1.6574.5.1.1.6
name: smart_worst
- OID: 1.3.6.1.4.1.6574.5.1.1.6
name: smart_AttThreshold
metric_tags:
- column:
OID: 1.3.6.1.4.1.6574.5.1.1.2
name: diskDevice
tag: disk_device
- column:
OID: 1.3.6.1.4.1.6574.5.1.1.3
name: metricName
tag: AttrName
metric_tags:
- OID: .1.3.6.1.2.1.1.5.0
tag: snmp_host
symbol: sysName
- OID: .1.3.6.1.2.1.1.5.0
tag: host
symbol: sysName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment