is not defined" in bulk inventory
Message-ID: <54ad2e77.beZbQeoqCTaNTXv4%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 32c07451489e71e645679ac2a0f8d2200d906953
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=32c07451489e71…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 7 14:02:06 2015 +0100
#1832 FIX Fix "global name 'splitted' is not defined" in bulk inventory
This happened in case of an unimplemented check.
---
.werks/1832 | 10 ++++++++++
ChangeLog | 1 +
modules/check_mk.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1832 b/.werks/1832
new file mode 100644
index 0000000..58a0488
--- /dev/null
+++ b/.werks/1832
@@ -0,0 +1,10 @@
+Title: Fix "global name 'splitted' is not defined" in bulk inventory
+Level: 1
+Component: core
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1420635662
+
+This happened in case of an unimplemented check.
diff --git a/ChangeLog b/ChangeLog
index 1f7f9fa..e984ca9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
* 1791 FIX: Fix problem where many bogus RRD files for Check_MK service would be
created...
* 1792 FIX: Fix path to special agents in case of manual installation
* 1797 FIX: Fix incomplete configuration during checking when using CMC...
+ * 1832 FIX: Fix "global name 'splitted' is not defined" in bulk
inventory...
Checks & Agents:
* 1665 agent_netapp: New special agent for NetApp monitoring via Web-API...
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 8d577db..875a1ef 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3081,7 +3081,7 @@ def remove_autochecks_of(hostname, checktypes = None): # None = all
else:
removed += 1
if ct not in check_info:
- sys.stderr.write('Removing unimplemented check %s.\n' %
splitted[3])
+ sys.stderr.write('Removing unimplemented check %s.\n' % ct)
if len(kept_lines) == 0:
if opt_verbose: