summaryrefslogtreecommitdiffstats
path: root/lib/Nagios/Plugin/Performance.pm
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-09-04 13:17:01 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2007-09-04 13:17:01 +0000
commit3ec5d3b8b2426a9acce2faa23a58e615af62930f (patch)
tree544b1c26587ced6c82b992fc151c66981dc35e81 /lib/Nagios/Plugin/Performance.pm
parent819c55cfdd0c26069229ec27a02576d4169defdb (diff)
downloadmonitoring-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/Performance.pm')
-rw-r--r--lib/Nagios/Plugin/Performance.pm2
1 files changed, 1 insertions, 1 deletions
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 {
25sub _parse { 25sub _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,