[Pkg-nagios-devel] Bug#516097: check_disk breaks on inaccessible directories

Peter Palfrader weasel at debian.org
Thu Feb 19 11:46:18 UTC 2009


Stefan Hornburg schrieb am Donnerstag, dem 19. Feber 2009:

> IMHO not in any case. If someone changes permissions on a disk so
> that I can't be monitored anymore, you want to know about it.

Hmm.  Ah.  Now I see.

The check never failed before on etch, even tho the mountpoint was
inaccessible.  However, it reported the wrong disk usage.

on etch:

weasel at simona:~$ /usr/lib/nagios/plugins/check_disk 90 95 | tr ';' '\n' | grep test
 /mnt/test/mountpoint 86396 MB (60% inode=98%)
60476 /mnt/test/mountpoint=56382MB

weasel at simona:~$ sudo chmod o-rx /mnt/test
weasel at simona:~$ stat /mnt/test/mountpoint
stat: cannot stat `/mnt/test/mountpoint': Permission denied

weasel at simona:~$ /usr/lib/nagios/plugins/check_disk 90 95 | tr ';' '\n' | grep test
 /mnt/test/mountpoint 11435 MB (19% inode=96%)
60476 /mnt/test/mountpoint=45969MB

The 11435MB come from some other random mountpoint (The one just previous in
the list).

Oh well, thanks.
-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/





More information about the Pkg-nagios-devel mailing list