diff options
| author | Ton Voon <tonvoon@users.sourceforge.net> | 2007-09-04 13:17:01 +0000 |
|---|---|---|
| committer | Ton Voon <tonvoon@users.sourceforge.net> | 2007-09-04 13:17:01 +0000 |
| commit | 3ec5d3b8b2426a9acce2faa23a58e615af62930f (patch) | |
| tree | 544b1c26587ced6c82b992fc151c66981dc35e81 /lib/Nagios/Plugin | |
| parent | 819c55cfdd0c26069229ec27a02576d4169defdb (diff) | |
| download | monitoring-plugin-perl-3ec5d3b8b2426a9acce2faa23a58e615af62930f.tar.gz | |
Fixed CPAN test failures due to bad MANIFEST. Fixed version numbering
Fixed a performance parsing problem where uom=% wasn't being recognised
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1775 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/Nagios/Plugin')
| -rw-r--r-- | lib/Nagios/Plugin/Functions.pm | 2 | ||||
| -rw-r--r-- | lib/Nagios/Plugin/Performance.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Nagios/Plugin/Functions.pm b/lib/Nagios/Plugin/Functions.pm index e8b292e..318b2cb 100644 --- a/lib/Nagios/Plugin/Functions.pm +++ b/lib/Nagios/Plugin/Functions.pm | |||
| @@ -12,7 +12,7 @@ use Params::Validate qw(validate :types); | |||
| 12 | use Math::Calc::Units; | 12 | use Math::Calc::Units; |
| 13 | 13 | ||
| 14 | # Remember to update Nagios::Plugins as well | 14 | # Remember to update Nagios::Plugins as well |
| 15 | our $VERSION = 0.17; | 15 | our $VERSION = 0.19; |
| 16 | 16 | ||
| 17 | our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); | 17 | our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); |
| 18 | 18 | ||
diff --git a/lib/Nagios/Plugin/Performance.pm b/lib/Nagios/Plugin/Performance.pm index 7ce5fa1..55e3ddc 100644 --- a/lib/Nagios/Plugin/Performance.pm +++ b/lib/Nagios/Plugin/Performance.pm | |||
| @@ -25,7 +25,7 @@ sub import { | |||
| 25 | sub _parse { | 25 | sub _parse { |
| 26 | my $class = shift; | 26 | my $class = shift; |
| 27 | my $string = shift; | 27 | my $string = shift; |
| 28 | $string =~ s/^([^=]+)=([\d\.]+)(\w*);?([\d\.]+)?;?([\d\.]+)?;?([\d\.]+)?;?([\d\.]+)?\s*//; | 28 | $string =~ s/^([^=]+)=([\d\.]+)([\w%]*);?([\d\.]+)?;?([\d\.]+)?;?([\d\.]+)?;?([\d\.]+)?\s*//; |
| 29 | return undef unless ((defined $1 && $1 ne "") && (defined $2 && $2 ne "")); | 29 | return undef unless ((defined $1 && $1 ne "") && (defined $2 && $2 ne "")); |
| 30 | my $p = $class->new( | 30 | my $p = $class->new( |
| 31 | label => $1, value => $2+0, uom => $3, warning => $4, critical => $5, | 31 | label => $1, value => $2+0, uom => $3, warning => $4, critical => $5, |
