From 40b997acffae64f852ca8935b7c5ea953c331067 Mon Sep 17 00:00:00 2001 From: Simon Meggle Date: Wed, 10 Mar 2021 12:53:09 +0100 Subject: [PATCH 1/3] Improved cache time usage explanation --- checks/robotmk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/checks/robotmk b/checks/robotmk index 4a44940b..441a912b 100644 --- a/checks/robotmk +++ b/checks/robotmk @@ -230,9 +230,10 @@ def check_robot(item, checkgroup_parameters, parsed): else: badge = '' rc = max(rc, 0) - first_line.append("%stotal runtime uses %.1f%% (%.1fs) of " % - (badge, pct_runtime_usage, runner_runtime) + - "%s (%ds)" % (maxruntime_str, maxruntime)) + first_line.append( + "%slast runner execution used %.1f%% (%.1fs) of " % + (badge, pct_runtime_usage, runner_runtime) + "%s (%ds)" % + (maxruntime_str, maxruntime)) perfdata_list.append(( 'runner_runtime', runner_runtime, runner_runtime_warn_s, From 6b94745b7a5db54d6b5b26d6e70c3a1bfa47444e Mon Sep 17 00:00:00 2001 From: Simon Meggle Date: Wed, 10 Mar 2021 12:55:29 +0100 Subject: [PATCH 2/3] Version bump: v1.0.0-beta --- agents/plugins/robotmk | 12 ++++++------ checks/robotmk | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/agents/plugins/robotmk b/agents/plugins/robotmk index 8b0136a4..bc36edbf 100644 --- a/agents/plugins/robotmk +++ b/agents/plugins/robotmk @@ -43,7 +43,7 @@ import platform import xml.etree.ElementTree as ET local_tz = datetime.utcnow().astimezone().tzinfo -ROBOTMK_VERSION = "v0.2.0" +ROBOTMK_VERSION = "v1.0.0-beta" class RMKConfig(): @@ -951,19 +951,19 @@ class RMKCtrl(RMKState, Robotmk): if not bool(state): error_text = "Suite statefile not found - (seems like the suite did never run)" self.logwarn(error_text) - + state.update({ 'id': suite.id, 'status': 'fatal', 'error': error_text - }) + }) else: - if state.get('rc',0) >= 252: + if state.get('rc', 0) >= 252: state.update({ 'status': 'fatal', 'error': 'Robot RC was >= 252. This is a fatal error. Robotmk got no XML/HTML to process. You should execute and test the suite manually.' - }) - else: + }) + else: state.update({'status': 'nonfatal'}) for k in self.keys_to_encode: diff --git a/checks/robotmk b/checks/robotmk index 441a912b..83155bc6 100644 --- a/checks/robotmk +++ b/checks/robotmk @@ -51,7 +51,7 @@ except: utc = pytz.utc -ROBOTMK_VERSION = "v0.2.0" +ROBOTMK_VERSION = "v1.0.0-beta" DEFAULT_SVC_PREFIX = 'Robot Framework E2E $SUITEID$SPACE-$SPACE' From 675274b2e8bffb351952959db939a80b965ae5ff Mon Sep 17 00:00:00 2001 From: Simon Meggle Date: Thu, 11 Mar 2021 16:49:17 +0100 Subject: [PATCH 3/3] CHANGELOG --- CHANGELOG.md | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7aaf8e7d..f1f51bf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + ## Unreleased ### Added -## [v0.2.0-beta - 2021-03-08] +### Changed + +### Fixed + +### Removed + +### Deprecated + + + +## [v1.0.0-beta - 2021-03-11] + +WARNING: This first major release is 100% incompatible with former versions. +Make sure to export all WATO rules because this version is not able to read the +old data structures. - Added WATO option to override the Robotmk service name (#98) - Separate Logfiles @@ -19,17 +34,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Prefix formatting - Plugin: Added daily log Robotmk file rotation (#88) - New Robotmk Service: Perfometer Thresholds Graphs -- Controller: responsible for reading the spoolfiles and producing output; this eliminates - the checkmk error *missing agent section 'robotmk'* if the plugin had a problem. -- reponsible to monitor the freshness of spoolfiles. The whole "async" mechanism - is decoupled form checkmk; this allows to control exactly when a spoolfile is - considered to be stale and what to do in this case. In addition, this eases - debugging. -- The plugin saves its state with statefiles in tmp; the controller mode reads - them and sources the XML/HTTP files. +- splitted Robotmk plugin into controller/runner - The data transmission from client to server is done with a JSON container - structure; it provides fields for XML/HTTP content which is compressed by - default. + structure +- HTML log transport to checkmk server + ## [v0.1.9 - 2021-01-16]