mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-7001-open-modulos-host-latency-no-reportan-datos' into 'develop'
Fixed latency modules See merge request artica/pandorafms!3813
This commit is contained in:
commit
6dee7a68db
@ -496,9 +496,11 @@ sub exec_network_module ($$$$) {
|
|||||||
}
|
}
|
||||||
elsif ($id_tipo_modulo == 7){ # ICMP (data for latency in ms)
|
elsif ($id_tipo_modulo == 7){ # ICMP (data for latency in ms)
|
||||||
$module_data = pandora_ping_latency ($pa_config, $ip_target, $timeout, $retries);
|
$module_data = pandora_ping_latency ($pa_config, $ip_target, $timeout, $retries);
|
||||||
|
|
||||||
if (defined($module_data)) {
|
if (defined($module_data)) {
|
||||||
$module_result = 1; # Unsuccessful
|
$module_result = 0; # Successful
|
||||||
|
} else {
|
||||||
|
$module_result = 1; # Unsuccessful: Cannot reach target.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user