2009-10-14 Miguel de Dios <miguel.dedios@artica.es>

* operation/agentes/status_monitor.php: fix, show only monitor in unknow
	status when you click in the "Unknown monitors" in tactical agent view.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2021 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-10-14 19:42:32 +00:00
parent 36c9210284
commit 41f0df04e3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-10-14 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/status_monitor.php: fix, show only monitor in unknow
status when you click in the "Unknown monitors" in tactical agent view.
2009-10-09 Miguel de Dios <miguel.dedios@artica.es>
* general/ui/agents_list.php: remove the pass-by-reference in the two calls

View File

@ -125,7 +125,7 @@ if ($status == 0) { //Up
} elseif ($status == 4) { //not normal
$sql .= " AND ((UNIX_TIMESTAMP(NOW()) - tagente_estado.utimestamp) >= (tagente_estado.current_interval * 2) OR tagente_estado.estado = 2 OR tagente_estado.estado = 1) ";
} elseif ($status == 3) { //Unknown
$sql .= " AND tagente_modulo.id_tipo_modulo < 21 AND (UNIX_TIMESTAMP(NOW()) - tagente_estado.utimestamp) >= (tagente_estado.current_interval * 2)";
$sql .= " AND utimestamp > 0 AND tagente_modulo.id_tipo_modulo < 21 AND (UNIX_TIMESTAMP(NOW()) - tagente_estado.utimestamp) >= (tagente_estado.current_interval * 2)";
} elseif ($status == 5) {
$sql .= " AND tagente_estado.utimestamp = 0";
}