Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: aa43a10e14be10c4468671a6eabb40ff008db899
https://github.com/tribe29/checkmk/commit/aa43a10e14be10c4468671a6eabb40ff0…
Author: Lisa Pichler <lisa.pichler(a)tribe29.com>
Date: 2021-05-14 (Fri, 14 May 2021)
Changed paths:
A .werks/12684
M cmk/special_agents/agent_kubernetes.py
M tests/unit/cmk/special_agents/test_agent_kubernetes_nodes.py
Log Message:
-----------
12684 FIX agent_kubernetes: inaccurate timestamp conversion
Seen while working on CMK-7644
time.mktime is not the correct function to use to convert timestamp
strings to seconds since epoch, because it always assumes the input to
be in local time. This is even though the datetime object is time zone
aware. See:
https://docs.python.domainunion.de/3/library/time.html#time.mktime
This lead to wrong timestamps being calculated if the remote server was
set to a different time zone than the localhost.
Also, the current time zone of the localhost is irrelevant for
calculating timestamps from a remote server.
Change-Id: I6ecc86bacef0c6ee02c784f8382087113a926d00
Commit: 92056496f04e9d8838f9e1ad0d243e71b2159f76
https://github.com/tribe29/checkmk/commit/92056496f04e9d8838f9e1ad0d243e71b…
Author: Lisa Pichler <lisa.pichler(a)tribe29.com>
Date: 2021-05-14 (Fri, 14 May 2021)
Changed paths:
M cmk/special_agents/agent_kubernetes.py
Log Message:
-----------
agent_kubernetes: improved Nodes stats initialisation
CMK-7644
Change-Id: Iaf6096bc86f8f9204bd8670ad5d1d5002bca5169
Compare:
https://github.com/tribe29/checkmk/compare/56df253039fc...92056496f04e