2007-10-03 Sancho Lerena <slerena@gmail.com>

* functions_db.php: Fixed problem in visual maps, alerts was not used
        to draw red icons. Fixed.

        * Two maps added, one icon fixed, and one icon added for visual console.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@665 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2007-10-03 01:16:32 +00:00
parent e921ce1abd
commit 8f4c492066
8 changed files with 25 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2007-10-03 Sancho Lerena <slerena@gmail.com>
* functions_db.php: Fixed problem in visual maps, alerts was not used
to draw red icons. Fixed.
* Two maps added, one icon fixed, and one icon added for visual console.
2007-09-27 Manuel Arostegui <marostegui@artica.es>
* operation/events/events.php: Fixed some problems

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 939 B

View File

@ -1085,17 +1085,28 @@ function give_db_value ($field, $table, $field_search, $condition_value){
// ---------------------------------------------------------------
function return_status_agent_module ($id_agentmodule = 0){
require("config.php");
$query1="SELECT estado FROM tagente_estado WHERE id_agente_modulo = ".$id_agentmodule;
$resq1=mysql_query($query1);
require ("config.php");
$query1 = "SELECT estado FROM tagente_estado WHERE id_agente_modulo = " . $id_agentmodule;
$resq1 = mysql_query ($query1);
if ($resq1 != 0) {
$rowdup=mysql_fetch_array($resq1);
if ($rowdup[0] == 0)
$rowdup = mysql_fetch_array($resq1);
if ($rowdup[0] == 100){
// We need to check if there are any alert on this item
$query2 = "SELECT SUM(times_fired) FROM talerta_agente_modulo WHERE id_agente_modulo = " . $id_agentmodule;
$resq2 = mysql_query($query2);
if ($resq2 != 0) {
$rowdup2 = mysql_fetch_array ($resq2);
if ($rowdup2[0] > 0){
return 0;
}
}
// No alerts fired for this agent module
return 1;
} elseif ($rowdup[0] == 0) // 0 is ok for estado field
return 1;
else
return 0;
} else
} else // asking for unknown module ?
return 0;
}