mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-24 06:15:16 +02:00
2011-08-10 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/NetworkServer.pm: Added support for IPv6 tcp check. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4695 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e7fca17516
commit
35ed1a38f0
@ -1,3 +1,7 @@
|
|||||||
|
2011-08-10 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/NetworkServer.pm: Added support for IPv6 tcp check.
|
||||||
|
|
||||||
2011-08-09 Miguel de Dios <miguel.dedios@artica.es>
|
2011-08-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* DEBIAN/control: fixed the name of package and update version number.
|
* DEBIAN/control: fixed the name of package and update version number.
|
||||||
|
@ -24,7 +24,7 @@ use threads;
|
|||||||
use threads::shared;
|
use threads::shared;
|
||||||
use Thread::Semaphore;
|
use Thread::Semaphore;
|
||||||
|
|
||||||
use IO::Socket::INET;
|
use IO::Socket::INET6;
|
||||||
use HTML::Entities;
|
use HTML::Entities;
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
@ -161,11 +161,12 @@ sub pandora_query_tcp ($$$$$$$$) {
|
|||||||
for ($counter =0; $counter < $pa_config->{'tcp_checks'}; $counter++){
|
for ($counter =0; $counter < $pa_config->{'tcp_checks'}; $counter++){
|
||||||
my $temp; my $temp2;
|
my $temp; my $temp2;
|
||||||
my $tam;
|
my $tam;
|
||||||
my $handle=IO::Socket::INET->new(
|
my $handle=IO::Socket::INET6->new(
|
||||||
Proto=>"tcp",
|
Proto=>"tcp",
|
||||||
PeerAddr=>$ip_target,
|
PeerAddr=>$ip_target,
|
||||||
Timeout=>$pa_config->{'tcp_timeout'},
|
Timeout=>$pa_config->{'tcp_timeout'},
|
||||||
PeerPort=>$tcp_port,
|
PeerPort=>$tcp_port,
|
||||||
|
Multihomed=>1,
|
||||||
Blocking=>0 ); # Non blocking !!, very important !
|
Blocking=>0 ); # Non blocking !!, very important !
|
||||||
|
|
||||||
if (defined ($handle)){
|
if (defined ($handle)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user