Merge branch '2618_Bug_Acceso_agentes_en_vista_de_grupo' into 'develop'
Fixed enterprise ACLs in Agents View See merge request artica/pandorafms!1853
This commit is contained in:
commit
582db8d3b5
|
@ -623,7 +623,7 @@ foreach ($agents as $agent) {
|
||||||
$data[0] = '<div class="left_' . $agent["id_agente"] . '">';
|
$data[0] = '<div class="left_' . $agent["id_agente"] . '">';
|
||||||
$data[0] .= '<span>';
|
$data[0] .= '<span>';
|
||||||
|
|
||||||
$data[0] .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_agente"].'"> <span style="font-size: 7pt;font-weight:bold" title ="' . $agent["nombre"]. '">'.$agent["alias"].'</span></a>';
|
$data[0] .= '<a href="index.php?sec=view&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_agente"].'"> <span style="font-size: 7pt;font-weight:bold" title ="' . $agent["nombre"]. '">'.$agent["alias"].'</span></a>';
|
||||||
$data[0] .= '</span>';
|
$data[0] .= '</span>';
|
||||||
|
|
||||||
if ($agent['quiet']) {
|
if ($agent['quiet']) {
|
||||||
|
@ -642,7 +642,7 @@ foreach ($agents as $agent) {
|
||||||
$data[0] .= '<a href="index.php?sec=reporting&sec2=enterprise/godmode/reporting/cluster_view&id='.$cluster['id'].'">'.__('View').'</a>';
|
$data[0] .= '<a href="index.php?sec=reporting&sec2=enterprise/godmode/reporting/cluster_view&id='.$cluster['id'].'">'.__('View').'</a>';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$data[0] .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_agente"].'">'.__('View').'</a>';
|
$data[0] .= '<a href="index.php?sec=view&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_agente"].'">'.__('View').'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_acl ($config['id_user'], $agent["id_grupo"], "AW")) {
|
if (check_acl ($config['id_user'], $agent["id_grupo"], "AW")) {
|
||||||
|
|
|
@ -246,7 +246,7 @@ if (!empty($result_groups)) {
|
||||||
$link = "<a href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "'>";
|
$link = "<a href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "'>";
|
||||||
} else {
|
} else {
|
||||||
$deep = groups_get_group_deep ($data['_id_']);
|
$deep = groups_get_group_deep ($data['_id_']);
|
||||||
$link = "<a href='index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."'>";
|
$link = "<a href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$group_name = "<b><span style='font-size: 7.5pt'>" . ui_print_truncate_text($data['_name_'], 50) . "</span></b>";
|
$group_name = "<b><span style='font-size: 7.5pt'>" . ui_print_truncate_text($data['_name_'], 50) . "</span></b>";
|
||||||
|
@ -279,7 +279,7 @@ if (!empty($result_groups)) {
|
||||||
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "'>";
|
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "'>";
|
||||||
} else {
|
} else {
|
||||||
$link = "<a class='group_view_data $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'
|
$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_']."'>";
|
href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."'>";
|
||||||
}
|
}
|
||||||
if ($data["_id_"] == 0) {
|
if ($data["_id_"] == 0) {
|
||||||
echo $link . $total_agentes . "</a>";
|
echo $link . $total_agentes . "</a>";
|
||||||
|
@ -296,7 +296,7 @@ if (!empty($result_groups)) {
|
||||||
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_UNKNOWN ."'>";
|
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_UNKNOWN ."'>";
|
||||||
} else {
|
} else {
|
||||||
$link = "<a class='group_view_data $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'
|
$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_UNKNOWN ."'>";
|
href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_UNKNOWN ."'>";
|
||||||
}
|
}
|
||||||
if (($data["_id_"] == 0) && ($agents_unknown != 0)) {
|
if (($data["_id_"] == 0) && ($agents_unknown != 0)) {
|
||||||
echo $link . $agents_unknown . "</a>";
|
echo $link . $agents_unknown . "</a>";
|
||||||
|
@ -313,7 +313,7 @@ if (!empty($result_groups)) {
|
||||||
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_NOT_INIT ."'>";
|
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_NOT_INIT ."'>";
|
||||||
} else {
|
} else {
|
||||||
$link = "<a class='group_view_data $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'
|
$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_NOT_INIT ."'>";
|
href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_NOT_INIT ."'>";
|
||||||
}
|
}
|
||||||
if (($data["_id_"] == 0) && ($agents_notinit != 0)) {
|
if (($data["_id_"] == 0) && ($agents_notinit != 0)) {
|
||||||
echo $link . $agents_notinit . "</a>";
|
echo $link . $agents_notinit . "</a>";
|
||||||
|
@ -331,7 +331,7 @@ if (!empty($result_groups)) {
|
||||||
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_CRITICAL ."'>";
|
href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_CRITICAL ."'>";
|
||||||
} else {
|
} else {
|
||||||
$link = "<a class='group_view_data $color_class' style='font-weight: bold; font-size: 18px; text-align: center;'
|
$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 ."'>";
|
href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_CRITICAL ."'>";
|
||||||
}
|
}
|
||||||
if (($data["_id_"] == 0) && ($agents_critical != 0)) {
|
if (($data["_id_"] == 0) && ($agents_critical != 0)) {
|
||||||
echo $link . $agents_critical . "</a>";
|
echo $link . $agents_critical . "</a>";
|
||||||
|
|
Loading…
Reference in New Issue