REST-API: Add endpoint to create 'Custom host attributes'
When automating migrations from other monitoring systems or automating new deployments, some host information may be best placed as custom host attributes, i.e. coordinates. Adding an endpoint here helps in such cases.
Comments: 3
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
07 Jul, '25
Mohamed Saleh AdminHi Dennis,
In the API docs under Update a host endpoint, you can find CustomHostAttributes (object)
Would that be the endpoint you require? -
08 Jul, '25
DennisHi Mohamed,
negative. The endpoint you refer to is useful when the host attribute is already added. The endpoint for this initial step is missing.
Let me give you an example. Let's say you want to add coordinates to hosts, as described in https://wiki.lan.checkmk.net/display/CON/How-to+use+geo+coordinates+from+Checkmk+in+NagVis+maps . And you have some source giving you LAT and LONG for each host. Then it is nice to create a REST API script to get the coordinates into Checkmk. But the initial step, creating the required host attributes LONG and LAT by REST-API that can contain the actual values for each host, is currently missing and must be done manually. -
07 Oct, '25
NicolasI fully agree with this idea. When we have multiple environments which we want to keep consistent, manually defining/updating the custom attributes is a nightmare. Having the possibility to manage them with the REST-API would be of a great help.