diff --git a/pandora_console/godmode/setup/performance.php b/pandora_console/godmode/setup/performance.php index 89b745cfca..ba965f026f 100644 --- a/pandora_console/godmode/setup/performance.php +++ b/pandora_console/godmode/setup/performance.php @@ -701,6 +701,28 @@ if (enterprise_installed() === true) { ); } +// Agent Wizard defaults. +$defaultAgentWizardOptions = json_decode(io_safe_output($config['agent_wizard_defaults'])); +$tableSnmpWizard = new stdClass(); +$tableSnmpWizard->width = '100%'; +$tableSnmpWizard->class = 'databox filters'; +$tableSnmpWizard->data = []; +$tableSnmpWizard->style[0] = 'font-weight: bold'; +$tableSnmpWizard->style[2] = 'font-weight: bold'; +$tableSnmpWizard->size[0] = '30%'; +$tableSnmpWizard->size[2] = '30%'; + +$i = 0; +$j = 0; +foreach ($defaultAgentWizardOptions as $key => $value) { + $tableSnmpWizard->data[$i][$j++] = $key; + $tableSnmpWizard->data[$i][$j++] = html_print_checkbox_switch('agent_wizard_defaults_'.$key, 1, $value, true); + if ($j >= 3) { + $j = 0; + $i++; + } +} + echo '