From 50aabde320112609f7c9b3f8eb7822bcb39d41b3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 22 Oct 2023 02:28:04 -0400 Subject: [PATCH] Ensure bond count is compared with actual qty --- node-daemon/plugins/nics | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/plugins/nics b/node-daemon/plugins/nics index 1975bc05..a0eaabee 100644 --- a/node-daemon/plugins/nics +++ b/node-daemon/plugins/nics @@ -132,7 +132,7 @@ class MonitoringPluginScript(MonitoringPlugin): for slave_interface in slave_interfaces: if slave_interface[1] == 'up': slave_interface_up_count += 1 - if slave_interface_up_count < 2: + if slave_interface_up_count < len(slave_interfaces): messages.append(f"{dev} DEGRADED with {slave_interface_up_count} active slaves") health_delta += 10 else: