charmhelpers.contrib.charmsupport.nrpe add_init_service doesn't support systemd

Bug #1578922 reported by Brad Marshall
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Charm Helpers
New
Undecided
Unassigned
nrpe (Juju Charms Collection)
Fix Committed
Undecided
Unassigned
nrpe-external-master (Juju Charms Collection)
Fix Committed
Undecided
Unassigned

Bug Description

As of bzr revno 570 charmhelpers.contrib.charmsupport.nrpe function add_init_service only supports upstart and sysvinit.

When used on a xenial system, it finds the upstart conf file and tries to use a nrpe check with upstart, which fails and the check fails.

It appears that function needs another path check for the systemd service file, ahead of the upstart one.

Once this is fixed a simple refresh of the charmhelpers in any affected charms should clear up the error.

Please let me know if you need any more information.

Related branches

Revision history for this message
Brad Marshall (brad-marshall) wrote :

I've put a proposed fix up at https://code.launchpad.net/~brad-marshall/charm-helpers/add-systemd-nagios-check/+merge/294084, please let me know if there's any problems with it.

Stuart Bishop (stub)
Changed in nrpe (Juju Charms Collection):
status: New → Fix Released
Changed in nrpe-external-master (Juju Charms Collection):
status: New → Fix Released
status: Fix Released → Fix Committed
Changed in nrpe (Juju Charms Collection):
status: Fix Released → Fix Committed
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.