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.
Threshold mass editing
Re: Threshold mass editing
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.
Re: Threshold mass editing
Yes it is.mguthrie wrote:Is this for a common service across the hostgroup?
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 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.
Re: Threshold mass editing
Yeah, sorry about that.What do you mean by this? Is it remove duplicated services?
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.
Re: Threshold mass editing
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?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.
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
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.