Merge ~guoqiao/charm-hw-health:LP1906991-chown-output-files into charm-hw-health:master
Proposed by
Joe Guo
Status: | Merged |
---|---|
Approved by: | Xav Paice |
Approved revision: | ce6379579280bf1845f9b03effd741038fa9fec6 |
Merged at revision: | ce6379579280bf1845f9b03effd741038fa9fec6 |
Proposed branch: | ~guoqiao/charm-hw-health:LP1906991-chown-output-files |
Merge into: | charm-hw-health:master |
Diff against target: |
57 lines (+25/-0) 1 file modified
src/lib/hwhealth/tools.py (+25/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xav Paice (community) | Approve | ||
Linda Guo (community) | Approve | ||
Review via email: mp+397952@code.launchpad.net |
Commit message
ensure cron output dir and files are owned by nagios user
Before, nrpe-server and cron jobs are run by root, so legacy output dir and files are
owned by root. Now the user has changed to nagios, which will get permission errors
while writing to legacy dir and files owned by root.
This patch try to ensure the permission is correct.
LP: #1906991
To post a comment you must log in.
NOTE:
This patch is only trying to fix current bug with minimal changes.
There is suggestion to create a subdir for each tool, so we can manage files and permissions in an easier way. e.g.:
/var/lib/ nagios/ ipmi/ipmi_ sensors. out nagios/ ipmi/ipmi_ exclude
/var/lib/
I will submit another patch for that, after this one if merged.