alerting: also alert on reboots of snmp devices
This commit is contained in:
parent
f6ba9f5aa6
commit
69834a8d2b
|
@ -64,3 +64,12 @@ groups:
|
|||
annotations:
|
||||
summary: A switch port changed it's state {{ $value }}x time
|
||||
description: "For some reason a switch port changed it's state\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: SNMPNodeRebooted
|
||||
expr: (sysUpTime / 100) <= (60 * 60 * 2)
|
||||
for: 0m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: A snmp node rebooted in the last 2 hours (instance {{ $labels.instance }})
|
||||
description: "The uptime of a snmp node changed in the last two hours. VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
|
Reference in New Issue