check_apaches: Change PerfData labels

This commit is contained in:
Sven Velt 2021-09-22 12:15:30 +02:00
parent c1c132199d
commit c1b254ea02

View file

@ -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)