[Nagiosplug-help] check_disk and DRDB
Thomas Guyot-Sionnest
dermoth at aei.ca
Thu Aug 30 05:57:33 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 29/08/07 05:17 PM, Andreas Ericsson wrote:
>
> Yes. Look closely at your command-line and you'll notice you've
> specified /dev/cciss/c0d0p3 without a -p in front of it.
> I'd have expected check_disk to barf on this, since it's not
> a valid argument on its own (as it lacks the preceding -p),
> but apparently it doesn't. Add the -p or remove the /dev/cciss/c0d0p3
> and you should be fine.
Indeed, this is something I believe should be addressed in the next
major version of Nagios-plugins. Most plugins out there tries to be
smart. I believe it doesn't always help users, and often makes
programming more tricky.
Plugins should eventually behave exactly and only as --help say and barf
if anything is unexpected. In the above case I guess the "unrecognized"
argument ended up being interpreted as a space-separated list of paths.
God knows what happened then when -p got hit but looks like it stopped
processing further arguments.
If I find some time I'll look into that and the free space warp around
reported earlier.
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG1kAt6dZ+Kt5BchYRAoRrAJ9dlIdP1kvCsFWvXXrpbIpFYSYA6QCgjtRl
dM2VLifpn5QLF2/KYrDSgcI=
=OIOY
-----END PGP SIGNATURE-----
More information about the Help
mailing list