From c090301a86df52845742102c9f361c0fc2a0057b Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 11 Sep 2016 22:07:23 +0300 Subject: [PATCH] added alarm when interfaces stop collected --- conf.d/health.d/net.conf | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/conf.d/health.d/net.conf b/conf.d/health.d/net.conf index 5047d259..b96677b2 100644 --- a/conf.d/health.d/net.conf +++ b/conf.d/health.d/net.conf @@ -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 -- 2.39.2