Hello everyone,
I am currently writing an SNMP check to display every DHCP lease incl. percentage usage on an Infoblox.
The check is a typical check in which each IP pool is listed as an item/service. It also works perfectly if I enter an OID in “detect” which is recognized when the hosts are discovered.
cmk -vvII --debug --detect-plugins=infoblox_dhcp_leases
finds all pools as a service.
cmk -v --check
shows all services correctly.
Now I don’t want to use the check on every infoblox, but create a rule if I want to see the check on an infoblox.
To do this, I have set the “detect” in the check to a value that no longer applies.
In the WATO Rule from:
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name="infoblox_dhcp_leases",
group=RulespecGroupCheckParametersNetworking,
to:
rulespec_registry.register(
ManualCheckParameterRulespec(
check_group_name="infoblox_dhcp_leases",
group=RulespecGroupCheckParametersNetworking,
Then the check is no longer recognized when it is discovered, but if I want to create a rule for it, I have to specify one item. I can’t/won’t do this because I don’t know the IP pools and don’t want to create a rule for each pool.
If I create the rule without a value, I get a service that crashes.
What do I have to consider in the check or in the Wato Rule so that I can only activate a check via a rule and it is not automatically recognized when I discover the host?
Thanks in advance.
Kind Regards,
Marc