diff --git a/config.yaml b/config.yaml index ebaee797..44304c39 100644 --- a/config.yaml +++ b/config.yaml @@ -220,4 +220,10 @@ options: juju-myservice-0 If you're running multiple environments with the same services in them this allows you to differentiate between them. + nagios_servicegroups: + default: "" + type: string + description: | + A comma-separated list of nagios servicegroups. + If left empty, the nagios_context will be used as the servicegroup diff --git a/hooks/cinder_hooks.py b/hooks/cinder_hooks.py index 1c6ef843..520c181b 100755 --- a/hooks/cinder_hooks.py +++ b/hooks/cinder_hooks.py @@ -457,7 +457,9 @@ def update_nrpe_config(): hostname = nrpe.get_nagios_hostname() current_unit = nrpe.get_nagios_unit_name() nrpe_setup = nrpe.NRPE(hostname=hostname) + nrpe.copy_nrpe_checks() nrpe.add_init_service_checks(nrpe_setup, services(), current_unit) + nrpe.add_haproxy_checks(nrpe_setup, current_unit) nrpe_setup.write()