2012-05-22 Sancho Lerena <slerena@artica.es>
* include/functions_ui.php: Added definition for module unknown. * operation/agentes/status_monitor.php: unknown modules are always drawn in grey. Fixed inconsistent behaviour. * images/status_sets/color_text/module_unknown.png: Missing image. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5dcbcaa745
commit
94d081176d
|
@ -1,3 +1,13 @@
|
|||
2012-05-22 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* include/functions_ui.php: Added definition for module unknown.
|
||||
|
||||
* operation/agentes/status_monitor.php: unknown modules are always
|
||||
drawn in grey. Fixed inconsistent behaviour.
|
||||
|
||||
* images/status_sets/color_text/module_unknown.png: Missing image.
|
||||
|
||||
|
||||
2012-05-22 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* operation/messages/message_edit.php,
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 422 B |
|
@ -1580,6 +1580,7 @@ define ('STATUS_MODULE_OK', 'module_ok.png');
|
|||
define ('STATUS_MODULE_CRITICAL', 'module_critical.png');
|
||||
define ('STATUS_MODULE_WARNING', 'module_warning.png');
|
||||
define ('STATUS_MODULE_NO_DATA', 'module_no_data.png');
|
||||
define ('STATUS_MODULE_UNKNOWN', 'module_unknown.png');
|
||||
|
||||
define ('STATUS_AGENT_CRITICAL', 'agent_critical.png');
|
||||
define ('STATUS_AGENT_WARNING', 'agent_warning.png');
|
||||
|
|
|
@ -601,13 +601,13 @@ foreach ($result as $row) {
|
|||
$last_status = modules_get_agentmodule_last_status($row['id_agente_modulo']);
|
||||
switch($last_status) {
|
||||
case 0:
|
||||
$data[5] = ui_print_status_image(STATUS_MODULE_OK, __('UNKNOWN')." - ".__('Last status')." ".__('NORMAL').": ".$row["datos"], true);
|
||||
$data[5] = ui_print_status_image(STATUS_MODULE_UNKNOWN, __('UNKNOWN')." - ".__('Last status')." ".__('NORMAL').": ".$row["datos"], true);
|
||||
break;
|
||||
case 1:
|
||||
$data[5] = ui_print_status_image(STATUS_MODULE_CRITICAL, __('UNKNOWN')." - ".__('Last status')." ".__('CRITICAL').": ".$row["datos"], true);
|
||||
$data[5] = ui_print_status_image(STATUS_MODULE_UNKNOWN, __('UNKNOWN')." - ".__('Last status')." ".__('CRITICAL').": ".$row["datos"], true);
|
||||
break;
|
||||
case 2:
|
||||
$data[5] = ui_print_status_image(STATUS_MODULE_WARNING, __('UNKNOWN')." - ".__('Last status')." ".__('WARNING').": ".$row["datos"], true);
|
||||
$data[5] = ui_print_status_image(STATUS_MODULE_UNKNOWN, __('UNKNOWN')." - ".__('Last status')." ".__('WARNING').": ".$row["datos"], true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue