@cryptotaxi247 / netdata-1 / commits / d9c9892df

prevent division by zero in disk fill rate alarm ; more elastic default disk alarms

Costa Tsaousis (ktsaou) committed Nov 12, 2016 at 19:43 UTC d9c9892dfbde8f423f35dcf7d5400d25a1df1933
1 file changed +5 -5
conf.d/health.d/disks.conf
+5 -5
@@ -38,8 +38,8 @@ template: disk_space_usage
38 calc: $used * 100 / ($avail + $used)
39 units: %
40 every: 1m
41 - warn: $this > (($status >= $WARNING ) ? (70) : (80))
42 - crit: $this > (($status == $CRITICAL) ? (85) : (95))
41 + warn: $this > (($status >= $WARNING ) ? (80) : (90))
42 + crit: $this > (($status == $CRITICAL) ? (90) : (98))
43 delay: up 1m down 15m multiplier 1.5 max 1h
44 info: current disk space usage
45 to: sysadmin
@@ -49,8 +49,8 @@ template: disk_inode_usage
49 calc: $used * 100 / ($avail + $used)
50 units: %
51 every: 1m
52 - warn: $this > (($status >= $WARNING) ? (75) : (80))
53 - crit: $this > (($status == $CRITICAL) ? (90) : (95))
52 + warn: $this > (($status >= $WARNING) ? (80) : (90))
53 + crit: $this > (($status == $CRITICAL) ? (90) : (98))
54 delay: up 1m down 15m multiplier 1.5 max 1h
55 info: current disk inode usage
56 to: sysadmin
@@ -82,7 +82,7 @@ template: disk_fill_rate
82
83 template: out_of_disk_space_time
84 on: disk.space
85 - calc: $avail / $disk_fill_rate
85 + calc: ($disk_fill_rate > 0) ? ($avail / $disk_fill_rate) : (0)
86 units: hours
87 every: 10s
88 warn: $this > 0 and $this < (($status >= $WARNING) ? (48) : (8))