mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user