mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2011-03-03 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: refixed the status when the agent have any module critical and any alert fired. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4d6dc00a86
commit
8f9ed10f16
@ -1,3 +1,8 @@
|
||||
2011-03-03 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_reporting.php: refixed the status when the agent have
|
||||
any module critical and any alert fired.
|
||||
|
||||
2011-03-02 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* include/functions*.php: Updated year in files changed this year. Also
|
||||
|
@ -1549,6 +1549,7 @@ function get_agent_module_info ($id_agent, $filter = false) {
|
||||
foreach ($modules as $key => $module) {
|
||||
$return["modules"]++;
|
||||
|
||||
$alert_status = get_agentmodule_status($key, false);
|
||||
$module_status = get_agentmodule_status($key, true);
|
||||
|
||||
switch ($module_status) {
|
||||
@ -1564,9 +1565,10 @@ function get_agent_module_info ($id_agent, $filter = false) {
|
||||
case 3:
|
||||
$return["monitor_unknown"]++;
|
||||
break;
|
||||
case 4:
|
||||
}
|
||||
|
||||
if ($alert_status == 4) {
|
||||
$return["monitor_alertsfired"]++;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1595,7 +1597,8 @@ function get_agent_module_info ($id_agent, $filter = false) {
|
||||
$return["alert_status"] = "fired";
|
||||
$return["alert_img"] = print_status_image (STATUS_ALERT_FIRED, __('Alert fired'), true);
|
||||
$return["alert_value"] = STATUS_ALERT_FIRED;
|
||||
} elseif (give_disabled_group ($return["agent_group"])) {
|
||||
}
|
||||
elseif (give_disabled_group ($return["agent_group"])) {
|
||||
$return["alert_status"] = "disabled";
|
||||
$return["alert_value"] = STATUS_ALERT_DISABLED;
|
||||
$return["alert_img"] = print_status_image (STATUS_ALERT_DISABLED, __('Alert disabled'), true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user