Exporting of all rulesets with thresholds

Hey guys,
I was trying to come up with automated solution for getting all rules that we have configured in one place. We are doing an overhaul of the rules in place and I’d like to know if there is an option how to get it as a whole and not requiring myself to click through all thresholds used.

Thanks Simon

All rules are in files called rules.mk below the directory $OMD_ROOT/etc/check_mk/conf.d/wato.

3 Likes

Hey @SimonPitel,

the other solution would be you use the Check_MK Web API and read in " get_rulesets_info", so you can see which rules are set and then use “get_ruleset” to read those.

Then you could create an output file with all current thresholds.

Sincerely Kruzgoth

3 Likes

Thanks guys, I’m gonna try both methods.

Simon

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