Fixed the availability item in the reports into metaconsole when some agents into this is disabled.
This commit is contained in:
parent
84fb973c6f
commit
fd90f637df
|
@ -3672,6 +3672,11 @@ function reporting_availability($report, $content) {
|
|||
}
|
||||
|
||||
if (modules_is_disable_agent($item['id_agent_module'])) {
|
||||
//Restore dbconnection
|
||||
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue