[Nagiosplug-devel] check_disk --megabytes doesn't work
Matthias Eble
PsychoTrahe at gmx.de
Tue May 19 00:10:37 CEST 2009
Hi Chris,
> The help says I can use --megabytes, but when I do it eats the -w
> argument and causes an error.
>
> http://nagiosplugins.org/man/check_disk
>
> Chris
>
> > maguro:~ # /usr/local/nagios/libexec/check_disk -m -w 3% -c 1% -p /
> > DISK OK - free space: / 3912 MB (81% inode=96%);|
> /=873MB;4889;4990;0;5041
> > maguro:~ # /usr/local/nagios/libexec/check_disk --megabytes -w 3% -c
> 1% -p /
> > DISK CRITICAL - 3% is not accessible: No such file or directory
> > maguro:~ # /usr/local/nagios/libexec/check_disk --version
> > check_disk v2025 (nagios-plugins 1.4.13)
I cannot reproduce this, here (at least not with the current git
version. Can you try the latest one? You can find it here:
http://repo.or.cz/w/nagiosplugins.git
Otherwise: maybe there's a bug in your getopt parser? I can't remember
any commits that could've affected this.
Matthias
More information about the Devel
mailing list