softnet budget alarm is now a silent alarm
Costa Tsaousis (ktsaou) committed
Sep 22, 2016 at 14:23 UTC
64d9d09ab4ce6faabb754450b458d72a3539bc8d
2 files changed
+4
-1
conf.d/health.d/softnet.conf
+1
-1
@@ -18,4 +18,4 @@
18
warn: $this > ( ($status >= $WARNING) ? (0) : (5) )
19
delay: down 30m multiplier 1.5 max 1h
20
info: number of times ksoftirq ran out of sysctl net.core.netdev_budget or time slice, with work remaining (this can be a cause for dropped packets)
21
- to: sysadmin
21
+ to: silent
plugins.d/alarm-notify.sh
+3
@@ -159,6 +159,9 @@ declare -A arr_email=()
159
# so, here we find the unique ones
160
for x in ${recipient//,/ }
161
do
162
+ # the recipient 'silent' means, don't send a notification for this event
163
+ [ "${x}" = "silent" ] & continue
164
+
165
# email
166
a="${role_recipients_email[${recipient}]}"
167
[ -z "${a}" ] && a="${DEFAULT_RECIPIENT_EMAIL}"