Only Retrieve rules that correspond to a specific folder

CMK version:2.1.0p14 raw edition

I use active checks to query various websites and have folders containing separate sites inside. Is there a way to call the active check and other rules the only correspond to the required folder rather than retrieving all of the rules in that ruleset?

Thanks in advance

Short answer - No. The only available option for the get rules is the ruleset name.
I would filter then the received data with the “extensions” - “folder” to get only rules from one specific folder.
But the initial query will return all rules.

If you go to WATO and Folder-Rules->Your check you should only see the rules I think in that WATO folder (We have not upgraded to 2x yet)

So the best thing to do to avoid printing other sites would just be to remove that print statement all together?

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.