diff options
author | Gavin Carr <gonzai@users.sourceforge.net> | 2006-09-11 01:57:26 +0000 |
---|---|---|
committer | Gavin Carr <gonzai@users.sourceforge.net> | 2006-09-11 01:57:26 +0000 |
commit | 1f8410dd1914449ce52ffa8fd47a308c5b372e52 (patch) | |
tree | dc14d10c159541daa211ef59f8d69e859e05fd13 /lib/Nagios/Plugin.pm | |
parent | bc239b3bd5023ed2da77ab03c581e56a4772f1d4 (diff) | |
download | monitoring-plugin-perl-1f8410dd1914449ce52ffa8fd47a308c5b372e52.tar.gz |
Add constants, nagios_exit, and nagios_die to Nagios::Plugin::Base.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1477 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/Nagios/Plugin.pm')
-rw-r--r-- | lib/Nagios/Plugin.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index 0915571..88c15c5 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm | |||
@@ -43,8 +43,7 @@ sub shortname { shift; @_ ? $shortname = shift : $shortname } | |||
43 | 43 | ||
44 | sub die { | 44 | sub die { |
45 | my $self = shift; | 45 | my $self = shift; |
46 | my %args = @_; | 46 | Nagios::Plugin::Base::die(@_, { plugin => $self }); |
47 | Nagios::Plugin::Base->die(\%args, $self); | ||
48 | } | 47 | } |
49 | 48 | ||
50 | 1; | 49 | 1; |