check_disk_root with params set to '' causes error
Bug #1730567 reported by
Xav Paice
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NRPE Charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If we set the disk_root param to '', we expect that to disable the check. What actually happens is the check returns "DISK UNKNOWN: Must set a threshold value before using -p".
This is due to the default adding " -p / " to whatever the param value is, however that enables the check regardless of the config value.
Related branches
~xavpaice/charm-nrpe:lp1730567
- Haw Loeung: Approve
-
Diff: 84 lines (+27/-5)2 files modifiedconfig.yaml (+21/-4)
hooks/nrpe_helpers.py (+6/-1)
tags: | added: canonical-bootstack |
Changed in nrpe-charm: | |
status: | New → Fix Committed |
Changed in nrpe-charm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.