check_all_disks should allow exceptions
Bug #1748430 reported by
Alvaro Uria
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nagios Charm |
Fix Released
|
High
|
Alvaro Uria |
Bug Description
Use case:
- Nagios deployed in a container, and the rootfs partition being the only valuable device to monitor
- Perm errors on other mounting points:
~# /usr/lib/
DISK CRITICAL - /sys/kernel/
I suggest the use of "-r <regexp>" on check_all_disks, where "<regexp>" has an empty default value (configurable via juju config).
Related branches
~aluria/charm-nagios:bug/1748430
Merged
into
~nagios-charmers/charm-nagios:master
at
revision cdc4f2273440238b8c57aba1bf6eebde4489c8d1
- Andrea Ieri: Approve
-
Diff: 55 lines (+8/-3)2 files modifiedhooks/templates/localhost_nagios2.cfg.tmpl (+6/-2)
hooks/upgrade-charm (+2/-1)
To post a comment you must log in.
Proposed fix only monitors the rootfs when nagios runs on a container. Otherwise, it works as until now.