This code picks up on my post here and this excellent thread started by ralfs about using custom HTML to mute or unmute alerts for a group of items. This version lets you schedule the start and end times and it puts the links in a nifty dropdown that mimics the management tools for Nodes and Apps. It includes the original immediate mute/unmute/unmanage/remanage links, too.
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
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 159, 165, 170, 176, and 181 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_w_5F00_scheduler.v3.html.txt:320:240]