Check the count of service checks on a host depending on its name and/or tagging

Hi list
i’d need some check that, according to host name an/or host tags, checks the count of service checks on a host and returns a warn if the count does not match a specific number.
Reason: our setup does a sync out of our asset management every night and classifies every host with a certain amount of tags. Depending on these, rules are applied for notification, thresholeds, enabled/disabled checks and services and so on.
From time to time i find hosts where the tagging is wrong and thus the count of service checks does not match (i.e. some are missing)
As of now the way i do it is do a regex over my inventory and export it as CSV.

BR Thomas

Write an active check that queries the livestatus API on the local monitoring core.

https://checkmk.com/cms_livestatus.html

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.