mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Added feature. The report items SLA, Availaibily and General do not show the not init modules. TICKET: #2510
This commit is contained in:
parent
a8162a1876
commit
a4b5f8607f
@ -626,7 +626,8 @@ function reporting_SLA($report, $content, $type = 'dinamic',
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modules_is_disable_agent($sla['id_agent_module'])) {
|
if (modules_is_disable_agent($sla['id_agent_module'])
|
||||||
|
|| modules_is_not_init($item['id_agent_module'])) {
|
||||||
if ($metaconsole_on) {
|
if ($metaconsole_on) {
|
||||||
//Restore db connection
|
//Restore db connection
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
@ -3673,7 +3674,10 @@ function reporting_availability($report, $content) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modules_is_disable_agent($item['id_agent_module'])) {
|
|
||||||
|
|
||||||
|
if (modules_is_disable_agent($item['id_agent_module'])
|
||||||
|
|| modules_is_not_init($item['id_agent_module'])) {
|
||||||
//Restore dbconnection
|
//Restore dbconnection
|
||||||
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
|
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
@ -3905,7 +3909,14 @@ function reporting_general($report, $content) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modules_is_disable_agent($row['id_agent_module'])) {
|
if (modules_is_disable_agent($row['id_agent_module']) ||
|
||||||
|
modules_is_not_init($item['id_agent_module'])) {
|
||||||
|
|
||||||
|
if (is_metaconsole()) {
|
||||||
|
//Restore db connection
|
||||||
|
metaconsole_restore_db();
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ if (!defined('METACONSOLE')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if ($ag_group != "0" && check_acl ($config["id_user"], $id_ag_group, "AR")) {
|
if ($ag_group != "0" && check_acl ($config["id_user"], $id_ag_group, "AR")) {
|
||||||
$sql_conditions_group = sprintf (" AND tagente.id_grupo IN (%s) ", $ag_group);
|
$sql_conditions_group = sprintf (" AND tagente.id_grupo IN (%s) ", $ag_group);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user