[Pkg-nagios-devel] Bug#405539: nagios-plugins-basic: check_disk --local does not exclude cifs mounts

Marc Haber mh+debian-bugs at zugschlus.de
Thu Jan 4 12:02:41 CET 2007


Package: nagios-plugins-basic
Version: 1.4.5-1
Severity: normal

[This is a nagios-plugins-basic backport to sarge]

$ /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -l
DISK WARNING - free space: / 142 MB (77% inode=85%); /dev/shm 92 MB (100% inode=99%); /mnt/usr 840 MB (73% inode=86%); /mnt/home 1055 MB (92% inode=99%); /mnt/var 1971 MB (58% inode=99%); /mnt/amanda 2487 MB (30% inode=99%); /tmp 92 MB (99% inode=99%); /media/linux-backup 56546 MB (13% inode=-);| /=41MB;154;173;0;193 /dev/shm=0MB;73;82;0;92 /mnt/usr=296MB;73;82;0;1196 /mnt/home=80MB;73;82;0;1196 /mnt/var=1406MB;73;82;0;3559 /mnt/amanda=5614MB;73;82;0;8535 /tmp=0MB;73;82;0;92 /media/linux-backup=355477MB;73;82;0;412023

The only filesystem that is below the warning threshold is
/media/linux-back, which is not a local file system:
$ grep linux-backup /proc/mounts
//windows-server.domain.example/linux_backup$ /media/linux-backup cifs rw,mand,unc=\\windows-server.domain.example\linux_backup$,username=user,rsize=16384,wsize=57344 0 0

cifs mounts should be excluded if --local is used.

Greetings
Marc

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.1-zgsrv
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)




More information about the Pkg-nagios-devel mailing list