This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository mum. See http://git.chorem.org/mum.git commit 75490f3a101a72a3d289f9a780c01346d5d412a8 Author: Alexis Guilbaud <guilbaud@codelutin.com> Date: Tue Feb 24 17:28:18 2015 +0100 result of monitoring can be shown on dashboard --- app/modules/detection_modules/unix/kernel_detection.py | 1 - app/modules/storage_modules/shelve_db.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/modules/detection_modules/unix/kernel_detection.py b/app/modules/detection_modules/unix/kernel_detection.py index 3298a21..037098a 100644 --- a/app/modules/detection_modules/unix/kernel_detection.py +++ b/app/modules/detection_modules/unix/kernel_detection.py @@ -5,7 +5,6 @@ class kernel_detection: def __init__(self, conn, db): self.conn = conn self.db = db - print __name__ def run_detection(self): cmd = "cat /proc/version" diff --git a/app/modules/storage_modules/shelve_db.py b/app/modules/storage_modules/shelve_db.py index 1a1ebea..5c78984 100644 --- a/app/modules/storage_modules/shelve_db.py +++ b/app/modules/storage_modules/shelve_db.py @@ -170,7 +170,7 @@ class shelve_db: info_host = {} info_host["addr"] = detected["addr"] info_host["name"] = detected["hostname"] - if "status" in self.db["hosts"][host]["status"]: + if "state" in self.db["hosts"][host]["status"]: info_host["status"] = self.db["hosts"][host]["status"]["state"] else: info_host["status"] = "" @@ -275,7 +275,7 @@ class shelve_db: :param val: the value observed """ self.open_db() - new_val = {"date": datetime.now(), "value" : val} + new_val = {"date": str(datetime.now()), "value" : val} try: if val >= self.db['hosts'][addr_host]['conf']['monitoring'][mod_name]['minor_limit']: new_val['state'] = 'warning' -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.