Module: check_mk
Branch: master
Commit: a58db71ba9826a15af782869af9009e565f8f581
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a58db71ba9826a…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Thu Mar 7 18:26:48 2019 +0100
7065 FIX k8s_stats: fix crashes regarding timestamp parsing
The Kubernetes API provides timestamps for the k8s_stats checks
in the RFC3339Nano format with different timezones and a varying
number of trailing zeros in the seconds field. This lead to
a crash of the k8s_stats.network check. To resolve this issues
the timestamps are now converted to unix timestamps in the
special agent.
Change-Id: I2869540e2b6b73b0071379c307b4e2615f6235f4
---
.werks/7065 | 15 ++++++++
checks/k8s_stats | 7 +---
cmk/special_agents/agent_kubernetes.py | 11 +++++-
.../unit/checks/generictests/datasets/k8s_stats.py | 2 +-
.../special_agents/test_agent_kubernetes_nodes.py | 43 ++++++++++++++++++++++
5 files changed, 70 insertions(+), 8 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a58db71ba9…