diff options
Diffstat (limited to 'lib/Nagios')
-rw-r--r-- | lib/Nagios/Plugin.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index 88c15c5..41bff91 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm | |||
@@ -6,6 +6,7 @@ use 5.008004; | |||
6 | use Class::Struct; | 6 | use Class::Struct; |
7 | struct "Nagios::__::Plugin" => { | 7 | struct "Nagios::__::Plugin" => { |
8 | perfdata => '@', | 8 | perfdata => '@', |
9 | shortname => '$', | ||
9 | }; | 10 | }; |
10 | 11 | ||
11 | package Nagios::Plugin; | 12 | package Nagios::Plugin; |
@@ -38,9 +39,6 @@ sub all_perfoutput { | |||
38 | 39 | ||
39 | sub set_thresholds { shift; Nagios::Plugin::Threshold->set_thresholds(@_); } | 40 | sub set_thresholds { shift; Nagios::Plugin::Threshold->set_thresholds(@_); } |
40 | 41 | ||
41 | my $shortname; | ||
42 | sub shortname { shift; @_ ? $shortname = shift : $shortname } | ||
43 | |||
44 | sub die { | 42 | sub die { |
45 | my $self = shift; | 43 | my $self = shift; |
46 | Nagios::Plugin::Base::die(@_, { plugin => $self }); | 44 | Nagios::Plugin::Base::die(@_, { plugin => $self }); |