Setting different $ARG1$ for hosts, based on group membershp
Posted: Thu Dec 07, 2017 7:13 am
I'm trying to keep our definitions as centralized as possible, but for some host I need a bit of refinement in thresholds.
Situation: 400+ host, grouped/separated in host groups and host templates. Checks are grouped in services en and service tempates.
For 25 hosts, I need an ealier warning for disk space usage. (eg. default = warn@85% full, now warn@75%full)
I'm setting it up using custom variables.
It works, by defining a custom variable in the base host template (variable name: _DRIVETHRESHOLD, variable value: MaxWarnUsed=85%!MaxCritUsed=95%) and overriding the variable on the host. It's used in the service definition as $ARG1$ = $_HOSTDRIVETHRESHOLD$
But I was hoping I could override the variable in a more centralized way, based on a 'special' group membership and not per host.
Most simple solution would be by host group. But custom variables are not supported and are not planned to be supported for host groups.
I've tried creating an additional host template, with an updated the variable and added the group of hosts on the host template.
But that does not override the setting.
Any suggestions?
Situation: 400+ host, grouped/separated in host groups and host templates. Checks are grouped in services en and service tempates.
For 25 hosts, I need an ealier warning for disk space usage. (eg. default = warn@85% full, now warn@75%full)
I'm setting it up using custom variables.
It works, by defining a custom variable in the base host template (variable name: _DRIVETHRESHOLD, variable value: MaxWarnUsed=85%!MaxCritUsed=95%) and overriding the variable on the host. It's used in the service definition as $ARG1$ = $_HOSTDRIVETHRESHOLD$
But I was hoping I could override the variable in a more centralized way, based on a 'special' group membership and not per host.
Most simple solution would be by host group. But custom variables are not supported and are not planned to be supported for host groups.
I've tried creating an additional host template, with an updated the variable and added the group of hosts on the host template.
But that does not override the setting.
Any suggestions?