I'm wondering if there is an easy way to adjust contact_group for all services on a host? I am sure this has been answered many times on here, but I can't seem to find the answer.
Thanks!
contact_group for all services on a host
Re: contact_group for all services on a host
You could use a sed command.
Code: Select all
sed -i 's/oldcontact/newcontact/g' yourconfigname.cfgFormer Nagios Employee.
me.
me.
Re: contact_group for all services on a host
Thanks for your response, however I guess I wasn't very clear in my question. All of my hosts and services use one contact group, but for a new host and the services on it, i would like to use a different group. I can easily set the second contact group on the host itself, and all services that I have defined in that host's cfg, but there are many services that are monitored on this host but are defined by hostgroups, etc. so I'm wondering if there is a way to tell Nagios to use the secondary group for all services monitored on a particular host.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: contact_group for all services on a host
Perhaps creating escalations is the answer you are looking for, as an escalation will over-ride any host or service defined contacts/contactgroups.
https://assets.nagios.com/downloads/nag ... tions.html
https://assets.nagios.com/downloads/nag ... tions.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.