change regexp snmp value to accept negative numbers

This commit is contained in:
alejandro 2023-07-10 16:44:51 +02:00
parent 6456238d14
commit 7991c6fd54
1 changed files with 1 additions and 1 deletions

View File

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