health/ping: use 'host' label in alerts info (#13955)
Ilya Mashchenko committed
Nov 7, 2022 at 23:47 UTC
dd7982cfd9632723a02998ff480551aed3dcdf9a
1 file changed
+4
-3
health/health.d/ping.conf
+4
-3
@@ -1,3 +1,4 @@
1
+# you can disable an alarm notification by setting the 'to' line to: silent
2
3
template: ping_host_reachable
4
families: *
@@ -11,7 +12,7 @@ component: Network
12
every: 10s
13
crit: $this == 0
14
delay: down 30m multiplier 1.5 max 2h
14
- info: reachability status of the network host
15
+ info: network host $label:host reachability status
16
to: sysadmin
17
18
template: ping_packet_loss
@@ -28,7 +29,7 @@ component: Network
29
warn: $this > $green
30
crit: $this > $red
31
delay: down 30m multiplier 1.5 max 2h
31
- info: packet loss percentage to the network host over the last 10 minutes
32
+ info: packet loss percentage to the network host $label:host over the last 10 minutes
33
to: sysadmin
34
35
template: ping_host_latency
@@ -45,5 +46,5 @@ component: Network
46
warn: $this > $green OR $max > $red
47
crit: $this > $red
48
delay: down 30m multiplier 1.5 max 2h
48
- info: average latency to the network host over the last 10 seconds
49
+ info: average latency to the network host $label:host over the last 10 seconds
50
to: sysadmin