mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 09:05:19 +02:00
(plugin) os::linux::local - mode check-plugin fix perfdata parse regexp (#4015)
This commit is contained in:
parent
8b5b174800
commit
78b9a62257
@ -102,7 +102,7 @@ sub check_options {
|
||||
sub parse_perfdatas {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
while ($options{perfdatas} =~ /(.*?)=([0-9\.]+)([^0-9;]+?)?([0-9.@;]+?)?(?:\s+|\Z)/g) {
|
||||
while ($options{perfdatas} =~ /(.*?)=([0-9\.]+)([^0-9;]+?)?([0-9.@;:]+?)?(?:\s+|\Z)/g) {
|
||||
my ($label, $value, $unit, $extra) = ($1, $2, $3, $4);
|
||||
$label = centreon::plugins::misc::trim($label);
|
||||
$label =~ s/^'//;
|
||||
|
Loading…
x
Reference in New Issue
Block a user