Feature Request: Dynamic Assignment of Checks
Posted: Thu Mar 23, 2017 6:55 am
Hi,
you might know Icinga2 and the Monitoring as Code approach.
I know with hostgroups you can do some kind of dynamic check assignment, but it would be nice to have more flexible options.
In Icinga2 you can do things like
Or
I know it will not be possible to change the way Nagios saves the configuration files, but maybe in CCM it would be possible to tag servers with DEV or PROD and CCM will automatically assign the checks which match certain criteria. So I don' t have to put the server in multiple hostgroups, I'll just tag the server with certain attributes and CCM will assign the right checks. It will speed up things in a dynamic world.
you might know Icinga2 and the Monitoring as Code approach.
I know with hostgroups you can do some kind of dynamic check assignment, but it would be nice to have more flexible options.
In Icinga2 you can do things like
Code: Select all
assign where match("*has gold support 24x7*", service.notes) && (host.vars.customer == "customer-xy" || host.vars.always_notify == true)Code: Select all
if (host.vars.environment == "dev") {
check_interval = 30m
} else {
check_interval = 5m
}