summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Nagios/Plugin.pm2
-rw-r--r--lib/Nagios/Plugin/Base.pm3
-rw-r--r--lib/Nagios/Plugin/Getopt.pm3
-rw-r--r--lib/Nagios/Plugin/Performance.pm4
-rw-r--r--lib/Nagios/Plugin/Range.pm4
-rw-r--r--lib/Nagios/Plugin/Threshold.pm3
6 files changed, 9 insertions, 10 deletions
diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm
index 4e95e98..c14dfa6 100644
--- a/lib/Nagios/Plugin.pm
+++ b/lib/Nagios/Plugin.pm
@@ -23,7 +23,7 @@ use Exporter;
23our @ISA = qw(Exporter Nagios::__::Plugin); 23our @ISA = qw(Exporter Nagios::__::Plugin);
24our @EXPORT_OK = qw(%ERRORS); 24our @EXPORT_OK = qw(%ERRORS);
25 25
26our $VERSION = '0.13'; 26our $VERSION = $Nagios::Plugin::Base::VERSION;
27 27
28sub add_perfdata { 28sub add_perfdata {
29 my ($self, %args) = @_; 29 my ($self, %args) = @_;
diff --git a/lib/Nagios/Plugin/Base.pm b/lib/Nagios/Plugin/Base.pm
index d1678a5..c2e9902 100644
--- a/lib/Nagios/Plugin/Base.pm
+++ b/lib/Nagios/Plugin/Base.pm
@@ -5,8 +5,7 @@ package Nagios::Plugin::Base;
5use strict; 5use strict;
6use warnings; 6use warnings;
7 7
8use Nagios::Plugin; 8our $VERSION = "0.13";
9our ($VERSION) = $Nagios::Plugin::VERSION;
10 9
11use Exporter; 10use Exporter;
12our @ISA = qw(Exporter); 11our @ISA = qw(Exporter);
diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm
index dedf92c..d291b2f 100644
--- a/lib/Nagios/Plugin/Getopt.pm
+++ b/lib/Nagios/Plugin/Getopt.pm
@@ -13,8 +13,9 @@ use Carp;
13use Params::Validate qw(:all); 13use Params::Validate qw(:all);
14use base qw(Class::Accessor); 14use base qw(Class::Accessor);
15 15
16use Nagios::Plugin::Base;
16use vars qw($VERSION); 17use vars qw($VERSION);
17$VERSION = '0.02'; 18$VERSION = $Nagios::Plugin::Base::VERSION;
18 19
19# Standard defaults 20# Standard defaults
20my %DEFAULT = ( 21my %DEFAULT = (
diff --git a/lib/Nagios/Plugin/Performance.pm b/lib/Nagios/Plugin/Performance.pm
index 2af22bd..83c92fb 100644
--- a/lib/Nagios/Plugin/Performance.pm
+++ b/lib/Nagios/Plugin/Performance.pm
@@ -7,8 +7,8 @@ use warnings;
7 7
8use Carp; 8use Carp;
9use Nagios::Plugin::Threshold; 9use Nagios::Plugin::Threshold;
10use Nagios::Plugin; 10use Nagios::Plugin::Base;
11our ($VERSION) = $Nagios::Plugin::VERSION; 11our ($VERSION) = $Nagios::Plugin::Base::VERSION;
12 12
13use Class::Struct; 13use Class::Struct;
14struct "Nagios::Plugin::Performance" => { 14struct "Nagios::Plugin::Performance" => {
diff --git a/lib/Nagios/Plugin/Range.pm b/lib/Nagios/Plugin/Range.pm
index c0c47e4..b17cc96 100644
--- a/lib/Nagios/Plugin/Range.pm
+++ b/lib/Nagios/Plugin/Range.pm
@@ -6,8 +6,8 @@ use strict;
6use warnings; 6use warnings;
7use Carp; 7use Carp;
8 8
9use Nagios::Plugin; 9use Nagios::Plugin::Base;
10our ($VERSION) = $Nagios::Plugin::VERSION; 10our ($VERSION) = $Nagios::Plugin::Base::VERSION;
11 11
12use overload 12use overload
13 '""' => sub { shift->stringify }; 13 '""' => sub { shift->stringify };
diff --git a/lib/Nagios/Plugin/Threshold.pm b/lib/Nagios/Plugin/Threshold.pm
index 494383f..f3410e8 100644
--- a/lib/Nagios/Plugin/Threshold.pm
+++ b/lib/Nagios/Plugin/Threshold.pm
@@ -7,8 +7,7 @@ use warnings;
7 7
8use Nagios::Plugin::Range; 8use Nagios::Plugin::Range;
9use Nagios::Plugin::Base; 9use Nagios::Plugin::Base;
10use Nagios::Plugin; 10our ($VERSION) = $Nagios::Plugin::Base::VERSION;
11our ($VERSION) = $Nagios::Plugin::VERSION;
12 11
13use Class::Struct; 12use Class::Struct;
14struct "Nagios::Plugin::Threshold" => { 13struct "Nagios::Plugin::Threshold" => {