summaryrefslogtreecommitdiffstats
path: root/lib/Monitoring/Plugin
AgeCommit message (Collapse)AuthorFilesLines
2014-10-03format optional arguments in square braketsEvgeni Golov1-3/+13
2014-10-03GetOpt::Long optional arguments using a colon instead of an equal signEvgeni Golov1-2/+2
Instead of writing `foo|f=s` you can also write `foo|f:s` for a GetOpt::Long option spec [1], thus making the argument optional. The current implementation of `_spec_to_help` will wrongly render this as two long options: --dirport, --d:9030 directory port instead of a short and a long one: -d, --dirport=INTEGER directory port This commit fixes the the parsing of the spec, detection of the type and adds tests for a few common cases this could be used in. [1] http://perldoc.perl.org/Getopt/Long.html#Summary-of-Option-Specifications
2014-01-20keep the old name in copyright for more transparencyv0.37Sven Nierlein7-19/+33
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-01-20renamed module into Monitoring::PluginSven Nierlein7-0/+2159
since the complete monitoring team has been renamed, we also rename this module. Signed-off-by: Sven Nierlein <sven@nierlein.de>