external-nagios module should have separate lock file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NRPE Charm |
Fix Released
|
Low
|
Unassigned |
Bug Description
It's not uncommon to deploy rsync with "max connections" in /etc/rsyncd.conf (nrpe's willingness to clobber this file not withstanding).
"max connections" works by using record locking on the file specified by "lock file".
Both of these are module settings, not global settings, and so when they are set in a global context they set defaults for every module.
By default every module with a connection limit has the same value for "lock file" (the default is /var/run/
This means that when a limit is set in the standard naive manner, external-nagios is subject to this limit, which causes problems refreshing Nagios from busy Juju units in cases where the script deletes the existing files and fetches them all. (This is done to handle checks that hae been deleted from the Juju unit.)
nrpe should explicitly set "lock file" to something other then the default (I suggest /var/run/
Related branches
- Tom Haddon: Approve
- Haw Loeung: Approve (+1)
- NRPE charm developers: Pending requested
-
Diff: 10 lines (+1/-0)1 file modifiedtemplates/rsync-juju.d.tmpl (+1/-0)
Changed in charm-nrpe: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
Changed in charm-nrpe: | |
status: | Fix Committed → Fix Released |
milestone: | none → 20.08 |
milestone: | 20.08 → 21.01 |