mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
+ Fix regexp in tcpcon
This commit is contained in:
parent
9587a2bf8d
commit
5f925ea03b
@ -140,10 +140,10 @@ sub get_from_rfc4022 {
|
|||||||
|
|
||||||
my ($src_addr, $src_port, $dst_addr, $dst_port);
|
my ($src_addr, $src_port, $dst_addr, $dst_port);
|
||||||
if ($ipv eq 'ipv6') {
|
if ($ipv eq 'ipv6') {
|
||||||
/^$oid_tcpConnectionState\.\d+\.\d+\.((?:\d+\.){16})(\d+)\.\d+\.((?:\d+\.){16})(\d+)/;
|
/^$oid_tcpConnectionState\.\d+\.\d+\.((?:\d+\.){16})(\d+)\.\d+\.\d+\.((?:\d+\.){16})(\d+)/;
|
||||||
($src_addr, $src_port, $dst_addr, $dst_port) = ($self->get_ipv6(value => $1), $2, $self->get_ipv6(value => $3), $4);
|
($src_addr, $src_port, $dst_addr, $dst_port) = ($self->get_ipv6(value => $1), $2, $self->get_ipv6(value => $3), $4);
|
||||||
} else {
|
} else {
|
||||||
/^$oid_tcpConnectionState\.\d+\.\d+\.(\d+\.\d+\.\d+\.\d+)\.(\d+)\.\d+\.(\d+\.\d+\.\d+\.\d+)\.(\d+)/;
|
/^$oid_tcpConnectionState\.\d+\.\d+\.(\d+\.\d+\.\d+\.\d+)\.(\d+)\.\d+\.\d+\.(\d+\.\d+\.\d+\.\d+)\.(\d+)/;
|
||||||
($src_addr, $src_port, $dst_addr, $dst_port) = ($1, $2, $3, $4);
|
($src_addr, $src_port, $dst_addr, $dst_port) = ($1, $2, $3, $4);
|
||||||
}
|
}
|
||||||
$self->{states}->{$map_states{$result->{$_}}}++;
|
$self->{states}->{$map_states{$result->{$_}}}++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user