Module: check_mk
Branch: master
Commit: 4db998dd63f9acf937ecc902d9656b241d1d08f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4db998dd63f9ac…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 21 11:34:43 2016 +0100
3299 FIX mssql_backup: Fixed exception in case of invalid agent output
---
.werks/3299 | 10 ++++++++++
ChangeLog | 1 +
checks/mssql_backup | 3 +++
3 files changed, 14 insertions(+)
diff --git a/.werks/3299 b/.werks/3299
new file mode 100644
index 0000000..b6d5848
--- /dev/null
+++ b/.werks/3299
@@ -0,0 +1,10 @@
+Title: mssql_backup: Fixed exception in case of invalid agent output
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1458556468
+
+
diff --git a/ChangeLog b/ChangeLog
index 9fd108c..939c836 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -92,6 +92,7 @@
* 3238 FIX: if.include: Fixed handling of old-skool traffic limits
* 3104 FIX: ipmi: fixed crash when using summarized output with nagios backend
* 3298 FIX: winperf_processor.util: Fixed exception when CPU counters were not
matched
+ * 3299 FIX: mssql_backup: Fixed exception in case of invalid agent output
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/mssql_backup b/checks/mssql_backup
index 7e14a63..47f865b 100644
--- a/checks/mssql_backup
+++ b/checks/mssql_backup
@@ -38,6 +38,9 @@ def inventory_mssql_backup(info):
def check_mssql_backup(item, params, info):
for line in info:
+ if len(line) not in [3, 4]:
+ continue
+
last_backup_date = False
try:
inst, tablespace, last_backup_date, last_backup_time = line