2009-01-28 Sancho Lerena <slerena@artica.es>
* estado_grupo.php: Async modules and keepalive module don't show as down anymore. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1409 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f6b94ed8cd
commit
8817f78dbe
|
@ -1,3 +1,8 @@
|
|||
2009-01-28 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* estado_grupo.php: Async modules and keepalive module don't show as down
|
||||
anymore.
|
||||
|
||||
2009-01-28 Jorge Gonzalez <jorgegonz@artica.es>
|
||||
|
||||
* include/functions.php, operation/agentes/sla_view.php,
|
||||
|
|
|
@ -76,7 +76,7 @@ foreach ($groups as $id_group => $group_name) {
|
|||
|
||||
// SQL Join to get monitor status for agents belong this group
|
||||
$sql = sprintf ("SELECT tagente_estado.estado, tagente_estado.current_interval,
|
||||
tagente_estado.utimestamp
|
||||
tagente_estado.utimestamp, tagente_modulo.id_tipo_modulo
|
||||
FROM tagente, tagente_estado, tagente_modulo
|
||||
WHERE tagente.disabled = 0
|
||||
AND tagente.id_grupo = %d
|
||||
|
@ -91,7 +91,8 @@ foreach ($groups as $id_group => $group_name) {
|
|||
foreach ($modules as $module) {
|
||||
$seconds = $now - $module['utimestamp'];
|
||||
if ($seconds >= ($module['current_interval'] * 2)) {
|
||||
$group_info['down']++;
|
||||
if ($module['id_tipo_modulo'] < 21) // Avoiding ASYNC and Keepalive
|
||||
$group_info['down']++;
|
||||
} elseif ($module['estado'] == 2) {
|
||||
$group_info['warning']++;
|
||||
} elseif ($module['estado'] == 1) {
|
||||
|
|
Loading…
Reference in New Issue