mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-22 05:14:57 +02:00
2012-06-12 Dario Rodriguez <dario.rodriguez@artica.es>
* operation/agentes/estado_agente.php: Improved performance using new functions. MERGED FROM 4.0.2 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6505 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7b89476f12
commit
2912785692
@ -1,3 +1,10 @@
|
|||||||
|
2012-06-12 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
|
* operation/agentes/estado_agente.php: Improved
|
||||||
|
performance using new functions.
|
||||||
|
|
||||||
|
MERGED FROM 4.0.2
|
||||||
|
|
||||||
2012-06-12 Dario Rodriguez <dario.rodriguez@artica.es>
|
2012-06-12 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
* operation/tree.php: Fixed some errors with tree view
|
* operation/tree.php: Fixed some errors with tree view
|
||||||
|
@ -424,7 +424,21 @@ foreach ($agents as $agent) {
|
|||||||
$rowPair = !$rowPair;
|
$rowPair = !$rowPair;
|
||||||
$iterator++;
|
$iterator++;
|
||||||
|
|
||||||
$agent_info = reporting_get_agent_module_info ($agent["id_agente"]);
|
$agent_info["monitor_alertsfired"] = agents_get_alerts_fired ($agent["id_agente"]);
|
||||||
|
|
||||||
|
$agent_info["monitor_critical"] = agents_monitor_critical ($agent["id_agente"]);
|
||||||
|
$agent_info["monitor_warning"] = agents_monitor_warning ($agent["id_agente"]);
|
||||||
|
$agent_info["monitor_unknown"] = agents_monitor_unknown ($agent["id_agente"]);
|
||||||
|
$agent_info["monitor_normal"] = agents_monitor_ok ($agent["id_agente"]);
|
||||||
|
|
||||||
|
$agent_info["alert_img"] = agents_tree_view_alert_img ($agent_info["monitor_alertsfired"]);
|
||||||
|
|
||||||
|
$agent_info["status_img"] = agetns_tree_view_status_img ($agent_info["monitor_critical"],
|
||||||
|
$agent_info["monitor_warning"],
|
||||||
|
$agent_info["monitor_unknown"]);
|
||||||
|
|
||||||
|
//Count all modules
|
||||||
|
$agent_info["modules"] = $agent_info["monitor_critical"] + $agent_info["monitor_warning"] + $agent_info["monitor_unknown"] + $agent_info["monitor_normal"];
|
||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user