Module: check_mk
Branch: master
Commit: 5cf1a754f89a1145bc2179ff4b34a601d9591e02
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5cf1a754f89a11…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Apr 24 09:21:30 2014 +0200
FIX mssql_counters: harded check agains odd agent output
---
.werks/155 | 9 +++++++++
ChangeLog | 1 +
checks/mssql_counters | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/155 b/.werks/155
new file mode 100644
index 0000000..f66b5ac
--- /dev/null
+++ b/.werks/155
@@ -0,0 +1,9 @@
+Title: mssql_counters: harded check agains odd agent output
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1398323787
+
+
diff --git a/ChangeLog b/ChangeLog
index 96b0db0..c839d17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -52,6 +52,7 @@
* 0832 FIX: solaris_mem: fixed invalid calculation of total swap...
* 0810 FIX: fritz.link: Not inventorizing "unconfigured" interfaces
anymore
* 0154 FIX: zfsget: Fixed inventory of filesystems
+ * 0155 FIX: mssql_counters: harded check agains odd agent output
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/checks/mssql_counters b/checks/mssql_counters
index ad672d4..30203e4 100644
--- a/checks/mssql_counters
+++ b/checks/mssql_counters
@@ -39,7 +39,7 @@
# MSSQL_SQLEXPRESS:Databases master Log_File(s)_Size_(KB)
def mssql_counters_item(line, add_counter_name):
- obj, counter, instance, value = line
+ obj, counter, instance = line[:3]
if obj.endswith(':Databases'):
obj = obj[:-10]