fixed imcomplete commit: network alarm thresholds show real value at badge and filter at conditional expressions; fixes #2529
Costa Tsaousis (ktsaou) committed
Jul 29, 2017 at 01:57 UTC
9006092913f99dda747ff406fdf86fe53c4f6876
1 file changed
+6
-6
conf.d/health.d/net.conf
+6
-6
@@ -32,11 +32,11 @@ template: inbound_packets_dropped_ratio
32
on: net.packets
33
families: *
34
lookup: sum -10m unaligned absolute of received
35
- calc: (($inbound_packets_dropped != nan AND $inbound_packets_dropped >= 5 AND $this >= 50) ? ($inbound_packets_dropped * 100 / $this) : (0))
35
+ calc: (($inbound_packets_dropped != nan AND $this > 0) ? ($inbound_packets_dropped * 100 / $this) : (0))
36
units: %
37
every: 1m
38
- warn: $this > 0.1
39
- crit: $this > 2
38
+ warn: (($inbound_packets_dropped >= 5 AND $this >= 50) ? ($this > 0.1) : (0))
39
+ crit: (($inbound_packets_dropped >= 5 AND $this >= 50) ? ($this > 2.0) : (0))
40
delay: down 1h multiplier 1.5 max 2h
41
info: the ratio of inbound dropped packets vs the total number of received packets of the network interface, during the last 10 minutes
42
to: sysadmin
@@ -45,11 +45,11 @@ template: outbound_packets_dropped_ratio
45
on: net.packets
46
families: *
47
lookup: sum -10m unaligned absolute of sent
48
- calc: (($outbound_packets_dropped != nan AND $outbound_packets_dropped >= 5 AND $this >= 50) ? ($outbound_packets_dropped * 100 / $this) : (0))
48
+ calc: (($outbound_packets_dropped != nan AND $this > 0) ? ($outbound_packets_dropped * 100 / $this) : (0))
49
units: %
50
every: 1m
51
- warn: $this > 0.1
52
- crit: $this > 2
51
+ warn: (($outbound_packets_dropped >= 5 AND $this >= 50) ? ($this > 0.1) : (0))
52
+ crit: (($outbound_packets_dropped >= 5 AND $this >= 50) ? ($this > 2.0) : (0))
53
delay: down 1h multiplier 1.5 max 2h
54
info: the ratio of outbound dropped packets vs the total number of sent packets of the network interface, during the last 10 minutes
55
to: sysadmin