Page 1 of 1

Same check with different critical threshold

Posted: Tue Sep 22, 2015 10:02 am
by seaannn
How would I go about using the same service check with multiple different critical threshold? If I have two service check that is the same and have different critical threshold, how do I go about defining the host take only one of those service check. Is there a way to define a service check having higher precedence than another?

For example:

I have two memory service check with critical threshold of 90% and another at 98%. The 90% is set at the highest level and get inherited by thousands of servers. There's a few systems that I don't want it to inherit the 90% service check. Can I define 98% check and tell it to ignore the 90%? How I go about doing this?

I guess I can remove the host from the highest level and then define the host individually but than I have to also remove all the other service checks as well and it starts to get messy. If someone encounter this issue before and worked through a way to accomplish this without changing the hostgroup/host relationship, let me know how you did it.

Re: Same check with different critical threshold

Posted: Tue Sep 22, 2015 10:09 am
by jdalrymple
seaannn wrote:If someone encounter this issue before and worked through a way to accomplish this without changing the hostgroup/host relationship, let me know how you did it.
If you want them all to be in the same hostgroup, and that hostgroup is where the service comes from, the only way I know of to do it is with custom object variables:

https://assets.nagios.com/downloads/nag ... tvars.html

If that won't work for you, I think you'll have to break the specials out into their own hostgroup.