Assignment of hosts to host groups by service summary

Hi, we are willing to create dynamic host groups which would work based on “Check_MK Agent” and “SNMP Info” outputs which normally has info about operating systems and wendors. But we can’t find a rule in checkmk which can do filtering based on service summary, it is not possible?

Hi @a.ahmadzadeh
not out of the box. But I think with a little delay you could use data2label from Checkmk Exchange to filter a your service view and then set labels (or tags with https://github.com/HeinleinSupport/check_mk_extensions/tree/cmk1.6/data2tag) and create host groups based on these tags or labels.

Gerd

2 Likes

Hi @a.ahmadzadeh
Another alternative is the labelpicker from Philipp Lemke.

Project website:
https://labelpicker.mk/

Github link:
https://github.com/automation-monitoring/labelpicker

There is also a video about this(little demo):
https://www.youtube.com/watch?v=aB1zPPW75mY

Kind regards
Sam

Hi Sam,

I thought the label picker has plugins that need to support different datasources and data2label I think uses any view of checkmk while the labelpicker uses the HW/SW inventory, but since @a.ahmadzadeh wants service status details (aka. plugin output) as a datasource, labelpicker might not work, but I could be wrong.

Gerd

Hi Gerd,

You are right.
But since @a.ahmadzadeh mentioned he would like to create the dynamic host groups based on info about operating systems and vendors which is typically stored in the HW/SW inventory, i think the labelpicker could be an alternative :grinning: .

Kind regards
Sam

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.