Get the name of policy in tpolicies

This commit is contained in:
Jose Gonzalez 2020-06-08 16:44:09 +02:00
parent c8d8b1a312
commit 7c3f30a277
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
_server_name_ => (defined ($agent)) ? $agent->{'server_name'} : '',
_target_ip_ => (defined ($module)) ? $module->{'ip_target'} : '',
_target_port_ => (defined ($module)) ? $module->{'tcp_port'} : '',
_policy_ => undef,
_policy_ => (defined ($module)) ? get_db_value ($dbh, "SELECT name FROM tpolicies WHERE id = ?", $module->{'id_policy_module'}) : '',
_plugin_parameters_ => (defined ($module)) ? $module->{'plugin_parameter'} : '',
_email_tag_ => undef,
_phone_tag_ => undef,