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:
commit
58c2037da6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue