Module: check_mk
Branch: master
Commit: a3e5296351d38c1a1861db605e59bc69cf0828cd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a3e5296351d38c…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Mar 13 16:28:22 2017 +0100
handling odd plugin output...
Change-Id: I1e60dca56e90d9287a553c302cd6ec0d7ac60092
---
checks/hyperv_checkpoints | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/checks/hyperv_checkpoints b/checks/hyperv_checkpoints
index 52af648..9378e0a 100644
--- a/checks/hyperv_checkpoints
+++ b/checks/hyperv_checkpoints
@@ -38,9 +38,10 @@ def check_hyperv_checkpoints(item, params, info):
number_of_checkpoints = 0
for line in info:
- snapshot, age = line
- oldest = max(int(age), oldest)
- number_of_checkpoints += 1
+ if len(line) == 2:
+ snapshot, age = line
+ oldest = max(int(age), oldest)
+ number_of_checkpoints += 1
if number_of_checkpoints > 0:
state = 0