[Nagiosplug-devel] changing check_disk -E behaviour

Matthias Eble matthias.eble at mailing.kaufland-informationssysteme.com
Mon Sep 17 15:40:37 CEST 2007

hi all,

I'm currently working on check_disk to let users ignore 
mountpoints/devices based on regular expressions.

There seems to be a problem with parsing of the options I want to hear 
your opinion about.

To compare the regexes against devname and mountdir, the best_match 
pointer needs to be set. Unfortunately this clashes with -E (exact 
match) which is allowed to be specified everywhere in the command line.

I'd suggest to change -E to be only allowed prior to -p and -r 
arguments. This would cause an incompatibility but would also become 
revealed instantly after upgrading (check_disk exiting UNKNOWN).


More information about the Devel mailing list