2008-10-20 Manuel Arostegui <marostegui@artica.es>

* operation/agentes/estado_agente.php: Fixed agent status color 
        column. It was showing incorrect values in some cases like without
        data or monitors.

        * ChangeLog: Fixed Jorge previous commit style.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1175 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
marostegui 2008-10-20 11:25:45 +00:00
parent d433e7421e
commit 3e705a93f2
2 changed files with 23 additions and 13 deletions

View File

@ -1,7 +1,15 @@
2008-10-20 Manuel Arostegui <marostegui@artica.es>
* operation/agentes/estado_agente.php: Fixed agent status color
column. It was showing incorrect values in some cases like without
data or monitors.
* ChangeLog: Fixed Jorge previous commit style.
2008-10-20 Jorge Gonzalez <jorgegonz@artica.es>
* operation/agentes/estado_agente.php, operation/agentes/bulbs.php:
reverted changes.
* operation/agentes/estado_agente.php, operation/agentes/bulbs.php:
Reverted changes.
2008-10-20 Jorge Gonzalez <jorgegonz@artica.es>

View File

@ -321,22 +321,24 @@ echo '<img class="bot" src="images/groups_small/'.show_icon_group($id_grupo).'.p
if ($numero_monitor <> 0){
if ($estado_general <> 0){
if ($estado_cambio == 0){
echo "<img src='images/pixel_red.png' width=40 height=18 title='".__('At least one monitor fails')."'>";
echo '<img src="images/pixel_red.png" width="40" height="18" title="'.__('At least one monitor fails').'" />';
} else {
echo "<img src='images/pixel_yellow.png' width=40 height=18 title='".__('Change between Green/Red state')."'>";
echo '<img src="images/pixel_yellow.png" width="40" height="18" title="'.__('Change between Green/Red state').'" />';
}
} elseif ($monitor_ok > 0) {
echo "<img src='images/pixel_green.png' width=40 height=18 title='".__('All Monitors OK')."'>";
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 monitors')."'>";
} else {
if ($numero_datamodules == 0) {
echo '<img src="images/pixel_blue.png" width="40" height="18" title="'.__('Agent without data').'" />';
} else {
echo '<img src="images/pixel_gray.png" width="40" height="18" title="'.__('Agent without monitors').'" />';
}
elseif ($monitor_down > 0) {
echo "<img src='images/pixel_fucsia.png' width=40 height=18 title='".__('Agent down')."'>";
}
} else
echo "<img src='images/pixel_blue.png' width=40 height=18 title='".__('Agent without data')."'>";
}
// checks if an alert was fired recently
echo "<td class='$tdcolor' align='center'>";
if (give_disabled_group($id_grupo) == 1)