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:
mdtrooper 2009-07-20 08:36:55 +00:00
parent cf53de923a
commit 063e5098c9
2 changed files with 14 additions and 7 deletions

View File

@ -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>
* operation/agentes/status_monitor.php: fix bug default group in form.

View File

@ -806,16 +806,15 @@ function get_agent_module_info ($id_agent) {
$return["monitor_normal"]++;
}
}
//No modules is by default
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);
} 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);
} elseif ($return["monitor_down"] > 0) {
$return["status_img"] = print_status_image (STATUS_AGENT_DOWN, __('At least one module is in UKNOWN status'), true);
} else {
else
$return["status_img"] = print_status_image (STATUS_AGENT_OK, __('All Monitors OK'), true);
}
}