summaryrefslogtreecommitdiffstats
path: root/lib/Monitoring
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2014-12-08 13:15:26 +0100
committerSven Nierlein <sven@nierlein.de>2014-12-08 13:15:26 +0100
commita9e61b4a6b89b6dcf73fe75d1662a0ad877279c1 (patch)
tree7b818c0d982e10f4c1af9f586a9c42505eaad5f5 /lib/Monitoring
parentdfae38b656242898ce962c9ad93ed66be45fc3d4 (diff)
downloadmonitoring-plugin-perl-a9e61b4a6b89b6dcf73fe75d1662a0ad877279c1.tar.gz
correct getopt help
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>
Diffstat (limited to 'lib/Monitoring')
-rw-r--r--lib/Monitoring/Plugin/Getopt.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm
index ebdd559..63f751c 100644
--- a/lib/Monitoring/Plugin/Getopt.pm
+++ b/lib/Monitoring/Plugin/Getopt.pm
@@ -524,8 +524,8 @@ processing for Nagios plugins
524 $ng->getopts; 524 $ng->getopts;
525 525
526 # Access arguments using named accessors or or via the generic get() 526 # Access arguments using named accessors or or via the generic get()
527 print $ng->warning; 527 print $ng->opts->warning;
528 print $ng->get('critical'); 528 print $ng->opts->get('critical');
529 529
530 530
531 531