policy_linked in set_update_*_module added. Ticket #3292.

This commit is contained in:
Daniel Maya 2016-06-15 10:15:14 +02:00
parent c366640b73
commit 0696bccdcd
1 changed files with 22 additions and 12 deletions

View File

@ -1942,7 +1942,8 @@ function api_set_update_network_module($id_module, $thrash1, $other, $thrash3) {
'min_ff_event_warning', 'min_ff_event_warning',
'min_ff_event_critical', 'min_ff_event_critical',
'critical_inverse', 'critical_inverse',
'warning_inverse'); 'warning_inverse',
'policy_linked');
$values = array(); $values = array();
$cont = 0; $cont = 0;
@ -1953,6 +1954,8 @@ function api_set_update_network_module($id_module, $thrash1, $other, $thrash3) {
$cont++; $cont++;
} }
$values['policy_linked'] = 0;
$result_update = modules_update_agent_module($id_module, $values); $result_update = modules_update_agent_module($id_module, $values);
@ -2150,7 +2153,8 @@ function api_set_update_plugin_module($id_module, $thrash1, $other, $thrash3) {
'min_ff_event_warning', 'min_ff_event_warning',
'min_ff_event_critical', 'min_ff_event_critical',
'critical_inverse', 'critical_inverse',
'warning_inverse'); 'warning_inverse',
'policy_linked');
$values = array(); $values = array();
$cont = 0; $cont = 0;
@ -2166,6 +2170,7 @@ function api_set_update_plugin_module($id_module, $thrash1, $other, $thrash3) {
$cont++; $cont++;
} }
$values['policy_linked']= 0;
$result_update = modules_update_agent_module($id_module, $values); $result_update = modules_update_agent_module($id_module, $values);
if ($result_update < 0) if ($result_update < 0)
@ -2522,7 +2527,8 @@ function api_set_update_data_module($id_module, $thrash1, $other, $thrash3) {
'min_ff_event_critical', 'min_ff_event_critical',
'ff_timeout', 'ff_timeout',
'critical_inverse', 'critical_inverse',
'warning_inverse'); 'warning_inverse',
'policy_linked');
$values = array(); $values = array();
$cont = 0; $cont = 0;
@ -2534,6 +2540,7 @@ function api_set_update_data_module($id_module, $thrash1, $other, $thrash3) {
$cont++; $cont++;
} }
$values['policy_linked'] = 0;
$result_update = modules_update_agent_module($id_module, $values); $result_update = modules_update_agent_module($id_module, $values);
if ($result_update < 0) if ($result_update < 0)
@ -2818,7 +2825,8 @@ function api_set_update_snmp_module($id_module, $thrash1, $other, $thrash3) {
'each_ff', 'each_ff',
'min_ff_event_normal', 'min_ff_event_normal',
'min_ff_event_warning', 'min_ff_event_warning',
'min_ff_event_critical'); 'min_ff_event_critical',
'policy_linked');
} }
else { else {
$snmp_module_fields = array( $snmp_module_fields = array(
@ -2848,7 +2856,8 @@ function api_set_update_snmp_module($id_module, $thrash1, $other, $thrash3) {
'each_ff', 'each_ff',
'min_ff_event_normal', 'min_ff_event_normal',
'min_ff_event_warning', 'min_ff_event_warning',
'min_ff_event_critical'); 'min_ff_event_critical',
'policy_linked');
} }
$values = array(); $values = array();
@ -2861,6 +2870,7 @@ function api_set_update_snmp_module($id_module, $thrash1, $other, $thrash3) {
$cont++; $cont++;
} }
$values['policy_linked'] = 0;
$result_update = modules_update_agent_module($id_module, $values); $result_update = modules_update_agent_module($id_module, $values);
if ($result_update < 0) if ($result_update < 0)