From 43127877f17426cdd047ef1afd69898cffb12943 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Tue, 26 Mar 2024 13:55:08 +0100
Subject: [PATCH] netio: ignore docker and veth interfaces

---
 check_netio | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/check_netio b/check_netio
index 25f88fc..88fb012 100755
--- a/check_netio
+++ b/check_netio
@@ -12,20 +12,22 @@
 # 2023-09-22  v1.4  <axel.hahn@unibe.ch>      fix syntax error -eq: unary operator expected
 # 2024-01-10  v1.5  <axel.hahn@unibe.ch>      added regex filter for include and exclude
 # 2024-03-04  v1.6  <axel.hahn@unibe.ch>      remove Kubernetes interfaces
+# 2024-03-26  v1.7  <axel.hahn@unibe.ch>      ignore docker and veth interfaces
 # ======================================================================
 
 
 . $( dirname $0 )/inc_pluginfunctions
 
-export self_APPVERSION=1.6
+export self_APPVERSION=1.7
 
 # network data without non physical interfaces to be removed from /proc/net/dev
 # - lo      - local
 # - bond    - bonded interfaces
 # - ppp     - dialer connections
+# - docker  - Docker / Docker Swarm interfaces, e.g. docker0, docker_gwbridge
 # - cali    - Kubernetes interfaces
 # - flannel - layer 3 fabric for Kubernetes
-nonPhysicalInterfaces="(lo|bond.*|ppp.*|cali.*|flannel.*):"
+nonPhysicalInterfaces="(lo|bond.*|cali.*|docker.*|flannel.*|ppp.*|veth.*):"
 
 # ----------------------------------------------------------------------
 # FUNCTIONS
-- 
GitLab