A while ago I found this excellent thread started by @ralfs describing how to use a custom HTML widget to mute or unmute alerts for a group of items. I wanted to expand on this approach to let users unmanage and remanage an entire group with a single click. After a lot of grief and learning more than I wanted to about JavaScript, I put together some new custom HTML that you can add to a group's detail/summary page. It includes the original mute/unmute links and adds links to unmanage and remanage all members (well, nodes/volumes/interfaces/applications) of the group.
There are a couple of things to be aware of:
- The code only affects top-level members of the group. If a group contains sub-groups, they will not be muted/unmuted/managed/remanaged. You'll have to navigate to the sub-groups and handle them separately.
- The mute/unmute links will affect all Solarwinds entity types (except other Group or Container entities, as explained above). The unmanage/remanage links only act on the entity types listed below. This is because Solarwinds' API allows any entity type to be muted, but some entity types (e.g. Components) cannot be unmanaged.
- Nodes
- Interfaces
- Volumes
- Applications
- The links will mute/unmangae items immediately and indefinitely. I hope to incorporate the scheduling feature next. If you figure it out before I do, please update this thread!
To use this code, add a Custom HTML resource to your Solarwinds group page and paste in the code in the attachment. If you already have custom HTML on your page, check the id of the paragraph tags in lines 5 through 10 and make sure they don't conflict with anything else on your page. If you need to change the paragraph IDs, update the reference to paragraphs in lines 62, 68, 100, and 105 as well.
As with everything else you find on the Internet, remember to test in a non-production environment, use at your own risk, etc.
If you improve on my code (or just plain fix it), let me know!
[View:/cfs-file/__key/communityserver-discussions-components-files/47/Unmanage_5F00_or_5F00_mute_5F00_all_5F00_apps_5F00_and_5F00_nodes_5F00_in_5F00_a_5F00_group_5F00_single_5F00_button.html.txt:320:240]