Module: check_mk
Branch: master
Commit: 0e89df4edc3a477c00c65c0787dfb17cad98e7fa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0e89df4edc3a47…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 3 09:22:57 2013 +0100
FIX: mssql_backup: Fixed wrong calculation of backup age in seconds
---
ChangeLog | 1 +
checks/mssql_backup | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index cc6312e..7125342 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -41,6 +41,7 @@
* FIX: userdb/ldap.py: fixed invalid call site.getsitepackages() for python 2.6
* FIX: zpool_status: fixed crash when spare devices were available
* FIX: hr_fs: handle negative values in order to larger disks (thanks to Christof
Musik)
+ * FIX: mssql_backup: Fixed wrong calculation of backup age in seconds
Multisite:
diff --git a/checks/mssql_backup b/checks/mssql_backup
index 603ebcf..b55d9ce 100644
--- a/checks/mssql_backup
+++ b/checks/mssql_backup
@@ -43,7 +43,7 @@ def check_mssql_backup(item, params, info):
dt = datetime.datetime(*time.strptime(last_backup_date + ' ' +
last_backup_time, '%Y-%m-%d %H:%M:%S')[0:5])
state = 0
- sec_ago = (datetime.datetime.now() - dt).seconds
+ sec_ago = (datetime.datetime.now() - dt).total_seconds()
if params is not None:
if sec_ago >= params[1]: