Module: check_mk
Branch: master
Commit: 69ca55ff603c0007833113bcbef7035c7d76bfa2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=69ca55ff603c00…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Oct 24 11:37:37 2018 +0200
fortigate_ipsecvpn: Improved long output
Change-Id: Ie0da5348ff3c2c123d056eae945b4ced7cae0a83
---
checks/fortigate_ipsecvpn | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/checks/fortigate_ipsecvpn b/checks/fortigate_ipsecvpn
index 2be2bee..7c7e51f 100644
--- a/checks/fortigate_ipsecvpn
+++ b/checks/fortigate_ipsecvpn
@@ -72,8 +72,9 @@ def check_fortigate_ipsecvpn(item, params, info):
long_output = []
for title, tunnels in [
- ("Down", tunnels_down),
- ("Ignored", tunnels_ignored),
+ ("Down and not ignored", set(tunnels_down) - set(tunnels_ignored)),
+ ("Down", tunnels_down),
+ ("Ignored", tunnels_ignored),
]:
if tunnels:
long_output.append("%s:" % title)