Module: check_mk
Branch: master
Commit: da0ec72f0cb658064e3832c27fc39bf74eaf49a5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=da0ec72f0cb658…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jun 19 10:05:10 2013 +0200
job check: better handling of unexpected agent output
---
ChangeLog | 1 +
checks/job | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index e5498b3..efa5c6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,7 @@
* fileinfo: no longer inventorize missing files(reported by windows agent)
* cluster hosts: removed agent version output from Check_MK service (this
was misleading for different agent versions on multiple nodes)
+ * job check: better handling of unexpected agent output
Multisite:
* User accounts can now be locked after a specified amount of auth
diff --git a/checks/job b/checks/job
index 1082dbc..3a75bff 100644
--- a/checks/job
+++ b/checks/job
@@ -70,7 +70,7 @@ def job_parse(item, info):
elif found and line[0] == '==>':
break # Stop at next section
- elif found:
+ elif found and len(line) == 2:
key, val = line
# Convert several keys/values
if key == 'real_time':