Charm upgrade does not honour nagios_hostname_type setting

Bug #1671707 reported by Paul Gear
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NRPE Charm
Fix Released
Medium
Unassigned

Bug Description

When upgrading to the latest version of the charm, the generated configuration contained a reference to the hostname of the juju unit as if nagios_hostname_type were set to 'host' instead of 'unit', resulting in the following error when nagios checks were collected:

    Error: Could not find any host matching 'juju-b4bda0-env-app-2' (config file '/etc/nagios3/collected.d/.../service__juju-b4bda0-env-app-2_check_canonical-livepatch.cfg', starting on line 5)

Related branches

Revision history for this message
Paul Gear (paulgear) wrote :

Setting nagios_hostname_type to host and back to unit is a workaround.

Revision history for this message
Paul Gear (paulgear) wrote :

Potential fix released to candidate channel as cs:~nrpe-charmers/nrpe-14

Changed in nrpe-charm:
status: New → In Progress
Changed in charm-nrpe:
status: In Progress → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.