Permalink
Browse files

added alarms about dropped packets ratio

  • Loading branch information...
1 parent 62ec8b4 commit 6a7d7c4b351db105df398d5c39dd8649f72b6da8 @ktsaou ktsaou committed Nov 12, 2016
Showing with 37 additions and 3 deletions.
  1. +37 −3 conf.d/health.d/net.conf
@@ -20,14 +20,48 @@ template: interface_last_collected_secs
# the alarm is checked every 1 minute
# and examines the last hour of data
-template: 1hour_packet_drops
+template: 1hour_packet_drops_inbound
on: net.drops
- lookup: sum -1h unaligned absolute
+ lookup: sum -1h unaligned absolute of inbound
+ units: packets
+ every: 1m
+ warn: $this > 0
+ delay: down 30m multiplier 1.5 max 1h
+ info: interface inbound dropped packets in the last hour
+ to: sysadmin
+
+template: 1hour_packet_drops_outbound
+ on: net.drops
+ lookup: sum -1h unaligned absolute of outbound
units: packets
every: 1m
warn: $this > 0
delay: down 30m multiplier 1.5 max 1h
- info: interface dropped packets in the last hour
+ info: interface outbound dropped packets in the last hour
+ to: sysadmin
+
+template: 1hour_packet_drops_ratio_inbound
+ on: net.packets
+ lookup: sum -1h unaligned absolute of received
+ calc: (($1hour_packet_drops_inbound != nan AND $this > 0) ? ($1hour_packet_drops_inbound * 100 / $this) : (0))
+ units: %
+ every: 1m
+ warn: $this > 0.5
+ crit: $this > 3
+ delay: down 30m multiplier 1.5 max 1h
+ info: the ratio of inbound dropped packets vs the total number of received packets of the network interface, during the last hour
+ to: sysadmin
+
+template: 1hour_packet_drops_ratio_outbound
+ on: net.packets
+ lookup: sum -1h unaligned absolute of sent
+ calc: (($1hour_packet_drops_outbound != nan AND $this > 0) ? ($1hour_packet_drops_outbound * 100 / $this) : (0))
+ units: %
+ every: 1m
+ warn: $this > 0.5
+ crit: $this > 3
+ delay: down 30m multiplier 1.5 max 1h
+ info: the ratio of outbound dropped packets vs the total number of sent packets of the network interface, during the last hour
to: sysadmin

0 comments on commit 6a7d7c4

Please sign in to comment.