(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 {
|
sub parse_perfdatas {
|
||||||
my ($self, %options) = @_;
|
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);
|
my ($label, $value, $unit, $extra) = ($1, $2, $3, $4);
|
||||||
$label = centreon::plugins::misc::trim($label);
|
$label = centreon::plugins::misc::trim($label);
|
||||||
$label =~ s/^'//;
|
$label =~ s/^'//;
|
||||||
|
|
Loading…
Reference in New Issue