When deleting a host, also remove rules that are only for that host
Especially the ruleset "disabled services" accumulates a large number of rules when users are manually disabling services in the configuration.
When hosts are removed these rules are still there and increase the time to activate changes.
It would be nice when checkmk checks for such rules where only one hostname is in the conditions and removes them. Maybe similar to the situation when we remove tags from tag groups.
Comments: 6
-
12 Jan, '23
JPHWe've the same requirement for the host files to delete, see FR: Delete a host: delete all host files (rules) by using WEB API, GUI, shell or in general
3 -
12 Jan, '23
Jon DoeA corresponding message in the GUI that lists all rules that use the host name as a condition, as for example when deleting a contact or a host group, would already bring some relief and help to reduce the number of obsolete rules and old data.
4 -
05 Feb
Thomas MergedOver time, many rules accumulate. These are not deleted if you delete the corresponding object. An algorithm that searches for rules that are explicitly valid for this host when deleting objects would be desirable
1 -
23 Feb
Mohamed Saleh Admin MergedHi Thomas,
Thank you for posting your idea on the Ideas Portal.
We see a similar idea on the Portal,
https://ideas.checkmk.com/suggestions/354612/when-deleting-a-host-also-remove-rules-that-are-only-for-that-host
May we ask you take a look and let us know if it covers your use case? If that is the case, we would then merge your idea to that one so that the user votes and comments are consolidated under a single idea.
Looking forward to hearing back from you.
Warm Regards,
Your Checkmk Team -
26 Feb
Thomas MergedYes, that meets our requirements
Warm Regards,
Thomas -
28 Feb
Mohamed Saleh Admin"find and delete unused rules" (suggested by <Hidden> on 2024-02-05), including upvotes (2) and comments (2), was merged into this suggestion.