2007-09-20 Sancho Lerena <slerena@gmail.com>
* view_server.php, tactical.php: Solved bug in lagcheck for down modules. * godmode/agentes/manage_config.php: Agent ordered by name in destination box. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@657 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3c881119f7
commit
a34b039176
|
@ -1,4 +1,8 @@
|
|||
2007-09-20 Sancho Lerena <slerena@gmail.com>
|
||||
|
||||
* view_server.php, tactical.php: Solved bug in lagcheck for down modules.
|
||||
|
||||
* godmode/agentes/manage_config.php: Agent ordered by name in destination box.
|
||||
|
||||
2007-09-08 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ if (comprueba_login() == 0)
|
|||
<select name=destino[] size=10 multiple=yes style='width: 175px;'>
|
||||
<?php
|
||||
// Show combo with agents
|
||||
$sql1='SELECT * FROM tagente';
|
||||
$sql1='SELECT * FROM tagente order by nombre';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
|
||||
|
|
|
@ -286,8 +286,11 @@
|
|||
while ($row1=mysql_fetch_array($result1)){
|
||||
if (($row1[0] + $row1[1]) < $nowtime){
|
||||
$maxlag2 = $nowtime - ($row1[0] + $row1[1]);
|
||||
if ($maxlag2 > $maxlag)
|
||||
$maxlag = $maxlag2;
|
||||
// More than 5 times module interval is not lag, is a big
|
||||
// problem in agent, network or servers..
|
||||
if ($maxlag2 < ($row1[1]*5))
|
||||
if ($maxlag2 > $maxlag)
|
||||
$maxlag = $maxlag2;
|
||||
}
|
||||
}
|
||||
if ($maxlag < 60)
|
||||
|
|
|
@ -171,8 +171,11 @@ if (comprueba_login() == 0) {
|
|||
while ($row1=mysql_fetch_array($result1)){
|
||||
if (($row1[0] + $row1[1]) < $nowtime){
|
||||
$maxlag2 = $nowtime - ($row1[0] + $row1[1]);
|
||||
if ($maxlag2 > $maxlag)
|
||||
$maxlag = $maxlag2;
|
||||
// More than 5 times module interval is not lag, is a big
|
||||
// problem in agent, network or servers..
|
||||
if ($maxlag2 < ($row1[1]*5))
|
||||
if ($maxlag2 > $maxlag)
|
||||
$maxlag = $maxlag2;
|
||||
}
|
||||
}
|
||||
if ($maxlag < 60)
|
||||
|
|
Loading…
Reference in New Issue