From 3d99ef48aa28ad4a0557b9f741d38ea7662cb06e Mon Sep 17 00:00:00 2001 From: samucarc Date: Mon, 5 Nov 2018 13:05:34 +0100 Subject: [PATCH] Fixed ACLs in monitoring View and agent detail --- .../operation/agentes/estado_agente.php | 4 ++-- .../operation/agentes/group_view.php | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 20d3f18a47..d37cc9396c 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -623,7 +623,7 @@ foreach ($agents as $agent) { $data[0] = '
'; $data[0] .= ''; - $data[0] .= ' '.$agent["alias"].''; + $data[0] .= ' '.$agent["alias"].''; $data[0] .= ''; if ($agent['quiet']) { @@ -642,7 +642,7 @@ foreach ($agents as $agent) { $data[0] .= ''.__('View').''; } else{ - $data[0] .= ''.__('View').''; + $data[0] .= ''.__('View').''; } if (check_acl ($config['id_user'], $agent["id_grupo"], "AW")) { diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index 0406fe2e56..640de2010c 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -343,7 +343,7 @@ if (!empty($result_groups)) { href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_NORMAL ."'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_NORMAL ."'>"; } if (($data["_id_"] == 0) && ($agents_ok != 0)) { echo $link . $agents_ok . ""; @@ -361,7 +361,7 @@ if (!empty($result_groups)) { href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_WARNING ."'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_WARNING ."'>"; } if (($data["_id_"] == 0) && ($agents_warning != 0)) { echo $link . $agents_warning . ""; @@ -394,10 +394,10 @@ if (!empty($result_groups)) { echo ""; if (!isset($data['_is_tag_'])) { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&ag_group=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_UNKNOWN . "'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&tag_filter=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_UNKNOWN . "'>"; } if (($data["_id_"] == 0) && ($monitor_unknown != 0)) { echo $link . $monitor_unknown . ""; @@ -411,10 +411,10 @@ if (!empty($result_groups)) { echo ""; if (!isset($data['_is_tag_'])) { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&ag_group=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_NOT_INIT . "'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&tag_filter=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_NOT_INIT . "'>"; } if (($data["_id_"] == 0) && ($monitor_not_init != 0)) { echo $link . $monitor_not_init . ""; @@ -428,10 +428,10 @@ if (!empty($result_groups)) { echo ""; if (!isset($data['_is_tag_'])) { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&ag_group=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_NORMAL . "'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&tag_filter=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_NORMAL . "'>"; } if (($data["_id_"] == 0) && ($monitor_ok != 0)) { echo $link . $monitor_ok . ""; @@ -445,10 +445,10 @@ if (!empty($result_groups)) { echo ""; if (!isset($data['_is_tag_'])) { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&ag_group=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_WARNING . "'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&tag_filter=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_WARNING . "'>"; } if (($data["_id_"] == 0) && ($monitor_warning != 0)) { echo $link . $monitor_warning . ""; @@ -462,10 +462,10 @@ if (!empty($result_groups)) { echo ""; if (!isset($data['_is_tag_'])) { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&ag_group=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_CRITICAL_BAD . "'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/status_monitor&tag_filter=".$data['_id_']."&status=" . AGENT_MODULE_STATUS_CRITICAL_BAD . "'>"; } if (($data["_id_"] == 0) && ($monitor_critical != 0)) { echo $link . $monitor_critical . "";