From 84821a3729369d733bdce438a2a84fd33b0c42e5 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 3 Feb 2015 16:08:41 +0100 Subject: [PATCH] Add help clippy in creation menus or views Add clippy in: Interval agent if this interval is < 300 Network maps>topology group Create a new data server module in field 'Data Configuration' In servers list, in column T/Q, when Q>200 --- .../godmode/agentes/agent_manager.php | 4 +- .../help/clippy/data_configuration_module.php | 64 +++++++++++++++++++ .../help/clippy/interval_agent_min.php | 57 +++++++++++++++++ .../help/clippy/server_queued_modules.php | 58 +++++++++++++++++ .../include/help/clippy/topology_group.php | 57 +++++++++++++++++ .../operation/agentes/networkmap.php | 3 + 6 files changed, 242 insertions(+), 1 deletion(-) create mode 100644 pandora_console/include/help/clippy/data_configuration_module.php create mode 100644 pandora_console/include/help/clippy/interval_agent_min.php create mode 100644 pandora_console/include/help/clippy/server_queued_modules.php create mode 100644 pandora_console/include/help/clippy/topology_group.php diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index de055054cf..f3654cfb6f 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -245,7 +245,9 @@ $table->data[3][1] = html_print_select_groups(false, "AR", false, 'grupo', $grup $table->data[4][0] = __('Interval'); $table->data[4][1] = html_print_extended_select_for_time ('intervalo', $intervalo, '', '', '0', 10, true); - +if($intervalo<300){ + $table->data[4][1] .= clippy_context_help("interval_agent_min"); +} $table->data[5][0] = __('OS'); $table->data[5][1] = html_print_select_from_sql ('SELECT id_os, name FROM tconfig_os', 'id_os', $id_os, '', '', '0', true); diff --git a/pandora_console/include/help/clippy/data_configuration_module.php b/pandora_console/include/help/clippy/data_configuration_module.php new file mode 100644 index 0000000000..1d850fc649 --- /dev/null +++ b/pandora_console/include/help/clippy/data_configuration_module.php @@ -0,0 +1,64 @@ + true, + 'intro' => '' . + '' . + '' . + '' . + + '' . + '' . + '' . + '' . + '' . + '
' . + __('Data Configuration Module.') . + '
' . + __('Please note that information provided here affects how the agent collect information and generate the data XML. Any data/configuration reported by the agent, different from data or description is discarded, and the configuration shown in the console prevails over any configuration coming from the agent, this applies for example for crit/warn thresholds, interval, module group, min/max value, tags, etc.') . + + '
' . + __('Information imported FIRST time from the XML will fill the information you can see in the console, but after the first import, system will ignore any update coming from the XML/Agent.') . + + '
' + ); + $return_tours['tours']['data_configuration_module']['conf'] = array(); + $return_tours['tours']['data_configuration_module']['conf']['autostart'] = false; + $return_tours['tours']['data_configuration_module']['conf']['show_bullets'] = 0; + $return_tours['tours']['data_configuration_module']['conf']['show_step_numbers'] = 0; + //================================================================== + + return $return_tours; +} +?> diff --git a/pandora_console/include/help/clippy/interval_agent_min.php b/pandora_console/include/help/clippy/interval_agent_min.php new file mode 100644 index 0000000000..34143494f8 --- /dev/null +++ b/pandora_console/include/help/clippy/interval_agent_min.php @@ -0,0 +1,57 @@ + true, + 'intro' => '' . + '' . + '' . + '' . + '' . + '' . + '' . + '
' . + __('Interval Agent.') . + '
' . + __('Please note that having agents with a monitoring interval below 300 seconds is not recommended. This will impact seriously in the performance of the server. For example, having 200 agents with one minute interval, is the same than having 1000 agents with a 5 minute interval. The probability of getting unknown modules is higher, and the impact on the server is higher because it requires a shorter response time.') . + '
' + ); + $return_tours['tours']['interval_agent_min']['conf'] = array(); + $return_tours['tours']['interval_agent_min']['conf']['autostart'] = false; + $return_tours['tours']['interval_agent_min']['conf']['show_bullets'] = 0; + $return_tours['tours']['interval_agent_min']['conf']['show_step_numbers'] = 0; + //================================================================== + + return $return_tours; +} +?> diff --git a/pandora_console/include/help/clippy/server_queued_modules.php b/pandora_console/include/help/clippy/server_queued_modules.php new file mode 100644 index 0000000000..085dbba67b --- /dev/null +++ b/pandora_console/include/help/clippy/server_queued_modules.php @@ -0,0 +1,58 @@ + true, + 'intro' => '' . + '' . + '' . + '' . + + '' . + '' . + '
' . + __('Excesive Queued.') . + '
' . + __('You have too much items in the processing queue. This can happen if your server is too loaded and/or not properly configured. This could be something temporal, or a bottleneck. One possible solution is increase number of server threads, but you should consider getting support about this.') . + + '
' + ); + $return_tours['tours']['server_queued_modules']['conf'] = array(); + $return_tours['tours']['server_queued_modules']['conf']['autostart'] = false; + $return_tours['tours']['server_queued_modules']['conf']['show_bullets'] = 0; + $return_tours['tours']['server_queued_modules']['conf']['show_step_numbers'] = 0; + //================================================================== + + return $return_tours; +} +?> diff --git a/pandora_console/include/help/clippy/topology_group.php b/pandora_console/include/help/clippy/topology_group.php new file mode 100644 index 0000000000..54972cb13f --- /dev/null +++ b/pandora_console/include/help/clippy/topology_group.php @@ -0,0 +1,57 @@ + true, + 'intro' => '' . + '' . + '' . + '' . + '' . + '' . + '' . + '
' . + __('Topology Group') . + '
' . + __('Please note that group topology maps do not show the parent relationship between nodes, it only shows the group parentship and the agent distribution inside them. ') . + '
' + ); + $return_tours['tours']['topology_group']['conf'] = array(); + $return_tours['tours']['topology_group']['conf']['autostart'] = false; + $return_tours['tours']['topology_group']['conf']['show_bullets'] = 0; + $return_tours['tours']['topology_group']['conf']['show_step_numbers'] = 0; + //================================================================== + + return $return_tours; +} +?> diff --git a/pandora_console/operation/agentes/networkmap.php b/pandora_console/operation/agentes/networkmap.php index a55ea919c6..f705c31405 100644 --- a/pandora_console/operation/agentes/networkmap.php +++ b/pandora_console/operation/agentes/networkmap.php @@ -335,6 +335,9 @@ $table->class = 'databox'; $table->data = array(); $table->data[0][] = __('Name:') . ' ' . html_print_input_text ('name', $name, '', 25, 50, true); +if ($activeTab == 'groups'){ + $table->data[0][0] .= clippy_context_help("topology_group"); +} $table->data[0][] = __('Group:') . ' ' . html_print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true); if ($activeTab == 'groups' || $activeTab == 'policies' || $activeTab == 'radial_dynamic') {