Hi @MrD
- register.snmp_section(…)
- Collect the SNMP information
- May parse the snmp for simpler usage of the data later on with a parse_function
- register.check_plugin(…)
- Defines a function to discover the services.
- Define the output and raise (ok, warn, critical) events
This should be placed in local/lib/python3/cmk/base/plugins/agent_based/.py and is the necessary part.
- rulespec_registry.register(…)
- Define rules how to interpret the values. Mostly defining thresholds.
The should be places in local/share/check_mk/web/plugins/wato/.py and is only needed if the behaviour of the check needs to be configured with rules in wato.
In the the Phion Extension i have three checks but only two if them have the option to configure. The phion_service.py has no configuration as it’s only job is to translate the service state from snmp to checkmk. The other two checks have configurations in local/share/check_mk/web/plugins/wato/
Regards Marius