Need a way to update config based on current contact group
Posted: Fri Jul 16, 2021 12:01 pm
Hey all,
I am trying to come up with a way to update existing hosts and services to have a new contact group, and ideally remove the existing one, based on if they are tied to a certain contact group now.
For example, initially we created a contact group named GroupA, and used it as the contact group for some (but not all) of our hosts and groups that were tied to that group of people. We made GroupB and added the contacts we want to it, and don't want to use GroupA any more.
What would the easiest way be to find all hosts and services that are currently using GroupA as their contact group for notifications, and set them to use GroupB instead?
I am trying to come up with a way to update existing hosts and services to have a new contact group, and ideally remove the existing one, based on if they are tied to a certain contact group now.
For example, initially we created a contact group named GroupA, and used it as the contact group for some (but not all) of our hosts and groups that were tied to that group of people. We made GroupB and added the contacts we want to it, and don't want to use GroupA any more.
What would the easiest way be to find all hosts and services that are currently using GroupA as their contact group for notifications, and set them to use GroupB instead?