diff --git a/cli/add_device.php b/cli/add_device.php index c737771abd..c1934cefaa 100644 --- a/cli/add_device.php +++ b/cli/add_device.php @@ -75,7 +75,7 @@ if (sizeof($parms)) { $ping_retries = read_config_option('ping_retries'); $max_oids = read_config_option('max_get_size'); $proxy = false; - $device_threads = 1; + $device_threads = read_config_option('device_threads');; $displayHostTemplates = FALSE; $displayCommunities = FALSE; @@ -433,7 +433,7 @@ if (sizeof($parms)) { $snmp_port, $snmp_timeout, $disable, $avail, $ping_method, $ping_port, $ping_timeout, $ping_retries, $notes, $snmp_auth_protocol, $snmp_priv_passphrase, - $snmp_priv_protocol, $snmp_context, $snmp_engine_id, $max_oids, $device_threads, + $snmp_priv_protocol, $snmp_context, $snmp_engine_id, $max_oids, $device_threads, $poller_id, $site_id, $external_id); if (is_error_message()) { diff --git a/docs/CHANGELOG b/docs/CHANGELOG index d5220e9e31..4f5d97626b 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -1,6 +1,7 @@ Cacti CHANGELOG 1.2 +-issue#837: Using the add_device.php CLI script, you can not 'default' the device threads to other than 1 -issue#838: SECURITY: XSS Issue in link.php 1.1.12 diff --git a/include/global_settings.php b/include/global_settings.php index 045008d8c3..cfa30b4412 100644 --- a/include/global_settings.php +++ b/include/global_settings.php @@ -462,6 +462,13 @@ $settings = array( 'none_value' => __('None'), 'sql' => 'SELECT id, name FROM poller ORDER BY name', ), + 'device_threads' => array( + 'friendly_name' => __('Device Threads'), + 'description' => __('The default number of Device Threads. This is only applicable when using the spine Data Collector.'), + 'method' => 'drop_array', + 'default' => '1', + 'array' => array(1, 2, 3, 4, 5, 6) + ), 'reindex_method' => array( 'friendly_name' => __('Re-index Method for Data Queries'), 'description' => __('The default Re-index Method to use for all Data Queries.'),