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.
Adding hosts without notifications
Re: Adding hosts without notifications
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.
Former Nagios Employee.
me.
me.
Re: Adding hosts without notifications
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?
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
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?
Former Nagios Employee.
me.
me.
Re: Adding hosts without notifications
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.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?
Thanks.
Re: Adding hosts without notifications
Were there any other questions, or may we lock this thread?
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Adding hosts without notifications
Feel free to lock it. Thank you.