(plugin) os::linux::local - mode check-plugin fix perfdata parse regexp (#4015)

This commit is contained in:
qgarnier 2022-10-25 11:40:51 +02:00 committed by GitHub
parent 8b5b174800
commit 78b9a62257
1 changed files with 1 additions and 1 deletions

View File

@ -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/^'//;