From 91ed593d62cf0b4e957cc5eead872327fe2c9558 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 13 Jan 2022 16:44:07 +0100 Subject: [PATCH 1/3] Check fixed: Critical threshold / value not transferred to perfdata, closes #189 --- CHANGELOG.md | 4 ++++ checks/v2/robotmk.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57cd68c0..ca3b901e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. 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 + +* Check: Fixed #189 - Critical threshold / value not transferred to perfdata + ## 1.2.7 - 2021-12-23 * Agent plugin: Fixed a bug in failed test re-execution when the output XML files diff --git a/checks/v2/robotmk.py b/checks/v2/robotmk.py index 7daadd2f..179710f5 100644 --- a/checks/v2/robotmk.py +++ b/checks/v2/robotmk.py @@ -693,7 +693,7 @@ def _eval_node_cmk_perfdata(self, check_params): float("%.2f" % self.elapsed_time), levels=( float("%.2f" % runtime_threshold[0]), - float("%.2f" % runtime_threshold[0]), + float("%.2f" % runtime_threshold[1]), ), ) else: From 4534e143856f1d55b28be54f12a5be762b331589 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 13 Jan 2022 16:44:28 +0100 Subject: [PATCH 2/3] CHANGELOG: v1.2.8 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca3b901e..ebf20f72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. 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 +## 1.2.8 - 2022-01-13 * Check: Fixed #189 - Critical threshold / value not transferred to perfdata From a75d80bb9041c7330fce8b8e489816026f072faf Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 13 Jan 2022 16:44:30 +0100 Subject: [PATCH 3/3] Version bump: v1.2.8 --- agents_plugins/robotmk.py | 2 +- bakery/v1/robotmk.py | 2 +- bakery/v2/robotmk.py | 2 +- checks/v1/robotmk | 2 +- checks/v2/robotmk.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/agents_plugins/robotmk.py b/agents_plugins/robotmk.py index 918b775f..d5ca8b65 100755 --- a/agents_plugins/robotmk.py +++ b/agents_plugins/robotmk.py @@ -49,7 +49,7 @@ local_tz = datetime.utcnow().astimezone().tzinfo -ROBOTMK_VERSION = 'v1.2.7' +ROBOTMK_VERSION = 'v1.2.8' class RMKConfig(): _PRESERVED_WORDS = [ diff --git a/bakery/v1/robotmk.py b/bakery/v1/robotmk.py index c0aa2dcd..3e91d02b 100644 --- a/bakery/v1/robotmk.py +++ b/bakery/v1/robotmk.py @@ -18,7 +18,7 @@ # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, # Boston, MA 02110-1301 USA. -ROBOTMK_VERSION = 'v1.2.7' +ROBOTMK_VERSION = 'v1.2.8' import cmk.utils.paths import os diff --git a/bakery/v2/robotmk.py b/bakery/v2/robotmk.py index ec6ed2d9..b9eba1d0 100644 --- a/bakery/v2/robotmk.py +++ b/bakery/v2/robotmk.py @@ -18,7 +18,7 @@ # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, # Boston, MA 02110-1301 USA. -ROBOTMK_VERSION = 'v1.2.7' +ROBOTMK_VERSION = 'v1.2.8' from typing import Iterable, TypedDict, List from pathlib import Path diff --git a/checks/v1/robotmk b/checks/v1/robotmk index 6f5143da..3d38865b 100644 --- a/checks/v1/robotmk +++ b/checks/v1/robotmk @@ -34,7 +34,7 @@ from collections import namedtuple iam = "robotmk" # DO NOT DELETE inventory_robotmk_rules = [] -ROBOTMK_VERSION = 'v1.2.7' +ROBOTMK_VERSION = 'v1.2.8' DEFAULT_SVC_PREFIX = 'Robot Framework E2E $SUITEID$SPACE-$SPACE' HTML_LOG_DIR = "%s/%s" % (os.environ['OMD_ROOT'], 'local/share/addons/robotmk') diff --git a/checks/v2/robotmk.py b/checks/v2/robotmk.py index 179710f5..b51eb482 100644 --- a/checks/v2/robotmk.py +++ b/checks/v2/robotmk.py @@ -35,7 +35,7 @@ from cmk.base.plugins.agent_based.agent_based_api.v1 import * from cmk.utils.exceptions import MKGeneralException -ROBOTMK_VERSION = 'v1.2.7' +ROBOTMK_VERSION = 'v1.2.8' DEFAULT_SVC_PREFIX = 'Robot Framework E2E $SUITEID$SPACE-$SPACE' HTML_LOG_DIR = "%s/%s" % (os.environ['OMD_ROOT'], 'local/share/addons/robotmk')