Module: check_mk
Branch: master
Commit: fe851fbf81075d69ff0d9dd22f96342c89d36406
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe851fbf81075d…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Dec 15 14:33:42 2014 +0100
#1204 FIX veeam_client: Not longer throwing an error in case of currenlty running backup
---
.werks/1204 | 10 ++++++++++
ChangeLog | 1 +
checks/veeam_client | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/1204 b/.werks/1204
new file mode 100644
index 0000000..c39d540
--- /dev/null
+++ b/.werks/1204
@@ -0,0 +1,10 @@
+Title: veeam_client: Not longer throwing an error in case of currenlty running backup
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418650305
+
+
diff --git a/ChangeLog b/ChangeLog
index b743f34..43c6fb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
* 1778 FIX: cisco_secure: do not warn for port where port security cannot be enabled
* 1764 FIX: mk_sap: Fixed exception when saving status file
* 1663 FIX: winperf_if: fixed incorrect enumeration of interface index...
+ * 1204 FIX: veeam_client: Not longer throwing an error in case of currenlty running
backup
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/veeam_client b/checks/veeam_client
index 489a76d..e84fd8f 100644
--- a/checks/veeam_client
+++ b/checks/veeam_client
@@ -105,7 +105,8 @@ def check_veeam_client(item, params, parsed):
if "StopTime" not in data:
state = 2
infotexts.append("No complete Backup(!!)")
- else:
+ # If the Backup currently is running, the stop time is strange.
+ elif data['StopTime'] != "01.01.1900 00:00:00":
stop_time = time.mktime(time.strptime( data['StopTime'], "%d.%m.%Y
%H:%M:%S"))
now = time.time()
age = now - stop_time