Difference between revisions of "SNMP"
From neil.tappsville.com
Jump to navigationJump to search (Created page with "Simple Network Management Protocol ===Statistics=== * Source: Manager (Poller) * Destination: Device * Port: 161 UDP ===Traps / Alarms=== * Source: Device * Destination:...") |
m |
||
Line 47: | Line 47: | ||
* RFC3416 - SNMPv2c | * RFC3416 - SNMPv2c | ||
* RFC3411-3415 - SNMPv3 | * RFC3411-3415 - SNMPv3 | ||
+ | |||
+ | |||
+ | == Grafana == | ||
+ | |||
+ | Because collectd doesnt us an inventory model - it doesnt appear to keep track or report on missed polls / values. | ||
+ | We have to figure this out at the Grafana layer - looking for nulls. Except this isnt easy, we instead have to count how many values we have. | ||
+ | |||
+ | Find how many null values there are (thus missed pollings) - by counting how many values we have | ||
+ | |||
+ | * Series - Choose a metric and using * for the hosts | ||
+ | * Functions <code> scale(0) offset(1) summarize(1h, sum, true) </code> |
Revision as of 07:19, 31 March 2020
Simple Network Management Protocol
Contents
Statistics
- Source: Manager (Poller)
- Destination: Device
- Port: 161 UDP
Traps / Alarms
- Source: Device
- Destination: Manager
- Port: 162 UDP
SNMP v3
Proviso
SNMP community string as used in the gui
&V3,[[Access Mode]]=Auth-MD5,[[Security Name]]=useridtext,[[Context Name]]=,[[Auth Passwd]]=authpwtext
SNMP Communtity string as used in the cli
snmpGet [[OID's]] sys Name.0 -S SNMPCOLLECTORNAME -P 3002 -r 3 -t 2 -c '&V3,[[AccessMode]]=Auth-MD5,[[Security Name]]=useridtext,[[Context Name]]=,[[Auth Passwd]]=authpwtext'
Net-SNMP
CLI command
./snmpget -v 3 -a MD5 -A 'authpwtext' -l authNoPriv -u useridtext 10.78.252.19 iso.3.6.1.2.1.1.5.0
Nice guide to comparing Juniper CLI to SNMP
- RFC1213 - SNMPv1
- RFC3416 - SNMPv2c
- RFC3411-3415 - SNMPv3
Grafana
Because collectd doesnt us an inventory model - it doesnt appear to keep track or report on missed polls / values. We have to figure this out at the Grafana layer - looking for nulls. Except this isnt easy, we instead have to count how many values we have.
Find how many null values there are (thus missed pollings) - by counting how many values we have
- Series - Choose a metric and using * for the hosts
- Functions
scale(0) offset(1) summarize(1h, sum, true)