"node" NRPE check fails due to permissions on /var/lib/nagios
Bug #1862099 reported by
James Hebden
This bug report is a duplicate of:
Bug #1866382: Nagios plugin fails with Unable to run kubectl and parse output.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Worker Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
kubernetes v1.17.2
kubernetes-worker charm from cs:kubernetes-
Ubuntu bionic deployed on an OpenStack controller
The "node" NRPE check fails to run kubectl, as it runs under NRPE, which runs as the 'nagios' system user - by default, the '/var/lib/nagios' directory is owned by root, which means the /usr/lib/
Changed in charm-kubernetes-worker: | |
importance: | Undecided → Medium |
Changed in charm-kubernetes-worker: | |
status: | Confirmed → Triaged |
To post a comment you must log in.
I ran into this issue as well on a production environment. Notably, this did not occur in all of our nodes. 2 out of 6 actually had the correct permissions set for the /usr/lib/nagios directory.
A workaround for the remaining nodes was just running the following:
sudo chown nagios:nagios /var/lib/nagios/