Module: check_mk
Branch: master
Commit: 59f86fe5323f70a25668861e49d1ec9f102da46c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59f86fe5323f70…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 22 08:41:44 2014 +0200
FIX fritz.link: Not inventorizing "unconfigured" interfaces anymore
---
.werks/810 | 8 ++++++++
ChangeLog | 1 +
checks/fritz | 4 +++-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/810 b/.werks/810
new file mode 100644
index 0000000..efb1929
--- /dev/null
+++ b/.werks/810
@@ -0,0 +1,8 @@
+Title: fritz.link: Not inventorizing "unconfigured" interfaces anymore
+Level: 1
+Component: checks
+Version: 1.2.5i3
+Date: 1398148880
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 477451c..e7698e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,6 +45,7 @@
* 0606 FIX: apache_status: now also sends an accept header to make it work with
mod_security enables servers
* 0832 FIX: solaris_mem: fixed invalid calculation of total swap...
* 0152 FIX: windows_updates: Added Error Handling (Thanks to Stefan Kick)...
+ * 0810 FIX: fritz.link: Not inventorizing "unconfigured" interfaces
anymore
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/checks/fritz b/checks/fritz
index 4a43403..d6f7faa 100644
--- a/checks/fritz
+++ b/checks/fritz
@@ -37,13 +37,15 @@ def fritz_parse_info(info):
def inventory_fritz_conn(info):
data = fritz_parse_info(info)
if 'NewConnectionStatus' in data \
- and 'NewExternalIPAddress' in data:
+ and 'NewExternalIPAddress' in data \
+ and data.get('NewConnectionStatus') != 'Unconfigured':
return [(None, {})]
fritz_conn_states = {
'Connected': 0,
'Connecting': 1,
'Disconnected': 1,
+ 'Unconfigured': 1,
}
def check_fritz_conn(_unused, _no_params, info):