From c1b254ea026565074270828ec2b4c38ee5ff98f8 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Wed, 22 Sep 2021 12:15:30 +0200 Subject: [PATCH] check_apaches: Change PerfData labels --- check_apaches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_apaches.py b/check_apaches.py index 7089b7c..9c27875 100755 --- a/check_apaches.py +++ b/check_apaches.py @@ -72,7 +72,7 @@ class CheckApaches(MonitoringPlugin): def check_worker(self, target='busy', warn='', crit=''): - pd = {'label':'busy', 'unit':'', 'warn':warn, 'crit': crit, 'min':0} + pd = {'label':'worker_busy', 'unit':'', 'warn':warn, 'crit': crit, 'min':0} if target == 'busy': returncode = self.value_wc_to_returncode(self.apache_busy, warn, crit) @@ -82,7 +82,7 @@ class CheckApaches(MonitoringPlugin): returncode = self.value_wc_to_returncode(self.apache_idle, warn, crit) output = '%d idle workers' % self.apache_idle pd['value'] = self.apache_idle - pd['label'] = 'idle' + pd['label'] = 'worker_idle' return self.remember_check('worker', returncode, output, perfdata=[pd], target=target)