2013-04-16 Mario Pulido <mario.pulido@artica.es>

* godmode/agentes/configurar_agente.php: Fixed helps view in Agent config

	*include/help/es/help_alert-matches.php,
        include/help/en/help_alert-matches.php: Modified alert help (Scaling alerts)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7993 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mariopulido87 2013-04-16 11:55:51 +00:00
parent bc543ffde3
commit 81545ca1b5
4 changed files with 38 additions and 12 deletions

View File

@ -1,3 +1,10 @@
2013-04-16 Mario Pulido <mario.pulido@artica.es>
* godmode/agentes/configurar_agente.php: Fixed helps view in Agent config
*include/help/es/help_alert-matches.php,
include/help/en/help_alert-matches.php: Modified alert help (Scaling alerts)
2013-04-16 Sergio Martin <sergio.martin@artica.es>
* include/styles/pandora.css

View File

@ -395,32 +395,39 @@ if ($id_agente) {
$onheader = $onheader + array($id => $extension_tab);
}
}
$help_header = '';
// This add information to the header
switch ($tab) {
case "main":
$tab_description = '- '. __('Setup');
break;
case "collection":
$tab_description = '- ' . __('Collection') . ui_print_help_icon('collection_tab', true);
$tab_description = '- ' . __('Collection') ;
$help_header = 'collection_tab';
break;
case "inventory":
$tab_description = '- ' . __('Inventory') . ui_print_help_icon('inventory_tab', true);
$tab_description = '- ' . __('Inventory');
$help_header = 'inventory_tab';
break;
case "plugins":
$tab_description = '- ' . __('Agent plugins') . ui_print_help_icon('plugins_tab', true);
$tab_description = '- ' . __('Agent plugins');
$help_header = 'plugins_tab';
break;
case "module":
$tab_description = '- '. __('Modules');
break;
case "alert":
$tab_description = '- ' . __('Alert') . ui_print_help_icon('manage_alert_list', true);
$tab_description = '- ' . __('Alert');
$help_header = 'manage_alert_list';
break;
case "template":
$tab_description = '- ' . __('Templates') . ui_print_help_icon('template_tab', true);
$tab_description = '- ' . __('Templates');
$help_header = 'template_tab';
break;
case "gis":
$tab_description = '- ' . __('Gis') . ui_print_help_icon('gis_tab', true);
$tab_description = '- ' . __('Gis');
$help_header = 'gis_tab';
break;
case "incident":
$tab_description = '- ' . __('Incidents');
@ -429,7 +436,8 @@ if ($id_agente) {
$id_extension = get_parameter('id_extension', '');
switch ($id_extension) {
case "snmp_explorer":
$tab_description = '- ' . __('SNMP explorer') . ui_print_help_icon('snmp_explorer', true);
$tab_description = '- ' . __('SNMP explorer');
$help_header = 'snmp_explorer';
break;
}
break;
@ -439,7 +447,7 @@ if ($id_agente) {
ui_print_page_header (__('Agent configuration') . ' -&nbsp;' .
agents_get_name ($id_agente) .
' ' . $tab_description, "images/setup.png", false, "", true, $onheader);
' ' . $tab_description, "images/setup.png", false, $help_header , true, $onheader);
}
else {
// Create agent

View File

@ -6,5 +6,11 @@
<h1>Matches of the alert</h1>
<p>
Defines the number of alerts that must occur before executing the action. It is a fine-tunning parameter.
</p>
Defines the number of alerts that must occur before executing the action. It is a fine-tunning parameter.<br><br>
This allows "redefine" a little more the alert behavior, so that if we set a maximum of 5 times the times you can fire a warning, and we just want to send us an email, we will set here 0 and 1 , to say that we only send an email from time 0 to 1 (so, once). <br> <br>
Now we see that we can add more actions to the same alert, defining these fields "Number of alerts match from" alert behavior depending on how often you shoot. <br> <br>
For example, we may want to send an email to XXXXX the first time it happens, and if it continues down the monitor, send an email to ZZZZ. To do this, associate after the alert, the alert table assigned, I can add more actions to an alert defined as changing this parameter.
</p>

View File

@ -6,5 +6,10 @@
<h1>Coincidencias de la alerta</h1>
<p>
Define el número de alertas que deben ocurrir antes de ejecutar la acción. Es un parámetro de ajuste fino.
Define el número de alertas que deben ocurrir antes de ejecutar la acción. Es un parámetro de ajuste fino.<br><br>
Esto permite "redefinir" un poco más el comportamiento de la alerta, de forma que si hemos definido un máximo de 5 veces las veces que se puede disparar una alerta, y sólo queremos que nos envie un email, pondremos aquí un 0 y un 1, para decirle que sólo nos envie un email desde la vez 0 a la 1 (osea, una vez).<br><br>
Ahora veremos que podemos añadir más acciones a la misma alerta, definiendo con estos campos "Number of alerts match from" el comportamiento de la alerta en función de cuantas veces se dispare.<br><br>
Por ejemplo, podemos querer que mande un email a XXXXX la primera vez que ocurra, y si sigue caído el monitor, envíe un email a ZZZZ. Para ello, despues de asociar la alerta, en la tabla de alertas asignadas, puedo añadir mas acciones a una alerta ya definida cambiando este parámetro.
</p>