Page 1 of 1

Best way to apply add extra contacts to some hosts

Posted: Tue Aug 20, 2024 11:07 am
by sgomeztd
Hi,

All my host have assigned one of two host templates called linux or windows based on the OS of each host that I latter use to configure the default services for each host. Those two templates both inherit the default generic-host template where I configured the notifications and contact group settings as until now I wanted to send all the notification to the same people for all hosts.

Now I have been requested that for some hosts, notifications need to be send to some extra contacts and I'm struggling to find the best way to apply this trough templates/inheritance.

I tried to create a new host_template that only contains a new contact group on its configuration as I was hopping that adding this new template to a hosts, will merge the contacts from this new template and the generic-template but I realized that the only the contacts on the generic-hosts are notified.

As its not possible either to handle notifications with hostgroups, is there some other way besides adding this new contact to all hosts ? I can be done relatively quickly using the bulk modification tool but I prefer using templates and inheritance as that give me more flexibility in the future.

Re: Best way to apply add extra contacts to some hosts

Posted: Tue Aug 20, 2024 2:06 pm
by bbahn
Hello @sgomeztd,

It sounds like what you want to use is to create a new contact group that includes your original contact group in addition to some new contacts.

Here are some more resources to learn more about contacts and contact groups:
https://www.youtube.com/watch?v=c0iKid2NGQ8
https://assets.nagios.com/downloads/nag ... ntacts.pdf
https://support.nagios.com/kb/article/n ... s-507.html

Re: Best way to apply add extra contacts to some hosts

Posted: Wed Aug 21, 2024 2:33 am
by sgomeztd
bbahn wrote: Tue Aug 20, 2024 2:06 pm It sounds like what you want to use is to create a new contact group that includes your original contact group in addition to some new contacts.
I'm afraid that's not the case as I only need the new contact to be notified for certain hosts, not all of them