CMK version: 2.4p12
OS version: Debian 12
Error message: N/A
Output of “cmk --debug -vvn hostname”: N/A (general)
I was previously running 2.1, and then 2.3, and I had a check plugin outputting 3 metrics:
def check_rack_power(item, params, section):
for name, data in section.items():
...
yield Metric('power', data['power'])
yield Metric('current', data['current'])
yield Metric('voltage', data['voltage'])
...
check_plugin_rack_power = CheckPlugin(
name="rack_power",
service_name="Rack Power %s",
check_ruleset_name='rack_power',
discovery_function=discover_rack_power,
check_function=check_rack_power,
check_default_parameters=RACK_POWER_DEFAULT_LEVELS,
)
The perfometer for this service showed the power metric by default.
Since upgrading to 2.4, it now shows the voltage metric instead, with no obvious way to change it. I’ve tried mucking about with custom perfometers, metrics, etc., changing the order of the yield statements, but nothing changes it.
How can this be set in the newer version to restore the previous behaviour?