]> arthur.barton.de Git - netdata.git/blobdiff - conf.d/health.d/net.conf
added alarm when interfaces stop collected
[netdata.git] / conf.d / health.d / net.conf
index 5047d25978ac9271415670649265cad045998149..b96677b25324f27d777683af7c0d0dbc121158ef 100644 (file)
@@ -1,6 +1,21 @@
+# -----------------------------------------------------------------------------
+# make sure we collect values for each interface
+
+template: interface_last_collected_secs
+      on: net.net
+    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
+      to: sysadmin
+
+
+# -----------------------------------------------------------------------------
 
 # check if an interface is dropping packets
-# the alarm is checked every 10 seconds
+# the alarm is checked every 1 minute
 # and examines the last hour of data
 
 template: 1hour_packet_drops
@@ -13,9 +28,11 @@ template: 1hour_packet_drops
       to: sysadmin
 
 
+# -----------------------------------------------------------------------------
+
 # check if an interface is having FIFO
 # buffer errors
-# the alarm is checked every 10 seconds
+# the alarm is checked every 1 minute
 # and examines the last hour of data
 
 template: 1hour_fifo_errors