From 77075b5ab121aed938bc7617d27d6c050d44f51a Mon Sep 17 00:00:00 2001 From: raulmateos Date: Mon, 1 Feb 2010 18:01:05 +0000 Subject: [PATCH] =?UTF-8?q?2010-02-01=20=20Ra=C3=BAl=20Mateos=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * operation/agentes/estado_agente.php: Changed colour order for module status. * include/help/en/help_agent_status.php: Improved help. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2325 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++ .../include/help/en/help_agent_status.php | 47 +++++++++++++------ .../operation/agentes/estado_agente.php | 12 +++-- 3 files changed, 46 insertions(+), 20 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 28ae124a28..a3228e1490 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2010-02-01 Raúl Mateos + + * operation/agentes/estado_agente.php: Changed colour order for + module status. + + * include/help/en/help_agent_status.php: Improved help. + 2010-01-29 Pablo de la Concepción * operation/gis_maps/render_view.php: Fixed call to get_agent_names to diff --git a/pandora_console/include/help/en/help_agent_status.php b/pandora_console/include/help/en/help_agent_status.php index 5d4c4a24a3..d8839c0bde 100644 --- a/pandora_console/include/help/en/help_agent_status.php +++ b/pandora_console/include/help/en/help_agent_status.php @@ -5,25 +5,42 @@ ?>

Agent status view

-Possible values of an agent status are: +Possible color values of modules are: +

+ +Number of modules +: Number of critical modules +: Number of warning modules +: Number of normal modules +: Number of down modules + +

+Possible values of an agent status are:

- - - - +
All Monitors OKAll Monitors OKAt least one monitor failsAt least one monitor failsChange between Green/Red stateChange between Green/Red state
+ + + + - - + + + + + +
At least one monitor failsAt least one monitor failsAt least one monitor failsChange between Green/Red stateChange between Green/Red stateChange between Green/Red stateAll Monitors OKAll Monitors OKAll Monitors OKAlert firedAlert firedAlert disabledAlerts disabled
Agent without monitorsAgent without monitorsAgent without monitorsAgent without dataAgent without dataAgent without dataAgent downAgent downAgent down
- +

+Possible values of alert status are: - Agent without monitorsAgent without monitors - Agent without dataAgent without data - Agent downAgent down - - Alert not firedAlert not fired +

+ + + + + - -
Alert firedAlert firedAlert firedAlert disabledAlert disabledAlerts disabledAlert not firedAlert not firedAlert not fired
+ + diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index b5edbaa6e9..643de12c6a 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -205,15 +205,17 @@ foreach ($agents as $agent) { $data[4] = ''; $data[4] .= $agent_info["modules"]; - if ($agent_info["monitor_normal"] > 0) - $data[4] .= ' : '.$agent_info["monitor_normal"].''; - if ($agent_info["monitor_warning"] > 0) - $data[4] .= ' : '.$agent_info["monitor_warning"].''; + if ($agent_info["monitor_critical"] > 0) $data[4] .= ' : '.$agent_info["monitor_critical"].''; + if ($agent_info["monitor_warning"] > 0) + $data[4] .= ' : '.$agent_info["monitor_warning"].''; + if ($agent_info["monitor_normal"] > 0) + $data[4] .= ' : '.$agent_info["monitor_normal"].''; if ($agent_info["monitor_down"] > 0) $data[4] .= ' : '.$agent_info["monitor_down"].''; - + $data[4] .= ''; + $data[5] = $agent_info["status_img"]; $data[6] = $agent_info["alert_img"];