[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-09-19 Thread Christian Ehrhardt 
*** This bug is a duplicate of bug 1827159 *** https://bugs.launchpad.net/bugs/1827159 Also applies to squashfs, added bugs as dup ** This bug has been marked a duplicate of bug 1827159 check_all_disks includes squashfs /snap/* which are 100% ** Tags added: server-next -- You received t

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-09-18 Thread Andreas Hasenack
** Changed in: nagios-plugins (Ubuntu) Assignee: (unassigned) => Bryce Harrington (bryce) ** Tags removed: server-next -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title: check_disk p

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-07-17 Thread Bryce Harrington
Meanwhile, I've verified the issue seems relevant for newer ubuntu's too: ### Bionic # /usr/lib/nagios/plugins/check_disk -w '20%' -c '10%' -e DISK CRITICAL - /sys/kernel/debug/tracing is not accessible: Permission denied ### Eoan # /usr/lib/nagios/plugins/check_disk -w '20%' -c '10%' -e DISK CRI

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-07-17 Thread Bryce Harrington
Ramon, thank you for the detailed test case, I was able to run through it exactly as you described, both as root user (see attached) and as nagios (with sudo setup). I suspect I'm unable to reproduce the issue you're seeing since under lxc the /sys/kernel/debug directory belongs to the host and th

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-07-17 Thread Bryce Harrington
** Tags added: server-next -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title: check_disk plugin broken after upgrade to 15.10 To manage notifications about this bug go to: https://bugs.la

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-07-16 Thread Ramon Grullon
The reason why this alert pops out is related to running sosreport on this node. Nagios can not access it - which is good as this directory is only accessible by root: # ll /sys/kernel/debug/ | grep trac drwx-- 8 root root 0 Jul 9 09:06 tracing/ To validate/replicate this behaviour, please o

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-07-10 Thread Bryce Harrington
This looks similar to https://bugs.launchpad.net/ubuntu/+source /monitoring-plugins/+bug/1827159. However, installing nagios-plugins in a fresh Xenial LXC container does not appear sufficient to reproduce the bug: 1. There is no /sys/kernel/debug/tracing present on the system. Installing perf-

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2019-07-09 Thread Ramon Grullon
Currently experiencing this issue at customer site where there is a permission issue as nagios user can't access this directory, this particular mount point/directory is owned by root and the permission set on this is 700. ubuntu@XXnagios-1:/snap/core/7270$ /usr/lib/nagios/plugins/check_disk

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2018-04-13 Thread Alvaro Uría
This is also affecting a confined xenial LXC environment, and was fixed by adding "--exclude-type=tracefs" on the check_all_disks command definition at /etc/nagios-plugins/config/disk.cfg monitoring-plugins-basic should be updated with the above. ** Tags added: canonical-bootstack -- You receiv

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2017-03-22 Thread Ian Gibbs
Since check_all_disks is internally defined in Nagios, you might well see a "duplicate definition" error if you define your own check_all_disks command. I'd recommend define command{ command_name check_all_physical_disks command_line /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2017-03-13 Thread Gerald Combs
Oops - please disregard comment #14 - it's specific to Icinga. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title: check_disk plugin broken after upgrade to 15.10 To manage notifications a

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2017-03-13 Thread Gerald Combs
This appears to be fixed upstream via https://github.com/Icinga/icinga2/issues/4184 ** Bug watch added: github.com/Icinga/icinga2/issues #4184 https://github.com/Icinga/icinga2/issues/4184 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ub

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-12-05 Thread Marius Gedminas
These days /etc/mtab is a symlink to /proc/self/mounts, so you cannot control what is exposed there. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title: check_disk plugin broken after upgra

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-09-13 Thread Danny Howard
We normally netboot but we had a few machines that would not PXE, so we installed 14.04 via medium. Afterwards, some of the medium-installed machines were throwing this error in Nagios. Found this line in /etc/mtab on the afflicted hosts: tracefs /var/lib/ureadahead/debugfs/tracing tracefs rw,rela

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-09-13 Thread Danny Howard
Possibly related to #499773 which is about install adding spurious entries to mtab. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title: check_disk plugin broken after upgrade to 15.10 To m

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-09-01 Thread Nicholas Sherlock
Rather than excluding tmpfs, just exclude /run/lxcfs/controllers. This is the check_all_disks command I'm now using in my /etc/nagios- plugins/config/disk.cfg: # 'check_all_disks' command definition define command{ command_namecheck_all_disks command_line/usr/lib/nagios/plu

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-05-20 Thread TomaszChmielewski
The workaround is not really great when LXD/LXC is in use: $ /usr/lib/nagios/plugins/check_disk -e --exclude-type=tracefs DISK CRITICAL - /run/lxcfs/controllers is not accessible: Permission denied $ /usr/lib/nagios/plugins/check_disk -e --exclude-type=tracefs --exclude-type=cgroup DISK CRITICAL

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-05-20 Thread Darragh Grealish
This is also broken in ubuntu 16.04, however the workaround mentioned works /usr/lib/nagios/plugins/check_disk -e --exclude-type=tracefs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title:

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-05-20 Thread Harald Hannelius
Same probably for gvfs-fuse filesystems. Recommend --exclude-type=tracefs --exclude-type=fuse.gvfsd-fuse -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title: check_disk plugin broken after

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2016-01-16 Thread Gabriele Tozzi
You can use the --exclude-type option to work this bug around: /usr/lib/nagios/plugins/check_disk -e --exclude-type=tracefs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Title: check_disk p

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2015-12-16 Thread Robie Basak
Thank you for taking the time to report and investigate this bug and helping to make Ubuntu better. It sounds to me like check_disk should have a blacklist of filesystem types to ignore. But explicitly specifying which mount points looks like a suitable workaround. I wonder if this affects monito

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2015-12-15 Thread Brian Morton
I suspect there isn't a code change here, but rather a difference in the way Ubuntu is presenting its mount points. The plugin tries to enumerate and check all mounts. A better use might be to add the actual mount points to be monitored with -p /usr/lib/nagios/plugins/check_disk -w '20%' -c '10%

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2015-12-15 Thread Brian Morton
strace confirms that check_disk on 12.04 doesn't check /sys/kernel/debug/tracing Not having any luck tracking down a code change in the monitoring- plugins github repo. I wonder if this is a change in a dependent lib instead. Here's a workaround sudo chown root:root /usr/lib/nagios/plugins/chec

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2015-11-24 Thread Ben Coleman
Also note that while 15.10 does change the permissions on /sys/kernel/debug/tracing (from drwxr-xr-x in 15.04 to drwx-- in 15.10), the permissions on /sys/kernel/debug are drwx-- on both 15.10 and 15.04 - which means that /sys/kernel/debug shouldn't be readable from a non-root account on ei

[Bug 1516451] Re: check_disk plugin broken after upgrade to 15.10

2015-11-19 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nagios-plugins (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1516451 Titl