From 2be270195e8126381ce42f4cceafa0e90c5d1ada Mon Sep 17 00:00:00 2001
From: Esteban Sanchez <esteban.sanchez@gmail.com>
Date: Mon, 20 Oct 2008 12:40:59 +0000
Subject: [PATCH] 2008-10-20  Esteban Sanchez  <estebans@artica.es>

        * operation/agentes/estado_agente.php: Checking if there are monitors
        down has more priority than check if there are no data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1176 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog                           | 5 +++++
 pandora_console/operation/agentes/estado_agente.php | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index c5efe243bb..7226d678ef 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-20  Esteban Sanchez  <estebans@artica.es>
+
+	* operation/agentes/estado_agente.php: Checking if there are monitors
+	down has more priority than check if there are no data.
+
 2008-10-20  Manuel Arostegui  <marostegui@artica.es>
 
 	* operation/agentes/estado_agente.php: Fixed agent status color
diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php
index aaf70bb1d6..c0a54fce13 100644
--- a/pandora_console/operation/agentes/estado_agente.php
+++ b/pandora_console/operation/agentes/estado_agente.php
@@ -327,10 +327,10 @@ echo '<img class="bot" src="images/groups_small/'.show_icon_group($id_grupo).'.p
 					}
 				} elseif ($monitor_ok > 0) {
 					echo '<img src="images/pixel_green.png" width="40" height="18" title="'.__('All Monitors OK').'" />';
-				} elseif ($numero_datamodules == 0) {
-					echo '<img src="images/pixel_blue.png" width="40" height="18" title="'.__('Agent without data').'" />';
 				} elseif ($monitor_down > 0) {
 					echo '<img src="images/pixel_fucsia.png" width="40" height="18" title="'.__('Agent down').'" />'; 
+				} elseif ($numero_datamodules == 0) {
+					echo '<img src="images/pixel_blue.png" width="40" height="18" title="'.__('Agent without data').'" />';
 				}
 			} else {
 				if ($numero_datamodules == 0) {