summaryrefslogtreecommitdiffstats
path: root/lib/Nagios/Plugin.pm
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-08-31 13:21:10 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2007-08-31 13:21:10 (GMT)
commit95dba9c4213c2e7e8f4b572efd873c1979406221 (patch)
treec39a8dc0022ae98b09bfe5fa75f2dc67b3c97a69 /lib/Nagios/Plugin.pm
parent4421aa3c2a695335cad006f32ece6c9c5da11165 (diff)
downloadmonitoring-plugin-perl-95dba9c4213c2e7e8f4b572efd873c1979406221.tar.gz
Fixed bug where warn or crit = 0 will raise an error. Optional flag to
tell nagios_die to use die instead of exit so trappable by eval git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1772 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/Nagios/Plugin.pm')
-rw-r--r--lib/Nagios/Plugin.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm
index 459e6bb..fe83575 100644
--- a/lib/Nagios/Plugin.pm
+++ b/lib/Nagios/Plugin.pm
@@ -476,7 +476,8 @@ form "SHORTNAME CODE - $message".
476=item nagios_die( $message, [<CODE>] ) 476=item nagios_die( $message, [<CODE>] )
477 477
478Same as nagios_exit(), except that CODE is optional, defaulting 478Same as nagios_exit(), except that CODE is optional, defaulting
479to UNKNOWN. 479to UNKNOWN. NOTE: exceptions are not raised by default to calling code.
480Set C<$_use_die> flag if this functionality is required (see test code).
480 481
481=item die( $message, [<CODE>] ) 482=item die( $message, [<CODE>] )
482 483