2009-07-20 Miguel de Dios <miguel.dedios@artica.es>

* operation/agentes/tactical.php, operation/agentes/status_monitor.php: add
	link to list monitors "not init".
	Fixes: 2815098



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1813 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-07-20 13:18:18 +00:00
parent 634642d286
commit 052008bbf9
3 changed files with 10 additions and 1 deletions
pandora_console

View File

@ -1,3 +1,9 @@
2009-07-20 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/tactical.php, operation/agentes/status_monitor.php: add
link to list monitors "not init".
Fixes: 2815098
2009-07-20 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: fix bad merge with local installation.

View File

@ -55,6 +55,7 @@ $fields[1] = __('Warning');
$fields[2] = __('Critical');
$fields[3] = __('Unknown');
$fields[4] = __('Not normal');
$fields[5] = __('Not init');
print_select ($fields, "status", $status, 'this.form.submit();', __('All'), -1);
echo '</td>';
@ -125,6 +126,8 @@ if ($status == 0) { //Up
$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)";
} elseif ($status == 5) {
$sql .= " AND tagente_estado.utimestamp = 0";
}
$sql .= " ORDER BY tagente.id_grupo, tagente.nombre";

View File

@ -116,7 +116,7 @@ $cells[4]["color"] = "#C0C0C0";
$cells[5][0] = __('Monitors not init');
$cells[5][1] = $data["monitor_not_init"];
$cells[5]["color"] = "#f00";
$cells[5]["href"] = "#";
$cells[5]["href"] = "index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60&status=5"; //Not init
$cells[6][0] = __('Alerts defined');
$cells[6][1] = $data["monitor_alerts"];