parent
b3e5bf0783
commit
d11df9e50e
|
@ -123,7 +123,7 @@ echo '<table cellpadding="0" cellspacing="0" border="0" width="100%" class="data
|
|||
echo "<td align='center'>";
|
||||
echo "<span id='sumary' style='background-color:#B2B2B2;'>". $total_agent_unknown ."%</span>";
|
||||
echo "<span id='sumary' style='background-color:#5bb6e5;'>". $total_not_init ."%</span>";
|
||||
echo "<span id='sumary' style='background-color:#FC4444;'>". $total_critical ."%</span>";
|
||||
echo "<span id='sumary' style='background-color:#FC4444;'>". $total_agent_critical ."%</span>";
|
||||
echo "</td>";
|
||||
echo "<td align='center'>";
|
||||
echo "<span id='sumary' style='background-color:#FC4444;'>". $total_critical ."%</span>";
|
||||
|
@ -154,7 +154,7 @@ if (!empty($result_groups)) {
|
|||
echo '<table cellpadding="0" cellspacing="0" style="margin-top:10px;" class="databox data" border="0" width="100%">';
|
||||
echo "<tr>";
|
||||
echo "<th colspan=2 ></th>";
|
||||
echo "<th colspan=3 class='difference' style='text-align:center'>" . __("Agents") . "</th>";
|
||||
echo "<th colspan=4 class='difference' style='text-align:center'>" . __("Agents") . "</th>";
|
||||
echo "<th colspan=6 style='text-align:center'>" . __("Modules") . "</th>";
|
||||
echo "</tr>";
|
||||
|
||||
|
@ -164,6 +164,7 @@ if (!empty($result_groups)) {
|
|||
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Total") . "</th>";
|
||||
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Unknown") . "</th>";
|
||||
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Not init") . "</th>";
|
||||
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Critical") . "</th>";
|
||||
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Unknown") . "</th>";
|
||||
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Not Init") . "</th>";
|
||||
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Normal") . "</th>";
|
||||
|
@ -301,6 +302,24 @@ if (!empty($result_groups)) {
|
|||
}
|
||||
echo "</td>";
|
||||
|
||||
// Agents critical
|
||||
echo "<td class='group_view_data group_view_data_unk $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'>";
|
||||
if (isset($data['_is_tag_'])) {
|
||||
$link = "<a class='group_view_data $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'
|
||||
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_CRITICAL ."'>";
|
||||
} else {
|
||||
$link = "<a class='group_view_data $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'
|
||||
href='index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_CRITICAL ."'>";
|
||||
}
|
||||
if (($data["_id_"] == 0) && ($agents_critical != 0)) {
|
||||
echo $link . $agents_critical . "</a>";
|
||||
}
|
||||
|
||||
if ($data["_agents_critical_"] > 0 && ($data["_id_"] != 0)) {
|
||||
echo $link . $data["_agents_critical_"] . "</a>";
|
||||
}
|
||||
echo "</td>";
|
||||
|
||||
// Monitors unknown
|
||||
echo "<td class='group_view_data group_view_data_unk $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'>";
|
||||
if (!isset($data['_is_tag_'])) {
|
||||
|
|
Loading…
Reference in New Issue