← Back to team overview

aims team mailing list archive

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

 

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 open three terminals.

Terminal 1, run
mount | grep -i tracing
- no output here as this directory is generally not presented by mount

Terminal 2:
mkdir testing; cd testing
while true;do mount | grep -i tracing > mounted-$(date +%s); done

on terminal 1 please run
cd testing
watch ls -lt

Terminal 3
sudo sosreport -a --all-logs

Watch Terminal 1. On the beginning, you will see files created with 0 in size. When you start sosreport in another window/tmux this file gets populated - meaning munt can see it.
Why does it become available? Sosreport gathers diagnostic information and initiates it. This directory is not visible from mount during normal operation.

-- 
You received this bug notification because you are a member of AIMS,
which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1516451

Title:
  check_disk plugin broken after upgrade to 15.10

Status in nagios-plugins package in Ubuntu:
  Incomplete

Bug description:
  I didn't touch my Nagios config, just update my system from 15.04 to
  15.10. Suddenly the default localhost/Disk Space check fails with the
  following output:

  DISK CRITICAL - /sys/kernel/debug/tracing is not accessible:
  Permission denied

  This can be reproduced when manually running the underlying command as
  user "nagios":

  $ /usr/lib/nagios/plugins/check_disk -w '20%' -c '10%' -e
  DISK CRITICAL - /sys/kernel/debug/tracing is not accessible: Permission denied

  When I run it as root it works:

  # /usr/lib/nagios/plugins/check_disk -w '20%' -c '10%' -e
  DISK OK| /dev=0MB;1186;1334;0;1483 /run=8MB;239;269;0;299 /=17157MB;57386;64559;0;71733 /dev/shm=0MB;1199;1349;0;1499 /run/lock=0MB;4;4;0;5 /sys/fs/cgroup=0MB;1199;1349;0;1499 /boot=48MB;181;204;0;227 /run/user/0=0MB;239;269;0;299

  Seems "nagios" user can't access the dir it tries to access:

  # ls -la /sys/kernel/debug/tracing
  drwx------  7 root root 0 Nov 15 19:40 .

  # lsb_release -rd
  Description:    Ubuntu 15.10
  Release:        15.10

  # apt-cache policy nagios-plugins-basic
  nagios-plugins-basic:
    Installed: 1.5-3ubuntu1
    Candidate: 1.5-3ubuntu1
    Version table:
   *** 1.5-3ubuntu1 0
          500 http://de.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-plugins/+bug/1516451/+subscriptions