Merge branch 'ent-11346-mensaje-erroneo-en-tooltip-de-modulo' into 'develop'
Ent 11346 mensaje erroneo en tooltip de modulo See merge request artica/pandorafms!5986
This commit is contained in:
commit
f21e1d8e46
|
@ -297,6 +297,8 @@ function clippy_context_help($help=null)
|
|||
$code = str_replace('{clippy_obj}', 'intro_'.$id, $code);
|
||||
|
||||
if ($help === 'module_unknow') {
|
||||
$title = __('You have unknown modules in this agent.');
|
||||
$intro = __('Unknown modules are modules which receive data normally at least in one occassion, but at this time are not receving data. Please check our troubleshoot help page to help you determine why you have unknown modules.');
|
||||
$img = html_print_image(
|
||||
'images/info-warning.svg',
|
||||
true,
|
||||
|
@ -305,6 +307,16 @@ function clippy_context_help($help=null)
|
|||
'style' => 'margin-left: -25px;',
|
||||
]
|
||||
);
|
||||
} else if ($help === 'interval_agent_min') {
|
||||
$clippy_interval_agent_min = clippy_interval_agent_min();
|
||||
$title = $clippy_interval_agent_min['tours']['interval_agent_min']['steps'][0]['title'];
|
||||
$intro = $clippy_interval_agent_min['tours']['interval_agent_min']['steps'][0]['intro'];
|
||||
$img = $clippy_interval_agent_min['tours']['interval_agent_min']['steps'][0]['img'];
|
||||
} else if ($help === 'data_configuration_module') {
|
||||
$clippy_data_configuration_module = clippy_data_configuration_module();
|
||||
$title = $clippy_data_configuration_module['tours']['data_configuration_module']['steps'][0]['title'];
|
||||
$intro = $clippy_data_configuration_module['tours']['data_configuration_module']['steps'][0]['intro'];
|
||||
$img = $clippy_data_configuration_module['tours']['data_configuration_module']['steps'][0]['img'];
|
||||
} else {
|
||||
$img = html_print_image(
|
||||
'images/info-warning.svg',
|
||||
|
@ -318,8 +330,8 @@ function clippy_context_help($help=null)
|
|||
|
||||
function show_'.$id.'() {
|
||||
confirmDialog({
|
||||
title: "'.__('You have unknown modules in this agent.').'",
|
||||
message: "'.('Unknown modules are modules which receive data normally at least in one occassion, but at this time are not receving data. Please check our troubleshoot help page to help you determine why you have unknown modules.').'",
|
||||
title: "'.$title.'",
|
||||
message: "'.$intro.'",
|
||||
strOKButton: "'.__('Close').'",
|
||||
hideCancelButton: true,
|
||||
size: 675,
|
||||
|
|
|
@ -32,7 +32,16 @@ function clippy_data_configuration_module()
|
|||
$return_tours['tours']['data_configuration_module']['steps'] = [];
|
||||
$return_tours['tours']['data_configuration_module']['steps'][] = [
|
||||
'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>',
|
||||
'intro' => __('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.'),
|
||||
'title' => __('Data Configuration Module.'),
|
||||
'img' => html_print_image(
|
||||
'images/info-warning.svg',
|
||||
true,
|
||||
[
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
'style' => 'margin-left: 5px;',
|
||||
]
|
||||
),
|
||||
];
|
||||
$return_tours['tours']['data_configuration_module']['conf'] = [];
|
||||
$return_tours['tours']['data_configuration_module']['conf']['autostart'] = false;
|
||||
|
|
|
@ -32,7 +32,16 @@ function clippy_interval_agent_min()
|
|||
$return_tours['tours']['interval_agent_min']['steps'] = [];
|
||||
$return_tours['tours']['interval_agent_min']['steps'][] = [
|
||||
'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>',
|
||||
'intro' => __('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.'),
|
||||
'title' => __('Interval Agent.'),
|
||||
'img' => html_print_image(
|
||||
'images/info-warning.svg',
|
||||
true,
|
||||
[
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
'style' => 'margin-left: 5px;',
|
||||
]
|
||||
),
|
||||
];
|
||||
$return_tours['tours']['interval_agent_min']['conf'] = [];
|
||||
$return_tours['tours']['interval_agent_min']['conf']['autostart'] = false;
|
||||
|
|
Loading…
Reference in New Issue