canonical / charm-nrpe

Apache License 2.0
1 stars 6 forks source link

private address supplied to Nagios, but Nagios public addr set in nrpe.cfg #150

Open sudeephb opened 6 months ago

sudeephb commented 6 months ago

I have two models, both using Openstack instances. Both are in the same Openstack network.

The model with Nagios is connected to nrpe via cross model relation.

When I look at nrpe.cfg, the public (i.e. floating) IP address of the Nagios host is specified as allowed. When I check the host definitions in Nagios, the private (non-floating) address is used. This means that Nagios doesn't have permission to connect to NRPE because it uses it's private address.

This is intermittent - somehow one iteration of config-changed supplied private, and then after reboots etc the other address was used and we were unable to reach nrpe.

This has also been observed with manual machines outside Openstack instances, where the nagios host has multiple addresses and is attempting to use one not listed to connect to the manually added machine.


Imported from Launchpad using lp2gh.

sudeephb commented 6 months ago

(by aurelien-lourot) This is a symptom of these two bugs:

  1. https://bugs.launchpad.net/nagios-charm/+bug/1823772
  2. https://bugs.launchpad.net/nrpe-charm/+bug/1827703

Closing as duplicate.