]> arthur.barton.de Git - netdata.git/commitdiff
added used_swap alarm; fixes #1235
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 11 Nov 2016 07:24:20 +0000 (09:24 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 11 Nov 2016 07:24:20 +0000 (09:24 +0200)
conf.d/health.d/swap.conf

index 0cfa888c4c14419b6301fb67af07ca4ca9194ab3..98ba9b52f2a077dd5efb7379987137859b210ceb 100644 (file)
@@ -12,7 +12,7 @@
     info: the amount of memory swapped in the last 30 minutes, as a percentage of the system RAM
       to: sysadmin
 
-   alarm: used_swap_space
+   alarm: ram_in_swap
       on: system.swap
     calc: $used * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
    units: % of RAM
    delay: up 0 down 15m multiplier 1.5 max 1h
     info: the swap memory used, as a percentage of the system RAM
       to: sysadmin
+
+   alarm: used_swap
+      on: system.swap
+    calc: $used * 100 / ( $used + $free )
+   units: %
+   every: 10s
+    warn: $this > (($status >= $WARNING)  ? (60) : (80))
+    crit: $this > (($status == $CRITICAL) ? (80) : (90))
+   delay: up 0 down 15m multiplier 1.5 max 1h
+    info: the percentage of swap memory used
+      to: sysadmin