Module: check_mk
Branch: master
Commit: 58855bc9866e3f464d249676e78908212326b29a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=58855bc9866e3f…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Tue Dec 3 10:25:52 2013 +0100
veeam_jobs: now more stable when stop time is missing from agent output
---
checks/veeam_jobs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/checks/veeam_jobs b/checks/veeam_jobs
index 4ed1698..30e1538 100644
--- a/checks/veeam_jobs
+++ b/checks/veeam_jobs
@@ -35,8 +35,10 @@ def check_veeam_jobs(item, params, info):
state = 0
elif line[2] =="Working":
state = 0
- line.pop(7)
- line.pop(6)
+ if len(line) == 8:
+ line.pop(7)
+ if len(line) == 7:
+ line.pop(6)
elif line[3] == "Failed":
state = 2
elif line[2] == "Stopped" and line[3] == "Warning":