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
This commit is contained in:
m-lopez-f 2015-02-03 16:08:41 +01:00
parent 51ace72cee
commit 534ab9816e
6 changed files with 242 additions and 1 deletions

View File

@ -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);

View File

@ -0,0 +1,64 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_data_configuration_module() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['data_configuration_module'] = array();
$return_tours['tours']['data_configuration_module']['steps'] = array();
$return_tours['tours']['data_configuration_module']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Data Configuration Module.') .
'</td>' .
'</tr>' .
'<td class="context_help_body">' .
__('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.') .
'</td>' .
'</tr>' .
'<tr>' .
'<td class="context_help_body">' .
__('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.') .
'</td>' .
'</tr>' .
'</table>'
);
$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;
}
?>

View File

@ -0,0 +1,57 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_interval_agent_min() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['interval_agent_min'] = array();
$return_tours['tours']['interval_agent_min']['steps'] = array();
$return_tours['tours']['interval_agent_min']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Interval Agent.') .
'</td>' .
'</tr>' .
'<tr>' .
'<td class="context_help_body">' .
__('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.') .
'</td>' .
'</tr>' .
'</table>'
);
$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;
}
?>

View File

@ -0,0 +1,58 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_server_queued_modules() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['server_queued_modules'] = array();
$return_tours['tours']['server_queued_modules']['steps'] = array();
$return_tours['tours']['server_queued_modules']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Excesive Queued.') .
'</td>' .
'</tr>' .
'<td class="context_help_body">' .
__('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.') .
'</td>' .
'</tr>' .
'</table>'
);
$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;
}
?>

View File

@ -0,0 +1,57 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
/**
* @package Include
* @subpackage Clippy
*/
function clippy_topology_group() {
$return_tours = array();
$return_tours['first_step_by_default'] = true;
$return_tours['help_context'] = true;
$return_tours['tours'] = array();
//==================================================================
//Help tour about the monitoring with a ping (step 3)
//------------------------------------------------------------------
$return_tours['tours']['topology_group'] = array();
$return_tours['tours']['topology_group']['steps'] = array();
$return_tours['tours']['topology_group']['steps'][] = array(
'init_step_context' => true,
'intro' => '<table>' .
'<tr>' .
'<td class="context_help_title">' .
__('Topology Group') .
'</td>' .
'</tr>' .
'<tr>' .
'<td class="context_help_body">' .
__('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. ') .
'</td>' .
'</tr>' .
'</table>'
);
$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;
}
?>

View File

@ -335,6 +335,9 @@ $table->class = 'databox';
$table->data = array();
$table->data[0][] = __('Name:') . '&nbsp;' .
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:') . '&nbsp;' .
html_print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true);
if ($activeTab == 'groups' || $activeTab == 'policies' || $activeTab == 'radial_dynamic') {