# calculate the rate the disk fills
# use as base, the available space change
-# during the last 10 minutes
+# during the last 30 minutes
# this is just a calculation - it has no alarm
# we will use it in the next template to find
template: disk_fill_rate
on: disk.space
- lookup: max -1s at -10m unaligned of avail
- calc: ($this - $avail) / (10 * 60)
- every: 30s
+ lookup: max -1s at -30m unaligned of avail
+ calc: ($this - $avail) / (30 * 60)
+ every: 15s
-# calculate the hours remaininig
+# calculate the hours remaining
# if the disk continues to fill
# in this rate
# raise an alarm if the disk is congested
# by calculating the average disk utilization
-# for the last 2 minutes
+# for the last 10 minutes
-template: 5min_disk_utilization
+template: 10min_disk_utilization
on: disk.util
- lookup: average -5m unaligned
+ lookup: average -10m unaligned
every: 1m
- green: 80
- red: 95
+ green: 90
+ red: 98
warn: $this > $green
crit: $this > $red
# raise an alarm if the disk backlog
# is above 1000ms (1s) per second
-# for 2 minutes
+# for 10 minutes
# (i.e. the disk cannot catch up)
-template: 5min_disk_backlog
+template: 10min_disk_backlog
on: disk.backlog
- lookup: average -5m every 1m unaligned
+ lookup: average -10m unaligned
+ every: 1m
green: 1000
red: 2000
warn: $this > $green
# check if entropy is too low
# the alarm is checked every 1 minute
-# and examines the last 2 minutes of data
+# and examines the last 30 minutes of data
- alarm: min_2min_entropy
+ alarm: min_30min_entropy
on: system.entropy
- lookup: min -2m unaligned
+ lookup: min -30m unaligned
every: 1m
warn: $this < 200
crit: $this < 100
# check if an interface is dropping packets
# the alarm is checked every 10 seconds
-# and examines the last minute of data
+# and examines the last 30 minutes of data
-template: 10min_packet_drops
+template: 30min_packet_drops
on: net.drops
- lookup: sum -10m unaligned absolute
+ lookup: sum -30m unaligned absolute
every: 10s
crit: $this > 0
-
-# check if a QoS class is dropping packets
-# the alarm is checked every 10 seconds
-# and examines the last minute of data
-
-template: 10min_qos_packet_drops
- on: tc.qos_dropped
- lookup: sum -10m unaligned absolute
- every: 30s
- warn: $this > 0
-
--- /dev/null
+
+# check if a QoS class is dropping packets
+# the alarm is checked every 10 seconds
+# and examines the last minute of data
+
+#template: 10min_qos_packet_drops
+# on: tc.qos_dropped
+# lookup: sum -10m unaligned absolute
+# every: 30s
+# warn: $this > 0
+