mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed macro address on network server modules
This commit is contained in:
parent
bc6b4acd8b
commit
72cb359133
@ -480,7 +480,7 @@ sub exec_network_module ($$$$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Use the agent address by default
|
# Use the agent address by default
|
||||||
if (! defined($ip_target) || $ip_target eq '' || $ip_target eq 'auto') {
|
if (! defined($ip_target) || $ip_target eq '' || $ip_target eq 'auto'|| $ip_target eq '_address_') {
|
||||||
$ip_target = $agent_row->{'direccion'};
|
$ip_target = $agent_row->{'direccion'};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,6 +161,11 @@ sub data_consumer ($$) {
|
|||||||
else {
|
else {
|
||||||
$wmi_command = $pa_config->{'wmi_client'} . ' -N';
|
$wmi_command = $pa_config->{'wmi_client'} . ' -N';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Check ip_taget macro
|
||||||
|
if ($module->{'ip_target'} eq '_address_') {
|
||||||
|
$module->{'ip_target'} = get_db_value($dbh, "SELECT direccion FROM tagente WHERE id_agente=?", $module->{'id_agente'});
|
||||||
|
}
|
||||||
|
|
||||||
# Use a custom namespace
|
# Use a custom namespace
|
||||||
my $namespace = $module->{'tcp_send'};
|
my $namespace = $module->{'tcp_send'};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user