Fix default values for SNMP v3 modules
This commit is contained in:
parent
025aa9f72a
commit
e1829d5bea
|
@ -459,10 +459,10 @@ if ($id_agent_module) {
|
|||
$snmp_version = 1;
|
||||
$snmp3_auth_user = '';
|
||||
$snmp3_auth_pass = '';
|
||||
$snmp3_auth_method = '';
|
||||
$snmp3_privacy_method = '';
|
||||
$snmp3_auth_method = 'MD5';
|
||||
$snmp3_privacy_method = 'DES';
|
||||
$snmp3_privacy_pass = '';
|
||||
$snmp3_security_level = '';
|
||||
$snmp3_security_level = 'noAuthNoPriv';
|
||||
|
||||
// For Remote CMD.
|
||||
$command_text = '';
|
||||
|
|
|
@ -405,7 +405,22 @@ push_table_simple($data, 'field_snmpv3_row1');
|
|||
|
||||
$data = [];
|
||||
$data[0] = __('Privacy method');
|
||||
$data[1] = html_print_select(['DES' => __('DES'), 'AES' => __('AES')], 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true, false, false, '', $disabledBecauseInPolicy);
|
||||
$data[1] = html_print_select(
|
||||
[
|
||||
'DES' => __('DES'),
|
||||
'AES' => __('AES'),
|
||||
],
|
||||
'snmp3_privacy_method',
|
||||
$snmp3_privacy_method,
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
'',
|
||||
$disabledBecauseInPolicy
|
||||
);
|
||||
$data[2] = __('Privacy pass').ui_print_help_tip(__('The pass length must be eight character minimum.'), true);
|
||||
$data[3] = html_print_input_password(
|
||||
'snmp3_privacy_pass',
|
||||
|
|
Loading…
Reference in New Issue