[Nagiosplug-help] check_disk and DRDB

Andreas Ericsson ae at op5.se
Thu Aug 30 09:48:01 CEST 2007


Thomas Guyot-Sionnest wrote:
> -----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.
> 

True. For small programs, being clever is quite the wrong thing to
do, as it hardly ever matches user expectation. Barfing loudly on
any error and requiring a command-line without errors is something
any user expects and finds quite normal.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231




More information about the Help mailing list