naemon-core icon indicating copy to clipboard operation
naemon-core copied to clipboard

Custom Variable Macros and hostgroups

Open mboden opened this issue 10 years ago • 1 comments
trafficstars

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

mboden avatar Mar 19 '15 20:03 mboden

Just now found myself in a use case for this issue. Would like to see this also

savv3 avatar Aug 17 '22 07:08 savv3