Custom Home Assistant integration to pull selected Checkmk metrics as sensor entities.
- Copy
custom_components/checkmk_metricsinto your Home Assistantconfig/custom_componentsdirectory. - Restart Home Assistant.
- Go to Settings -> Devices & Services -> Add Integration.
- Search for Checkmk Metrics.
The integration now uses a guided wizard:
- Enter API connection settings.
- Select a host from Checkmk.
- Select a service from the selected host.
- Select one or more discovered metrics (or add manual metric names).
- Optionally add more host/service combinations.
- Auth uses the Checkmk bearer format:
Authorization: Bearer <username> <secret>. - API target:
- If
base_urlalready ends with/check_mk/api/1.0, it is used directly. - Otherwise the integration builds:
<base_url>/<site>/check_mk/api/1.0.
- If
- Metric discovery uses multiple endpoint/response fallbacks because Checkmk payload shape differs across versions.