** Summary changed: - Parents are missing from host definitions + Incorrect parent values when using cross-model relations
-- 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/1939068 Title: Incorrect parent values when using cross-model relations Status in Nagios Charm: New Bug description: Nagios has code that's intended to populate the "parents" value in host definitions found in /etc/nagios3/conf.d/charm.cfg through its relation to charm-nrpe. However, this code cannot set this value due to a discrepancy between how host names and machine IDs are provided in relation data between nagios and charm-nrpe. A dictionary mapping child machine IDs to their host machine's name already exists, but a comparison against keys in this dictionary fails because the parent's machine ID is extracted from the child's ID, which doesn't exist in the dictionary. For example, if there is a unit deployed at "2/lxd/0" where machine 2's name is "juju-mysql-0", this dictionary will look like {"2/lxd/0": "juju-mysql-0"}. The bug here is that a regex expression is used to extract the machine ID of "2", which is compared against the dictionary, and that check fails. This regular expression needs to be removed and the machine ID as it exists in the relation data between nagios and nrpe needs to be used as the key. To manage notifications about this bug go to: https://bugs.launchpad.net/charm-nagios/+bug/1939068/+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

