alerting: also alert on reboots of snmp devices

This commit is contained in:
Gregor Michels 2022-12-22 16:32:56 +01:00
parent f6ba9f5aa6
commit 69834a8d2b
1 changed files with 9 additions and 0 deletions

View File

@ -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 }}"