Merge branch 'ent-10507-15102-plugin-dynamic_snmp-no-opera-correctamente-con-valores-negativos' into 'develop'

change regexp snmp value to accept negative numbers

See merge request artica/pandorafms!6226
This commit is contained in:
Alejandro Sánchez 2023-07-12 08:26:42 +00:00
commit 58c2037da6
1 changed files with 2 additions and 1 deletions

View File

@ -2366,7 +2366,8 @@ sub snmp_data_switcher {
}
if ($data{type} eq "generic_data"){
($data{data} = $pure_data) =~ s/\D*//g;
$data{data} = $pure_data;
$data{data} =~ s/[^-\d]//g;
}
return \%data;