mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2009-07-20 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: fix bug the any number of modules in unknown status for any agent paint with its colour in the list of agents. Now for the agent has a box colour with color for unknown, it must has all modules in unknown status. Fixes: 2805029 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1811 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e26d3bea51
commit
df9a28b49f
@ -1,3 +1,11 @@
|
|||||||
|
2009-07-20 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_reporting.php: fix bug the any number of modules in
|
||||||
|
unknown status for any agent paint with its colour in the list of
|
||||||
|
agents. Now for the agent has a box colour with color for unknown, it must
|
||||||
|
has all modules in unknown status.
|
||||||
|
Fixes: 2805029
|
||||||
|
|
||||||
2009-07-17 Miguel de Dios <miguel.dedios@artica.es>
|
2009-07-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* operation/agentes/status_monitor.php: fix bug default group in form.
|
* operation/agentes/status_monitor.php: fix bug default group in form.
|
||||||
|
@ -807,15 +807,14 @@ function get_agent_module_info ($id_agent) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//No modules is by default
|
|
||||||
if ($return["modules"] > 0) {
|
if ($return["modules"] > 0) {
|
||||||
if ($return["monitor_critical"] > 0) {
|
if ($return["modules"] == $return["monitor_down"])
|
||||||
|
$return["status_img"] = print_status_image (STATUS_AGENT_DOWN, __('At least one module is in UKNOWN status'), true);
|
||||||
|
else if ($return["monitor_critical"] > 0)
|
||||||
$return["status_img"] = print_status_image (STATUS_AGENT_CRITICAL, __('At least one module in CRITICAL status'), true);
|
$return["status_img"] = print_status_image (STATUS_AGENT_CRITICAL, __('At least one module in CRITICAL status'), true);
|
||||||
} elseif ($return["monitor_warning"] > 0) {
|
else if ($return["monitor_warning"] > 0)
|
||||||
$return["status_img"] = print_status_image (STATUS_AGENT_WARNING, __('At least one module in WARNING status'), true);
|
$return["status_img"] = print_status_image (STATUS_AGENT_WARNING, __('At least one module in WARNING status'), true);
|
||||||
} elseif ($return["monitor_down"] > 0) {
|
else
|
||||||
$return["status_img"] = print_status_image (STATUS_AGENT_DOWN, __('At least one module is in UKNOWN status'), true);
|
|
||||||
} else {
|
|
||||||
$return["status_img"] = print_status_image (STATUS_AGENT_OK, __('All Monitors OK'), true);
|
$return["status_img"] = print_status_image (STATUS_AGENT_OK, __('All Monitors OK'), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user