summaryrefslogtreecommitdiffstats
path: root/lib/Monitoring
AgeCommit message (Collapse)AuthorFilesLines
2016-04-20Update Getopt.pmrefs/pull/12/headPaul Dugas1-1/+1
Allow hypen or underscore in plugin name.
2016-04-20Update Getopt.pmPaul Dugas1-1/+1
Wrong case in ALRM regex.
2016-04-02make regular expression 5.8 compatibleSven Nierlein1-1/+1
\R was introduced in 5.10 too
2016-04-02make regular expression 5.8 compatibleSven Nierlein1-1/+1
2016-04-02Fixed regex in plugin_exit() that handles hyphen for LONGOUTPUT.refs/pull/11/headPaul Dugas1-1/+1
Added tests.
2016-03-31Support LONGTEXT outputrefs/pull/10/headPaul Dugas1-1/+4
Pass `TEXT OUTPUT\nLONGTEXT1\nLONGTEXT2` to as the second parameter to `plugin_exit()` to add LONGOUTPUT lines. If the parameter is has a leading newline (i.e. `\nLONGTEXT1\nLONGTEXT2`), skip emitting the hyphen (dash).
2015-12-03output empty values as "U"refs/pull/5/headdaku36491-1/+8
output empty performance data value as value "U" to "indicate that the actual value couldn't be determined" (defined in https://nagios-plugins.org/doc/guidelines.html#AEN200) and do valid output
2015-10-02add description for getter / setter methods (#107370)Sven Nierlein1-0/+26
Signed-off-by: Sven Nierlein <sven@nierlein.de> Original-Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
2015-04-11released 0.39v0.39Sven Nierlein2-2/+2
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-04-11fix "Redundant argument in sprintf" in perl 5.21 (RT #103214)Sven Nierlein1-7/+9
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-12-28Merge pull request #2 from evgeni/getopt_colon_specSven Nierlein1-4/+14
GetOpt::Long optional arguments using a colon instead of an equal sign
2014-12-28release 0.38v0.38Sven Nierlein2-2/+2
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-12-08fix link to documentationSven Nierlein1-1/+1
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-12-08correct getopt helpSven Nierlein1-2/+2
its not true that the options are available via the main Monitoring::Plugin object. Instead you have to fetch them from the opts object. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-10-03format optional arguments in square braketsrefs/pull/2/headEvgeni 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 Nierlein8-21/+36
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-01-19renamed module into Monitoring::PluginSven Nierlein8-0/+2871
since the complete monitoring team has been renamed, we also rename this module. Signed-off-by: Sven Nierlein <sven@nierlein.de>