naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
151 stars 62 forks source link

Custom Variable Macros and hostgroups #106

Open mboden opened 9 years ago

mboden commented 9 years ago

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

savv3 commented 1 year ago

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