NRPE: Command 'check_snap.grafana.grafana' not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Further to bug #1891719
While some work has been done for this, the charm does not handle a situation where the check is missing and recreate it:
When upgrading from cs:grafana-39 to cs:grafana-40 the check_snap.
$ juju ssh grafana/0 "ls -lah /etc/nagios/
-rw-r--r-- 1 root root 268 Jul 28 18:15 /etc/nagios/
Connection to 172.27.249.4 closed.
$ juju upgrade-charm grafana --revision 40
Added charm "cs:grafana-40" to the model.
Leaving endpoints in "oam-space": dashboards, grafana-source, nrpe-external-
$ juju ssh grafana/0 "ls -lah /etc/nagios/
ls: cannot access '/etc/nagios/
Connection to 172.27.249.4 closed.
$ juju upgrade-charm grafana --revision 49
Looking up metadata for charm cs:grafana-49 (channel: stable)
Added charm "cs:grafana-49" to the model.
Leaving endpoints in "oam-space": dashboards, grafana-source, nrpe-external-
$ juju ssh grafana/0 "ls -lah /etc/nagios/
ls: cannot access '/etc/nagios/
Connection to 172.27.249.4 closed.
It's not until I set the nrpe-external-
$ juju run --unit grafana/0 -- charms.reactive set_flag nrpe-external-
$ juju ssh grafana/0 "ls -lah /etc/nagios/
-rw-r--r-- 1 root root 268 Jul 28 18:23 /etc/nagios/
Connection to 172.27.249.4 closed.
The charm should be properly aware of the current state that it is in and create the needed check files appropriately, no matter what the reason that the file was removed.
This charm is no longer being actively maintained. Please consider using the new Canonical Observability Stack instead. /charmhub. io/topics/ canonical- observability- stack)
(https:/
I will close this issue