Threshold mass editing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Threshold mass editing

Post by ytlcomm »

Hi guys,

Is there any way to change threshold based on hostgroup? Currently, to change threshold we need to edit one by one using CCM.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Threshold mass editing

Post by mguthrie »

Is this for a common service across the hostgroup? If so, one thing you could do would be to assign a single service to the hostgroup instead of a single host. This will allow you to update the service settings for an entire hostgroup all at once. You would have to remote the duplicate services, but as far as maintenance goes it might be an option to consider in the long run.
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Re: Threshold mass editing

Post by ytlcomm »

mguthrie wrote:Is this for a common service across the hostgroup?
Yes it is.
mguthrie wrote:You would have to remote the duplicate services, but as far as maintenance goes it might be an option to consider in the long run.
What do you mean by this? Is it remove duplicated services? Once we create a host using wizard, it will create services related to that host. So your suggestion is to create one common services and assign to hostgroup and delete the existing services for that host. Am I right?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Threshold mass editing

Post by mguthrie »

What do you mean by this? Is it remove duplicated services?
Yeah, sorry about that.

Now that I think of it, there are actually 2 good ways to set this up for easy maintenance in the long run, I'd suggest reviewing them and see what is most preferable for you.

- Use the service->many hosts or the service->hostgroup method for assigning this service. All editing can be done for this single service, which will affect all hosts.

OR

- Move all check and threshold settings to a common template for all of these services, that way individual services can still override the template as needed. This part won't be quick the first time you do it, but it's a really nice solution for later on the next time you need to make changes.
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Re: Threshold mass editing

Post by ytlcomm »

mguthrie wrote:Move all check and threshold settings to a common template for all of these services, that way individual services can still override the template as needed. This part won't be quick the first time you do it, but it's a really nice solution for later on the next time you need to make changes.
I've edited some template before this and it get replaced by new updates? So if I'm going to do this again I should backup the template first. And editing templates will affect all services rather than services inside hostgroup? Am I right?

Thanks for your suggestions. I've got the idea how to do it already. It will become hard for the first time (to delete all existing services assigned to particular host) but it will get easier to edit something and sync everything later on.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Threshold mass editing

Post by scottwilkerson »

It is best to create NEW templates for your customizations. You can add them and apply a higher precedence than the default template and the new items will only override from the existing template what you add to them.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked