diff --git a/pandora_console/godmode/wizards/HostDevices.class.php b/pandora_console/godmode/wizards/HostDevices.class.php
index b3f59191f2..c6b5c20c1a 100755
--- a/pandora_console/godmode/wizards/HostDevices.class.php
+++ b/pandora_console/godmode/wizards/HostDevices.class.php
@@ -1324,8 +1324,6 @@ class HostDevices extends Wizard
);
}
- hd($snmp_available_keys);
-
if (check_acl($config['id_user'], 0, 'UM')) {
$link_to_cs = '
'',
+ 'content' => '
To detect and find systems on your network we will need access credentials. The SNMP community for network devices, and at least one set of credentials for Linux and Windows environments (they do not need to be super administrators, but they do need to be able to connect remotely). Without the credentials, we will only be able to detect if the devices are connected to the network.
',
+ ],
+ true
+ );
+
+ // SNMP Communities
+ echo html_print_label_input_block(
+ __('SNMP communities to try with').ui_print_help_tip(
+ __(
+ 'You can specify several values, separated by commas, for example: public,mysecret,1234'
+ ),
+ true
+ ),
+ html_print_input(
+ [
+ 'name' => 'community',
+ 'type' => 'text',
+ 'value' => 'public',
+ 'size' => 25,
+ 'return' => true
+ ],
+ 'div',
+ true
+ ),
+ [
+ 'div_id' => 'snmp-communities-div'
+ ]
+ );
+ ui_require_jquery_file('tag-editor.min','include/javascript/',true);
+ ui_require_jquery_file('caret.min','include/javascript/',true);
+ ui_require_css_file('jquery.tag-editor','include/styles/',true);
+
+ echo '
';
+
+ // WMI Credentials
+ echo html_print_label_input_block(
+ __('WMI credentials'),
+ html_print_div(
+ [
+ 'id' => 'wmi-creds',
+ 'content' => ''
+ ],
+ true
+ )
+ );
+ echo html_print_div(
+ [
+ 'id' => 'wmi-cred-form',
+ 'hidden' => true,
+ 'style' => 'margin: 3px; display: flex; align-items: center;',
+ 'content' => html_print_div(
+ [
+ 'id' => 'wmi-cred-user-div',
+ 'style' => 'width: 260px;',
+ 'content' => html_print_label_input_block(' '.__('User').' ', html_print_input_text(
+ 'wmi-cred-user',
+ '',
+ '',
+ false,
+ 50, // Max length
+ true,
+ false,
+ true,
+ '',
+ 'w100p',
+ '',
+ 'off',
+ false,
+ '',
+ '',
+ '',
+ false,
+ '',
+ 'Username'
+ ),['div_style' => 'display: flex; align-items: center;'])
+ ],
+ true
+ )
+ .
+ html_print_div(
+ [
+ 'id' => 'wmi-cred-pass-div',
+ 'style' => 'width: 260px;',
+ 'content' => html_print_label_input_block(' '.__('Password').' ', html_print_input_password(
+ 'wmi-cred-pass',
+ '',
+ '',
+ false,
+ 50, // Max length
+ true,
+ false,
+ true,
+ 'w100p',
+ 'off',
+ false,
+ ''
+ ),['div_style' => 'display: flex; align-items: center;'])
+ ],
+ true
+ )
+ .
+ html_print_div(
+ [
+ 'id' => 'wmi-cred-namespace-div',
+ 'style' => 'width: 260px;',
+ 'content' => html_print_label_input_block(' '.__('Namespace').' ', html_print_input_text(
+ 'wmi-cred-namespace',
+ '',
+ '',
+ false,
+ 50, // Max length
+ true,
+ false,
+ true,
+ '',
+ 'w100p',
+ '',
+ 'off',
+ false,
+ '',
+ '',
+ '',
+ false,
+ '',
+ 'Namespace'
+ ),['div_style' => 'display: flex; align-items: center;'])
+ ],
+ true
+ )
+ .
+ ''.html_print_image(
+ 'images/delete.svg',
+ true,
+ [
+ 'title' => __('Delete'),
+ 'style' => 'cursor: pointer;',
+ 'class' => 'main_menu_icon invert_filter',
+ ]
+ ).''
+ ],
+ true
+ );
+ echo '
';
+ echo html_print_button(
+ __('Add'),
+ 'add-wmi-cred',
+ false,
+ 'add_discovery_credential("wmi-cred-form","wmi-creds");',
+ [
+ 'icon' => 'plus',
+ 'mode' => 'secondary',
+ 'class' => 'mini'
+ ],
+ true,
+ false,
+ false,
+ ''
+ );
+
+ echo '
';
+
+ // RCM Credentials
+ echo html_print_label_input_block(
+ __('Remote commands credentials'),
+ html_print_div(
+ [
+ 'id' => 'rcmd-creds',
+ 'content' => ''
+ ],
+ true
+ )
+ );
+ echo html_print_div(
+ [
+ 'id' => 'rcmd-cred-form',
+ 'hidden' => true,
+ 'style' => 'margin: 3px; display: flex; align-items: center;',
+ 'content' => html_print_div(
+ [
+ 'id' => 'rcmd-cred-user-div',
+ 'style' => 'width: 260px;',
+ 'content' => html_print_label_input_block(' '.__('User').' ', html_print_input_text(
+ 'rcmd-cred-user',
+ '',
+ '',
+ false,
+ 50, // Max length
+ true,
+ false,
+ true,
+ '',
+ 'w100p',
+ '',
+ 'off',
+ false,
+ '',
+ '',
+ '',
+ false,
+ '',
+ 'Username'
+ ),['div_style' => 'display: flex; align-items: center;'])
+ ],
+ true
+ )
+ .
+ html_print_div(
+ [
+ 'id' => 'rcmd-cred-pass-div',
+ 'style' => 'width: 260px;',
+ 'content' => html_print_label_input_block(' '.__('Password').' ', html_print_input_password(
+ 'rcmd-cred-pass',
+ '',
+ '',
+ false,
+ 50, // Max length
+ true,
+ false,
+ true,
+ 'w100p',
+ 'off',
+ false,
+ ''
+ ),['div_style' => 'display: flex; align-items: center;'])
+ ],
+ true
+ )
+ .
+ ''.html_print_image(
+ 'images/delete.svg',
+ true,
+ [
+ 'title' => __('Delete'),
+ 'style' => 'cursor: pointer;',
+ 'class' => 'main_menu_icon invert_filter',
+ ]
+ ).''
+ ],
+ true
+ );
+ echo '
';
+ echo html_print_button(
+ __('Add'),
+ 'add-rcmd-cred',
+ false,
+ 'add_discovery_credential("rcmd-cred-form","rcmd-creds");',
+ [
+ 'icon' => 'plus',
+ 'mode' => 'secondary',
+ 'class' => 'mini'
+ ],
+ true,
+ false,
+ false,
+ ''
+ );
+
echo html_print_submit_button(__('Create'), 'basic_net', false, ['icon' => 'next', 'style' => 'margin-top:15px; float:right;']);
?>
+