[Nagios-users] Bug in check_disk when using mount points?

2007-02-14 Thread Hari Sekhon
I'm using check disk and want to have it test the filesystem of a mount point rather than a partition. # df / Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2153337060 28240084 117307864 20% / DF shows the filesystem is 20% used so I want this to force

Re: [Nagios-users] Bug in check_disk when using mount points?

2007-02-14 Thread Hari Sekhon
OK it's not just a bug with the -m switch but with the whole plugin. Observe: /usr/nagios/libexec/check_disk -l -w 2 -c 1 -u TB -vvv DISK OK - free space: / 0 TB (77% inode=98%); /dev 0 TB (100% inode=98%); /home/match/ramdisk 0 TB (17% inode=100%); /dev/shm 0 TB (100% inode=100%); /boot 0 TB

Re: [Nagios-users] Bug in check_disk when using mount points?

2007-02-14 Thread Andy Shellam (Mailing Lists)
Hari, Works fine here (this is on Fedora 4) - check_disk (nagios-plugins 1.4.5) 1.79: [EMAIL PROTECTED] ~]$ df -h FilesystemSize Used Avail Use% Mounted on /dev/hda1 12G 1.4G 10G 13% / /dev/hda5 4.6G 33M 4.4G 1% /tmp /dev/hda6 56G

Re: [Nagios-users] Bug in check_disk when using mount points?

2007-02-14 Thread frank
(Please pardon my top-posting) The first problem is that the --help listing has a typo. Mount points are checked with '-M', megabytes are checked with '-m', but both are listed in lowercase when you use --help. The second problem appears to be in the reporting of command line errors. Try

Re: [Nagios-users] Bug in check_disk when using mount points?

2007-02-14 Thread Ton Voon
On 14 Feb 2007, at 18:49, frank wrote: (Please pardon my top-posting) The first problem is that the --help listing has a typo. Mount points are checked with '-M', megabytes are checked with '-m', but both are listed in lowercase when you use --help. Thanks. This is fixed in CVS now.