You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of the real selected value Cacti stores the selected index of the dropdown menu.
But within scripts like /CLI/add_device.php the value will be directly used with
Set the default number of threads to 4 for example, log in to MySQL and read the value from settings:
select * from settings where name = 'device_threads';
MySQL will return 3 in this case.
Expected behavior
select * from settings where name = 'device_threads' will return 4, not 3.
Bug is in
1.2.16, 17 ...
located in /include/global_settings.php, ~ line 578
'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) ),
'array' => definition should start with index 1 not 0. ( 1=>1, .... )
The text was updated successfully, but these errors were encountered:
Describe the bug
Instead of the real selected value Cacti stores the selected index of the dropdown menu.
But within scripts like /CLI/add_device.php the value will be directly used with
$device_threads = read_config_option('device_threads');
To Reproduce
Set the default number of threads to 4 for example, log in to MySQL and read the value from settings:
select * from settings where name = 'device_threads';
MySQL will return 3 in this case.
Expected behavior
select * from settings where name = 'device_threads' will return 4, not 3.
Bug is in
1.2.16, 17 ...
located in /include/global_settings.php, ~ line 578
'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) ),
'array' => definition should start with index 1 not 0. ( 1=>1, .... )
The text was updated successfully, but these errors were encountered: