The hostgroups config item only takes effect for when the hosts are exported via export_nagios_definitions, this is not sent across relations at this stage. We could clear that up by changing the documentation, or better yet add the information to the relation data and update Nagios to include hostgroups in the definition. Since I'd prefer to see the hostgroups info available, as it's useful for operational work, I'll re-mark this as wishlist for the new feature.
** Changed in: charm-nrpe Importance: High => Wishlist ** Changed in: charm-nagios Importance: High => Wishlist -- You received this bug notification because you are a member of Nagios Charm developers, which is subscribed to Nagios Charm. https://bugs.launchpad.net/bugs/1740264 Title: hostgroups defined in nrpe charm are not created Status in Nagios Charm: Triaged Status in NRPE Charm: Triaged Bug description: Defining custom hostgroups in the `hostgroups` config option in the nrpe charm does not work and do not show up in Nagios. See the example bundle below which should create a hostgroup called "hostgroup1" with the ubuntu host as a member. # Versions Juju 2.3.1 nagios rev. 22 nrpe rev. 42 # Example bundle series: xenial services: nagios: charm: cs:nagios-22 num_units: 1 expose: true options: password: nagiosadmin ubuntu: charm: cs:ubuntu-10 num_units: 1 nrpe: charm: cs:nrpe-42 options: hostgroups: "hostgroup1" relations: - - nrpe:general-info - ubuntu:juju-info - - nagios:monitors - nrpe:monitors To manage notifications about this bug go to: https://bugs.launchpad.net/charm-nagios/+bug/1740264/+subscriptions -- Mailing list: https://launchpad.net/~nagios-charmers Post to : [email protected] Unsubscribe : https://launchpad.net/~nagios-charmers More help : https://help.launchpad.net/ListHelp

