Module: check_mk
Branch: master
Commit: e9c95a99dc72b2a6120f79863c8a5270acb3ffdd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e9c95a99dc72b2…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Sep 5 13:08:36 2018 +0200
6487 FIX mssql_backup: Fixed parsing of backup date, time and type
Change-Id: I3fa4d61f17cc93cce3017139e9c062af838af72a
---
.werks/6487 | 10 ++++++++++
checks/mssql_backup | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/6487 b/.werks/6487
new file mode 100644
index 0000000..b880d84
--- /dev/null
+++ b/.werks/6487
@@ -0,0 +1,10 @@
+Title: mssql_backup: Fixed parsing of backup date, time and type
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1536145690
+Class: fix
+
+
diff --git a/checks/mssql_backup b/checks/mssql_backup
index 961dd66..cb4c7e8 100644
--- a/checks/mssql_backup
+++ b/checks/mssql_backup
@@ -94,8 +94,8 @@ def parse_mssql_backup(info):
timestamp = _parse_date_and_time(backup_date, backup_time)
elif len(line) == 4:
- inst, tablespace, backup_date, backup_time = line
- timestamp = _parse_date_and_time(backup_date, backup_time)
+ inst, tablespace, backup_date_time, backup_type = line
+ timestamp = _parse_date_and_time(*backup_date_time.split(" "))
elif len(line) == 3:
inst, tablespace, backup_timestamp = line