Page 1 of 1

Adding hosts without notifications

Posted: Thu Jan 21, 2016 8:58 pm
by daq
Is there any way to add a new host and attach services to it, but only collect metrics without sending any notifications or running events when state changes for the host or services?

Basically we would like to collect metrics for hosts in testing environments, but only generate alerts for hosts in production environment without deploying separate Nagios instances for separate environments.

Thank you.

Re: Adding hosts without notifications

Posted: Fri Jan 22, 2016 10:10 am
by hsmith
There are multiple ways you could achieve your desired goal. Not assign alerts to it, not use a template that has alerting, not have a timeperiod on it.. As far as running events, you could turn the even handler off as well. You can find all of these options inside of the core configuration manager.

Re: Adding hosts without notifications

Posted: Fri Jan 22, 2016 12:57 pm
by daq
Right, but I'm specifically looking for the simplest solution. Lets say we currently have 100 hosts all configured the same way. All services use the same template and all hosts use the same template.

Do we need to create a whole new set of services and attach a template with notifications disabled to those?
Same with hosts?

Re: Adding hosts without notifications

Posted: Fri Jan 22, 2016 1:10 pm
by hsmith
In your case I would just clone the template(s), and add whatever new hosts/services to it that you wished. When you clone the template, it won't bring the services and hosts that were associated with the previous one over, just whatever new services/hosts you set up using that template. Is this making sense?

Re: Adding hosts without notifications

Posted: Mon Jan 25, 2016 2:04 pm
by daq
hsmith wrote:In your case I would just clone the template(s), and add whatever new hosts/services to it that you wished. When you clone the template, it won't bring the services and hosts that were associated with the previous one over, just whatever new services/hosts you set up using that template. Is this making sense?
Yeah, I was just hoping there is a simpler way to do it. I guess we'll have to duplicate all services with a template that has notifications disabled.

Thanks.

Re: Adding hosts without notifications

Posted: Mon Jan 25, 2016 5:36 pm
by bwallace
Were there any other questions, or may we lock this thread?

Re: Adding hosts without notifications

Posted: Mon Jan 25, 2016 7:00 pm
by daq
Feel free to lock it. Thank you.