]> arthur.barton.de Git - netdata.git/commitdiff
added inodes alarm
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 11 Sep 2016 19:06:52 +0000 (22:06 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 11 Sep 2016 19:06:52 +0000 (22:06 +0300)
conf.d/health.d/disks.conf

index ddd48d7c814acb8c871f136ed45db1f1139c2c1c..3f202fc10c5b78c8ca284b7b545a0411ac312cbe 100644 (file)
@@ -1,3 +1,29 @@
+# -----------------------------------------------------------------------------
+# make sure we collect values for each disk
+
+# for mount points
+template: disk_space_last_collected_secs
+      on: disk.space
+    calc: $now - $last_collected_t
+   every: 10s
+    warn: $this > ( 5 * $update_every)
+    crit: $this > (60 * $update_every)
+   units: seconds ago
+    info: number of seconds since the last successful data collection of the mount point
+      to: sysadmin
+
+# for block devices
+template: disk_last_collected_secs
+      on: disk.io
+    calc: $now - $last_collected_t
+   every: 10s
+    warn: $this > ( 5 * $update_every)
+    crit: $this > (60 * $update_every)
+   units: seconds ago
+    info: number of seconds since the last successful data collection of the block device
+      to: sysadmin
+
+
 # -----------------------------------------------------------------------------
 # low disk space
 
@@ -15,6 +41,16 @@ template: disk_space_usage
     info: current disk space usage
       to: sysadmin
 
+template: disk_inode_usage
+      on: disk.inodes
+    calc: $used * 100 / ($avail + $used)
+   every: 1m
+    warn: $this > 80
+    crit: $this > 95
+   units: %
+    info: current disk inode usage
+      to: sysadmin
+
 
 # -----------------------------------------------------------------------------
 # disk fill rate
@@ -80,8 +116,8 @@ template: 10min_disk_backlog
       on: disk.backlog
   lookup: average -10m unaligned
    every: 1m
-   green: 1000
-     red: 2000
+   green: 2000
+     red: 5000
     warn: $this > $green
     crit: $this > $red
    units: ms