summaryrefslogtreecommitdiffstats
path: root/health/health.d/net.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--health/health.d/net.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/health/health.d/net.conf b/health/health.d/net.conf
index ea4954187..2dfe6bbaf 100644
--- a/health/health.d/net.conf
+++ b/health/health.d/net.conf
@@ -11,7 +11,7 @@
component: Network
os: *
hosts: *
- calc: ( $nic_speed_max > 0 ) ? ( $nic_speed_max) : ( nan )
+ calc: ( $nic_speed_max > 0 ) ? ( $nic_speed_max / 1000) : ( nan )
units: Mbit
every: 10s
info: Network interface ${label:device} current speed
@@ -24,7 +24,7 @@ component: Network
os: linux
hosts: *
lookup: average -1m unaligned absolute of received
- calc: ($interface_speed > 0) ? ($this * 100 / ($interface_speed)) : ( nan )
+ calc: ($interface_speed > 0) ? ($this * 100 / ($interface_speed * 1000)) : ( nan )
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (85) : (90))
@@ -41,7 +41,7 @@ component: Network
os: linux
hosts: *
lookup: average -1m unaligned absolute of sent
- calc: ($interface_speed > 0) ? ($this * 100 / ($interface_speed)) : ( nan )
+ calc: ($interface_speed > 0) ? ($this * 100 / ($interface_speed * 1000)) : ( nan )
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (85) : (90))