nrpe check reports "juju-db.service is not running" for juju 2.9.32

Bug #1982943 reported by Przemyslaw Lal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-juju-controller
New
Undecided
Unassigned

Bug Description

NRPE check reports "juju-db.service is not running" for juju controller 2.9.32 running on focal.

juju-db in this version runs as a snap:

ubuntu@juju-controller-1:~$ snap list | grep juju-db
juju-db 4.4.14 127 4.4/stable juju-qa -

ubuntu@juju-controller-1:~$ ps -ef | grep juju-db
root 6219 1 8 Jul26 ? 02:21:28 /snap/juju-db/127/bin/mongod --config /var/snap/juju-db/common/juju-db.config

Instead of monitoring juju-db.service, nrpe should monitor either juju-db process or snap.juju-db.daemon.service:

ubuntu@juju-controller-1:~$ systemctl status snap.juju-db.daemon.service
● snap.juju-db.daemon.service - Service for snap application juju-db.daemon
     Loaded: loaded (/etc/systemd/system/snap.juju-db.daemon.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/snap.juju-db.daemon.service.d
             └─overrides.conf
     Active: active (running) since Tue 2022-07-26 09:58:11 UTC; 1 day 2h ago

description: updated
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.