Hi,
I wrote an plugin to enumerate unifi devices per unifi-api.
Everything is looking good even with interfaces over piggyback.
When I dont use register.check_plugin and instead use register.agent_section with parsed_section_name=“interfaces” then all interfaces show up with correct Metric translation and dual in/out graphs ans performeter.
if I change in the same way as the vsphere plugin does.
The problem with your own check_plugin is that the graphing system don’t know how the graphing should be drawn. You need to define the graphing also beside the check plugin.
One quick step would be to define for your check an translation of the performance data.
that was what i was looking for and as i found fritz and vsphere were allready in translation.py the magic why they behave different was solved.
i ended up using
from cmk.gui.plugins.metrics import translation
check_metrics[“check_mk-unifi_network_ports_if”] = translation.if_translation
as i also inherited the unify_interface from interface.