Page 1 of 1

Add contact group to all services in a specific host group

Posted: Wed Sep 30, 2020 12:08 pm
by brucej543
Nagios XI 5.6.14. I need to add a contact group to all the hosts and the services for those hosts that are in a specific host group. There are over 7,500 services that need the contact group added. Using the bulk modification tool, did the add contact group to host group but it only changed the hosts and not the services for the hosts.
There are no service groups defined that can be used.
How do I make a bulk change or do I need to manually select all 7,500+ services for the contact group to be added?
I am working an a short timeline to accomplish this task.

Re: Add contact group to all services in a specific host gro

Posted: Thu Oct 01, 2020 2:28 pm
by ssax
Unfortunately, the functionality doesn't currently exist to do what you're trying to do in bulk, they would need to be in a servicegroup for the bulk mods tool to work. I have submitted a feature request for this on your behalf with a link back to this thread:

FR: XI - Bulk Modifications Tool - Add option to add/remove a contact from all services in a hostgroup (or option to also add it to all the child services of the hosts when choosing by hostgroup)

Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

My recommendation would be for you to create a servicegroup and add all those services to a servicegroup you want to change and use the bulk modifications tool against the servicegroup, there isn't any other way to accomplish it at this point given the existing functionality.