We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Checkmk 1.6 has arrived! Learn more about it here!

Werk #7978: Service labels can now be discovered

ComponentCore & Setup
TitleService labels can now be discovered
Date2019-07-18 07:46:00
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0b4,1.7.0i1
LevelProminent Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

The discovery functions of Checkmk checks can now produce a collection of service labels together with the discovered services. This makes it possible for the check developer to mark the services of the discovered services which can then be grouped together in a flexible way.

The discovered service labels can be listed on the service discovery page of WATO by enabling them with the button "Show discovered labels".

These labels are attributes of the discovered service and will be handled exactly like them. They are discovered in one step and applied to the running configuration in the same way. The cluster handling is also equal.

How make my checks produce service labels?

Instead of producing a two element tuple of (item, parameters) to create a new service the discovery functions can now provide objects like this:

Service(
item="Interface 213",
parameters=None,
service_labels=ServiceLabels(
ServiceLabel(u"check_type", u"network_interface"),
ServiceLabel(u"interface_type", u"uplink"),
)
)

These objects can be returned / yielded like the tuples before. Both, the parameters and the service_labels are optional arguments.