summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorDylan Wang <goncc123rr@gmail.com>2018-10-24 17:43:27 +0800
committerCosta Tsaousis <costa@tsaousis.gr>2018-10-24 12:43:27 +0300
commit866170672aee2c6dbeed5f79caf18755d850c32c (patch)
treec5269c097f2446016460233a2eff0c63adb67e95 /health
parente5aca2581e137337f384dc5d48ae86593b808bd3 (diff)
Feat: detect NIC speed and alarm on each device for net traffic overflow (#4430)
* add chart local variable nic_speed_max and alarm for net traffic overflow * simplify code and respect with netdata host prefix * split sent/received traffic alarm * evaluate alarm only when nic_speed_max is set above 0
Diffstat (limited to 'health')
-rw-r--r--health/health.d/net.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/health/health.d/net.conf b/health/health.d/net.conf
index 015de79989..489016dd56 100644
--- a/health/health.d/net.conf
+++ b/health/health.d/net.conf
@@ -2,6 +2,39 @@
# you can disable an alarm notification by setting the 'to' line to: silent
# -----------------------------------------------------------------------------
+# net traffic overflow
+
+ template: 1m_received_traffic_overflow
+ on: net.net
+ os: linux
+ hosts: *
+ families: *
+ lookup: average -1m unaligned absolute of received
+ calc: ($nic_speed_max > 0) ? ($this * 100 / ($nic_speed_max * 1000)) : ( nan )
+ units: %
+ every: 10s
+ warn: $this > (($status >= $WARNING) ? (80) : (85))
+ crit: $this > (($status == $CRITICAL) ? (85) : (90))
+ delay: down 1m multiplier 1.5 max 1h
+ info: interface received bandwidth usage over net device speed max
+ to: sysadmin
+
+ template: 1m_sent_traffic_overflow
+ on: net.net
+ os: linux
+ hosts: *
+ families: *
+ lookup: average -1m unaligned absolute of sent
+ calc: ($nic_speed_max > 0) ? ($this * 100 / ($nic_speed_max * 1000)) : ( nan )
+ units: %
+ every: 10s
+ warn: $this > (($status >= $WARNING) ? (80) : (85))
+ crit: $this > (($status == $CRITICAL) ? (85) : (90))
+ delay: down 1m multiplier 1.5 max 1h
+ info: interface sent bandwidth usage over net device speed max
+ to: sysadmin
+
+# -----------------------------------------------------------------------------
# dropped packets
# check if an interface is dropping packets