Skip to content

Instantly share code, notes, and snippets.

@ceizner
Created October 17, 2017 21:30
Show Gist options
  • Save ceizner/e51f06f5b3fd7343cfaf57599357b9ea to your computer and use it in GitHub Desktop.
Save ceizner/e51f06f5b3fd7343cfaf57599357b9ea to your computer and use it in GitHub Desktop.
app_checks:
- name: snmp
pattern:
comm: python
arg: /opt/draios/bin/sdchecks
interval: 30
conf:
mibs_folder: /usr/share/mibs/ietf/
ip_address: 52.53.158.103
port: 161
community_string: public
# snmp_version: 2 # Only required for snmp v1, will default to 2
tags:
- vendor:EMC
- array:VNX5300
- location:front
metrics:
- OID: 1.3.6.1.2.1.25.2.3.1.5
name: hrStorageSize
- OID: 1.3.6.1.2.1.1.7
name: sysServices
- MIB: TCP-MIB
symbol: tcpActiveOpens
- MIB: UDP-MIB
symbol: udpInDatagrams
- MIB: IP-MIB
table: ipSystemStatsTable
symbols:
- ipSystemStatsInReceives
metric_tags:
- tag: ipversion
index: 1 # specify which index you want to read the tag value from
- MIB: IF-MIB
table: ifTable
symbols:
- ifInOctets
- ifOutOctets
metric_tags:
- tag: interface
column: ifDescr # specify which column to read the tag value from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment