check_all_disks should allow exceptions

Bug #1748430 reported by Alvaro Uria
18
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/nagios/plugins/check_disk -w 20% -c 10% -e
DISK CRITICAL - /sys/kernel/debug/tracing is not accessible: Permission denied

I suggest the use of "-r <regexp>" on check_all_disks, where "<regexp>" has an empty default value (configurable via juju config).

Related branches

Revision history for this message
Alvaro Uria (aluria) wrote :

Proposed fix only monitors the rootfs when nagios runs on a container. Otherwise, it works as until now.

Changed in nagios-charm:
assignee: nobody → Alvaro Uria (aluria)
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Alvaro Uria (aluria) wrote :

Released at cs:nagios-31 (master branch also tagged with cs revno).

Changed in nagios-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.