I think it would be really useful if you could specify custom variable macros on hostgroups that would be inherited by all hosts in that host group.
Currently adding a variable macro to a hostgroup causes a configuration error.
Like this for example. My own plugins use this a lot. Currently I have the standard values in the plugin itself and if the environment variable exists I use that instead. For me it is much simpler than using $ARG1$ on each host. This way I only have to specify the threshold on those hosts that cant use the standard for some reason like undersized appliances and such.
Hello,
I think it would be really useful if you could specify custom variable macros on hostgroups that would be inherited by all hosts in that host group.
Currently adding a variable macro to a hostgroup causes a configuration error.
Like this for example. My own plugins use this a lot. Currently I have the standard values in the plugin itself and if the environment variable exists I use that instead. For me it is much simpler than using $ARG1$ on each host. This way I only have to specify the threshold on those hosts that cant use the standard for some reason like undersized appliances and such.
define hostgroup { hostgroup_name obj_checkpoint _CPFWCPULEVELS warn=75,crit=90,duration=3600 }
Regards Magnus