Adding hosts without notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
daq
Posts: 19
Joined: Thu Mar 17, 2011 5:33 pm

Adding hosts without notifications

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Adding hosts without notifications

Post 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.
Former Nagios Employee.
me.
daq
Posts: 19
Joined: Thu Mar 17, 2011 5:33 pm

Re: Adding hosts without notifications

Post 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?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Adding hosts without notifications

Post 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?
Former Nagios Employee.
me.
daq
Posts: 19
Joined: Thu Mar 17, 2011 5:33 pm

Re: Adding hosts without notifications

Post 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.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Adding hosts without notifications

Post by bwallace »

Were there any other questions, or may we lock this thread?
Be sure to check out the Knowledgebase for helpful articles and solutions!
daq
Posts: 19
Joined: Thu Mar 17, 2011 5:33 pm

Re: Adding hosts without notifications

Post by daq »

Feel free to lock it. Thank you.
Locked