Added feature. The report items SLA, Availaibily and General do not show the not init modules. TICKET: #2510
This commit is contained in:
parent
a64f1eda1d
commit
6629d0fe1c
|
@ -4369,7 +4369,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
}
|
||||
}
|
||||
|
||||
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 (($config ['metaconsole'] == 1) && defined('METACONSOLE')) {
|
||||
//Restore db connection
|
||||
|
@ -5665,7 +5666,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
}
|
||||
}
|
||||
|
||||
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
|
||||
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
|
||||
metaconsole_restore_db();
|
||||
|
@ -5992,7 +5994,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
}
|
||||
}
|
||||
|
||||
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'])) {
|
||||
|
||||
//Restore dbconnection
|
||||
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
|
||||
|
@ -6193,7 +6196,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
}
|
||||
}
|
||||
|
||||
if (modules_is_disable_agent($g['id_agent_module'])) {
|
||||
if (modules_is_disable_agent($g['id_agent_module'])
|
||||
|| modules_is_not_init($item['id_agent_module'])) {
|
||||
//Restore dbconnection
|
||||
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
|
||||
metaconsole_restore_db();
|
||||
|
|
Loading…
Reference in New Issue