~xavpaice/charm-nrpe:lp1937888-2

Last commit made on 2021-09-24
Get this branch:
git clone -b lp1937888-2 https://git.launchpad.net/~xavpaice/charm-nrpe
Only Xav Paice can upload to this branch. If you are Xav Paice please log in for upload directions.

Branch merges

Branch information

Name:
lp1937888-2
Repository:
lp:~xavpaice/charm-nrpe

Recent commits

8fedd69... by Xav Paice

Add target-address to relation data

The Nagios charm makes use of a relation-data item named target-address,
which is used for connections from Nagios to the remote unit (NRPE).
If target-address is not set, Nagios then uses ingress-address, and if
that's not set, private-address. Both ingress-address and
private-address are automatically set by Juju, but updated by the nrpe
charm.

This change adds target-address to the relation data which is controlled
by the NRPE charm from the start, as under some circumstances the
ingress-address is overwritten by Juju.

74ca861... by Xav Paice

Bind NRPE to local address

    In cases where we specify to use public address and/or Juju returns a
    public address regardless of the setting, we cannot use that address for
    binding the NRPE service.

    This change ensures get_local_ingress_address returns the local address
    for binding the nrpe service, and if configured to do so returns the
    public address for relation data and NRPE host exports.

Reviewed-on: https://code.launchpad.net/~xavpaice/charm-nrpe/+git/nrpe-charm/+merge/408524
Reviewed-by: James Troup <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

4344ba9... by Xav Paice

Remove pre-Juju 2.3 support for ingress

Determines the ingress address using info only avaialbe after Juju 2.3
was released.

a46e8c6... by Xav Paice

set constraints for tests in Focal bundle

The Focal bundle needs more root-disk than default in some environments
to run containers. This change increases the minimum to allow for this.

Additionally adds a smoke test bundle definition.

4f7b0a0... by Xav Paice

Bind NRPE to local address

In cases where we specify to use public address and/or Juju returns a
public address regardless of the setting, we cannot use that address for
binding the NRPE service.

This change ensures get_local_ingress_address returns the local address
for binding the nrpe service, and if configured to do so returns the
public address for relation data and NRPE host exports.

a26309a... by Diko Parvanov

Changed plugin description

8e0ddea... by Diko Parvanov

Fixing reviewer comments

9473c75... by Diko Parvanov

Fixing lint

babd81c... by Diko Parvanov

Changed config option behavior precedence

ebde9c5... by Diko Parvanov

Changed nrpe-external-master key for principal

 - nrpe_requested_cpu_governor -> requested_cpu_governor