2007-06-16 Raul Mateos <raulofpandora@gmail.com>

* godmode/menu.php: Updated component groups highlight.
	* operation/snmpconsole/*.php, general/logon_ok.php,
	godmode/db/db_info_data.php, godmode/servers/manage_recontask.php,
	godmode/servers/modificar_server.php, operation/agentes/exportdata.php:
	Removed old raya style and changed to new style. 
	Closed hundreds of unclosed html tags (review W3C standards)
	* operation/servers/view_server.php, godmode/reporting/graph_builder.php:
	Closed html tags.
	* include/styles/pandora.css: Deleted definetely raya style.
	* include/styles/tip.css: Updated tip2 style to datos2 colour.
	* godmode/alerts/configure_alert.php, godmode/modules/manage*form.php:
	Changed databox style to databox_color

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@514 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2007-06-16 16:04:01 +00:00
parent f89c155ab3
commit 665de5139d
19 changed files with 220 additions and 181 deletions

View File

@ -1,3 +1,23 @@
2007-06-16 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php: Updated component groups highlight.
* operation/snmpconsole/*.php, general/logon_ok.php,
godmode/db/db_info_data.php, godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php, operation/agentes/exportdata.php:
Removed old raya style and changed to new style.
Closed hundreds of unclosed html tags (review W3C standards)
* operation/servers/view_server.php, godmode/reporting/graph_builder.php:
Closed html tags.
* include/styles/pandora.css: Deleted definetely raya style.
* include/styles/tip.css: Updated tip2 style to datos2 colour.
* godmode/alerts/configure_alert.php, godmode/modules/manage*form.php:
Changed databox style to databox_color
2007-06-13 Raul Mateos <raulofpandora@gmail.com> 2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css, * godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,

View File

@ -91,21 +91,21 @@
echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>"; echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>";
echo "<th colspan=2>".$lang_label["Pandora_FMS_summary"]."</th>"; echo "<th colspan=2>".$lang_label["Pandora_FMS_summary"]."</th>";
echo "<tr><td class=datos2><b>"."Total agents"; echo "<tr><td class='datos2'><b>"."Total agents"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$total_agents; echo "<td class='datos2' style='font: bold 2em Arial, Sans-serif; color: #000;'>".$total_agents."</td>";
echo "<tr><td class=datos2><b>"."Total checks"; echo "</tr><tr><td class='datos'><b>"."Total checks"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$total_checks; echo "<td class='datos' style='font: bold 2em Arial, Sans-serif; color: #000;'>".$total_checks."</td>";
echo "<tr><td class=datos2><b>"."Monitor BAD"; echo "</tr><tr><td class='datos2'><b>"."Monitor BAD"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #ff0000;'>"; echo "<td class='datos2' style='font: bold 2em Arial, Sans-serif; color: #f00;'>";
if ($monitor_bad > 0) if ($monitor_bad > 0)
echo $monitor_bad; echo $monitor_bad;
else else
echo "-"; echo "-";
echo "<tr><td class=datos2><b>"."Alerts defined"; echo "</td></tr><tr><td class='datos'><b>"."Alerts defined"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$total_alerts; echo "<td class='datos' style='font: bold 2em Arial, Sans-serif; color: #000;'>".$total_alerts."</td>";
echo "<tr><td class=datos2><b>"."Total users"; echo "</tr><tr><td class='datos2'><b>"."Total users"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$users_defined; echo "<td class='datos2' style='font: bold 2em Arial, Sans-serif; color: #000;'>".$users_defined."</td>";
echo "</table>"; echo "</tr></table>";
echo "</table>"; echo "</table>";
@ -113,7 +113,7 @@
// Show last activity from this user // Show last activity from this user
echo "<h2>" . $lang_label["user_last_activity"] . "</h2>"; echo "<h2>" . $lang_label["user_last_activity"] . "</h2>";
// Show table header // Show table header
echo '<table cellpadding="3" cellspacing="3" width="700"><tr>'; echo '<table cellpadding="4" cellspacing="4" width="700" class="databox"><tr>';
echo '<th>' . $lang_label["user"] . '</th>'; echo '<th>' . $lang_label["user"] . '</th>';
echo '<th>' . $lang_label["action"] . '</th>'; echo '<th>' . $lang_label["action"] . '</th>';
echo '<th width="130px">' . $lang_label["date"] . '</th>'; echo '<th width="130px">' . $lang_label["date"] . '</th>';
@ -149,8 +149,7 @@
$contador--; $contador--;
} }
echo "<tr><td colspan='5'><div class='raya'></div>"; echo "</table>";
echo "</td></tr></table>";
echo "</div>"; // activity echo "</div>"; // activity
echo '</div>'; // class "jus" echo '</div>'; // class "jus"

View File

@ -73,7 +73,7 @@ echo "</h2>";
echo "<input type='hidden' name='id_alerta' value='".$id_alerta."'>"; echo "<input type='hidden' name='id_alerta' value='".$id_alerta."'>";
} }
?> ?>
<table width="500" cellspacing="4" cellpadding="4" class="databox"> <table width="500" cellspacing="4" cellpadding="4" class="databox_color">
<tr><td class="datos"><?php echo $lang_label["alertname"] ?></td> <tr><td class="datos"><?php echo $lang_label["alertname"] ?></td>
<td class="datos"> <td class="datos">
<input type="text" name="nombre" size=30 value="<?php echo $nombre ?>"></td> <input type="text" name="nombre" size=30 value="<?php echo $nombre ?>"></td>
@ -82,7 +82,7 @@ echo "</h2>";
<td class="datos2"><?php echo $lang_label["command"] ?></td> <td class="datos2"><?php echo $lang_label["command"] ?></td>
<td class="datos2"> <td class="datos2">
<input type="text" name="comando" size="50" value="<?php echo $comando ?>"> <input type="text" name="comando" size="50" value="<?php echo $comando ?>">
<a href='#' class='tip'>&nbsp;<span> <a href='#' class='tip2'>&nbsp;<span>
<b>Macros:</b><br> <b>Macros:</b><br>
_field1_<br> _field1_<br>
_field2_<br> _field2_<br>

View File

@ -34,8 +34,9 @@ if (comprueba_login() == 0)
echo "<h2>".$lang_label["dbmain_title"]." &gt; "; echo "<h2>".$lang_label["dbmain_title"]." &gt; ";
echo $lang_label["db_stat_agent"]."</h2>"; echo $lang_label["db_stat_agent"]."</h2>";
echo "<table cellspacing='3' cellpadding='3'>"; echo "<table cellspacing='4' cellpadding='4' class='databox'>";
echo "<tr><th>".$lang_label["agent_name"]."</th>"; echo "<tr>
<th>".$lang_label["agent_name"]."</th>";
echo "<th>".$lang_label["assigned_module"]."</th>"; echo "<th>".$lang_label["assigned_module"]."</th>";
echo "<th>".$lang_label["total_data"]."</th>"; echo "<th>".$lang_label["total_data"]."</th>";
$color=0; $color=0;
@ -60,13 +61,15 @@ if (comprueba_login() == 0)
$tdcolor = "datos2"; $tdcolor = "datos2";
$color = 1; $color = 1;
} }
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=gagente&sec2=operation/agentes/ver_agente&id_agente=".$row2["id_agente"]."'>".dame_nombre_agente($row2[0])."</a></b>"; echo "<tr>
echo "<td class='$tdcolor'>".$row3c[0]; <td class='$tdcolor'>
echo "<td class='$tdcolor'>".$total_agente; <b><a href='index.php?sec=gagente&sec2=operation/agentes/ver_agente&id_agente=".$row2["id_agente"]."'>".dame_nombre_agente($row2[0])."</a></b></td>";
echo "<td class='$tdcolor'>".$row3c[0]."</td>";
echo "<td class='$tdcolor'>".$total_agente."</td></tr>";
flush(); flush();
//ob_flush(); //ob_flush();
} }
echo "<tr><td colspan='3'><div class='raya'></div></td></tr></table>"; echo "</table>";
} }
else { else {
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Database Management Info data"); audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Database Management Info data");

View File

@ -63,7 +63,7 @@ if (comprueba_login() == 0){
echo '<ul class="mn"><li><a href="index.php?sec=gmodules&sec2=godmode/modules/module_list" class="mn">'.$lang_label["manage_modules"].'</a></li></ul></div>'; echo '<ul class="mn"><li><a href="index.php?sec=gmodules&sec2=godmode/modules/module_list" class="mn">'.$lang_label["manage_modules"].'</a></li></ul></div>';
if (isset($_GET["sec"]) && $_GET["sec"] == "gmodules"){ if (isset($_GET["sec"]) && $_GET["sec"] == "gmodules"){
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/modules/manage_nc_groups") if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/modules/manage_nc_groups" || $_GET["sec2"] == "godmode/modules/manage_nc_groups_form")
echo "<div class='arrowgs'>"; echo "<div class='arrowgs'>";
else else
echo "<div class='arrowg'>"; echo "<div class='arrowg'>";

View File

@ -50,7 +50,7 @@ if (isset($_GET["edit"])){ // Edit mode
} }
echo "<h2>".$lang_label["network_component_group_management"]."</h2>"; echo "<h2>".$lang_label["network_component_group_management"]."</h2>";
echo '<table width="500" cellspacing="4" cellpadding="4" class="databox">'; echo '<table width="500" cellspacing="4" cellpadding="4" class="databox_color">';
// Different Form url if it's a create or if it's a update form // Different Form url if it's a create or if it's a update form
if ($id_sg != -1) if ($id_sg != -1)

View File

@ -184,7 +184,7 @@ if (isset($_GET["update"])){ // Edit mode
} }
echo "<h2>".$lang_label["network_component_management"]."</h2>"; echo "<h2>".$lang_label["network_component_management"]."</h2>";
echo '<table width="700" cellspacing="4" cellpadding="4" class="databox">'; echo '<table width="700" cellspacing="4" cellpadding="4" class="databox_color">';
// Different Form url if it's a create or if it's a update form // Different Form url if it's a create or if it's a update form
if ($id_nc != -1) { if ($id_nc != -1) {

View File

@ -104,7 +104,7 @@ if (isset($_GET["update"])){ // Update profile
echo "<h2>".$lang_label["module_management"]." &gt; "; echo "<h2>".$lang_label["module_management"]." &gt; ";
echo $lang_label["network_profile_management"]."</h2>"; echo $lang_label["network_profile_management"]."</h2>";
echo "<table width='550' cellpadding='4' cellspacing='4' class='databox'>"; echo "<table width='550' cellpadding='4' cellspacing='4' class='databox_color'>";
if ($id_np == -1) if ($id_np == -1)
echo '<form name="new_user" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&create=1">'; echo '<form name="new_user" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&create=1">';

View File

@ -207,7 +207,7 @@ if (isset($chunk1)) {
if (isset($period)) if (isset($period))
echo "<input type='hidden' name='period' value='$period'>"; echo "<input type='hidden' name='period' value='$period'>";
echo "<table width='500' cellpadding=4 cellpadding=4 class='databox_frame'>"; echo "<table width='500' cellpadding=4 cellpadding=4 class='databox'>";
echo "<tr> echo "<tr>
<th>".$lang_label["agent"]."</th> <th>".$lang_label["agent"]."</th>
<th>".$lang_label["module"]."</th> <th>".$lang_label["module"]."</th>
@ -231,10 +231,12 @@ if (isset($chunk1)) {
echo dame_nombre_modulo_agentemodulo($module_array[$a])."</td>"; echo dame_nombre_modulo_agentemodulo($module_array[$a])."</td>";
echo "<td class='$tdcolor'>"; echo "<td class='$tdcolor'>";
echo $weight_array[$a]."</td>"; echo $weight_array[$a]."</td>";
echo "<td class='$tdcolor'>"; echo "<td class='$tdcolor' align='center'>";
echo "<input style='height=2px;' type=checkbox name='delete_$a' value='".$module_array[$a]."'></td></tr>"; echo "<input type=checkbox name='delete_$a' value='".$module_array[$a]."'></td></tr>";
} }
echo "<tr><td class=datos colspan=4 align='right'><input type=submit name='update_agent' class='sub delete' value='".$lang_label["delete"]."'>"; echo "</table>";
echo "<table width='500px'>";
echo "<tr><td align='right'><input type=submit name='update_agent' class='sub delete' value='".$lang_label["delete"]."'>";
echo "</table>"; echo "</table>";
echo "</form>"; echo "</form>";
} }
@ -245,7 +247,7 @@ if (isset($chunk1)) {
if (($render == 1) && (isset($modules))) { if (($render == 1) && (isset($modules))) {
// parse chunk // parse chunk
echo "<h3>".$lang_label["combined_image"]."</h3>"; echo "<h3>".$lang_label["combined_image"]."</h3>";
echo "<table class='databox_frame'>"; echo "<table class='databox'>";
echo "<tr><td>"; echo "<tr><td>";
echo "<img src='reporting/fgraph.php?tipo=combined&id=$modules&weight_l=$weights&label=Combined%20Sample%20Graph&height=$height&width=$width&period=$period' border=1 alt=''>"; echo "<img src='reporting/fgraph.php?tipo=combined&id=$modules&weight_l=$weights&label=Combined%20Sample%20Graph&height=$height&width=$width&period=$period' border=1 alt=''>";
echo "</td></tr></table>"; echo "</td></tr></table>";
@ -261,7 +263,7 @@ if ( (!isset($_GET["add_module"]))){
} else { } else {
echo "<h3>".$lang_label["graph_builder"]."</h3>"; echo "<h3>".$lang_label["graph_builder"]."</h3>";
} }
echo "<table width='500' cellpadding=4 cellpadding=4 class='databox_frame'>"; echo "<table width='500' cellpadding=4 cellpadding=4 class='databox_color'>";
echo "<form method='post' action='index.php?sec=greporting&sec2=godmode/reporting/graph_builder&get_agent=1'>"; echo "<form method='post' action='index.php?sec=greporting&sec2=godmode/reporting/graph_builder&get_agent=1'>";
if (isset($period)) if (isset($period))
@ -275,11 +277,11 @@ echo "</b>";
echo "<td class='datos' colspan=2><select name='id_agent' style='width:180px;'>"; echo "<td class='datos' colspan=2><select name='id_agent' style='width:180px;'>";
if ($id_agent != 0) if ($id_agent != 0)
echo "<option value='$id_agent'>".dame_nombre_agente($id_agent); echo "<option value='$id_agent'>".dame_nombre_agente($id_agent);
$sql1='SELECT * FROM tagente order by nombre'; $sql1='SELECT * FROM tagente ORDER BY nombre';
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
if ( $id_agent != $row["id_agente"]) if ( $id_agent != $row["id_agente"])
echo "<option value=".$row["id_agente"].">".$row["nombre"]; echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
} }
echo '</select>'; echo '</select>';
if (isset($chunkdata)) if (isset($chunkdata))
@ -302,13 +304,13 @@ echo "<tr><td class='datos2'>";
echo "<b>".$lang_label["modules"]."</b>"; echo "<b>".$lang_label["modules"]."</b>";
echo "<td class='datos2' colspan=3>"; echo "<td class='datos2' colspan=3>";
echo "<select name='id_module' size=1 style='width:180px;'>"; echo "<select name='id_module' size=1 style='width:180px;'>";
echo "<option value=-1> --"; echo "<option value=-1> -- </option>";
if ($id_agent != 0){ if ($id_agent != 0){
// Populate Module/Agent combo // Populate Module/Agent combo
$sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$id_agent. " order by nombre"; $sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$id_agent. " ORDER BY nombre";
$result = mysql_query($sql1); $result = mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]; echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]."</option>";
} }
} }
echo "</select>"; echo "</select>";
@ -425,11 +427,12 @@ if ($alerts == 1){
} }
echo "</select>"; echo "</select>";
*/ */
echo "</tr></table>";
echo "<tr><td colspan=4 class=datos align='right'><input type=submit name='update_agent' class='sub upd' value='".$lang_label["add"]."/".$lang_label["redraw"]."'>"; echo "<table width='500px'>";
echo "<tr><td align='right'><input type=submit name='update_agent' class='sub upd' value='".$lang_label["add"]."/".$lang_label["redraw"]."'>";
echo "</form>"; echo "</form>";
echo "</table>"; echo "</td></tr></table>";
// ----------------------- // -----------------------
// STORE GRAPH FORM // STORE GRAPH FORM
@ -438,7 +441,7 @@ echo "</table>";
// If we have something to save.. // If we have something to save..
if (isset($module_array)){ if (isset($module_array)){
echo "<h3>".$lang_label["graph_store"]."</h3>"; echo "<h3>".$lang_label["graph_store"]."</h3>";
echo "<table width='500' cellpadding=4 cellpadding=4 class='databox_frame'>"; echo "<table width='500' cellpadding=4 cellpadding=4 class='databox_color'>";
echo "<form method='post' action='index.php?sec=greporting&sec2=godmode/reporting/graph_builder&store_graph=1'>"; echo "<form method='post' action='index.php?sec=greporting&sec2=godmode/reporting/graph_builder&store_graph=1'>";
// hidden fields with data begin // hidden fields with data begin
@ -457,24 +460,25 @@ if (isset($module_array)){
// hidden fields end // hidden fields end
echo "<tr>"; echo "<tr>";
echo "<td class='datos'><b>".$lang_label["name"]; echo "<td class='datos'><b>".$lang_label["name"]."</b></td>";
echo "</b>"; echo "</b>";
echo "<td class='datos'><input type='text' name='name' size='35'>"; echo "<td class='datos'><input type='text' name='name' size='35'>";
echo "<td class='datos'><b>".$lang_label["private"]; echo "<td class='datos'><b>".$lang_label["private"]."</b></td>";
echo "</b>"; echo "</b>";
echo "<td class='datos'><select name='private'>"; echo "<td class='datos'><select name='private'>";
echo "<option value=0>".$lang_label["no"]; echo "<option value=0>".$lang_label["no"]."</option>";
echo "<option value=1>".$lang_label["yes"]; echo "<option value=1>".$lang_label["yes"]."</option>";
echo "</select>"; echo "</select>";
echo "</td></tr>";
echo "<tr>"; echo "<tr>";
echo "<td class='datos2'><b>".$lang_label["description"]; echo "<td class='datos2'><b>".$lang_label["description"]."</b></td>";
echo "</b>"; echo "</b>";
echo "<td class='datos2' colspan=4><textarea name='description' style='height:45px;' cols=55 rows=2>"; echo "<td class='datos2' colspan=4><textarea name='description' style='height:45px;' cols=55 rows=2>";
echo "</textarea>"; echo "</textarea>";
echo "</td></tr></table>";
echo "<tr><td class=datos colspan=4 align='right'><input type=submit name='store' class='sub wand' value='".$lang_label["store"]."'>"; echo "<table width='500px'>";
echo "<tr><td align='right'><input type=submit name='store' class='sub wand' value='".$lang_label["store"]."'>";
echo "</form>"; echo "</form>";

View File

@ -93,7 +93,7 @@ $query="SELECT * FROM trecon_task";
$result=mysql_query($query); $result=mysql_query($query);
$color=1; $color=1;
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo "<table cellpadding='4' cellspacing='4' witdh='750'>"; echo "<table cellpadding='4' cellspacing='4' witdh='750' class='databox'>";
echo "<tr><th class='datos'>".$lang_label["name"]; echo "<tr><th class='datos'>".$lang_label["name"];
echo "<th class='datos'>".$lang_label['type']; echo "<th class='datos'>".$lang_label['type'];
echo "<th class='datos'>".$lang_label['network']; echo "<th class='datos'>".$lang_label['network'];
@ -130,51 +130,51 @@ while ($row=mysql_fetch_array($result)){
echo "<td class='$tdcolor'>"; echo "<td class='$tdcolor'>";
echo "<a href='index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&update=$id_rt'><b>$name</b></A>"; echo "<a href='index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&update=$id_rt'><b>$name</b></A>";
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
if ($type ==1) if ($type ==1)
echo "ICMP"; echo "ICMP";
// Network // Network
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
echo $network; echo $network;
// Network profile name // Network profile name
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates&id=$id_network_profile'>".give_network_profile_name($id_network_profile)."</a>"; echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates&id=$id_network_profile'>".give_network_profile_name($id_network_profile)."</a>";
// GROUP // GROUP
echo "<td class='$tdcolor' align='center'>"; echo "</td><td class='$tdcolor' align='center'>";
echo "<img class='bot' src='images/groups_small/".show_icon_group($id_group).".png'>"; echo "<img class='bot' src='images/groups_small/".show_icon_group($id_group).".png' alt=''>";
// INCIDENT // INCIDENT
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
if ($create_incident == 1) if ($create_incident == 1)
echo $lang_label["yes"]; echo $lang_label["yes"];
else else
echo $lang_label["no"]; echo $lang_label["no"];
// INTERVAL // INTERVAL
echo "<td class='$tdcolor' align='center'>"; echo "</td><td class='$tdcolor' align='center'>";
echo $interval; echo $interval;
// Recon server // Recon server
echo "<td class='$tdcolor'f9 >"; echo "</td><td class='$tdcolor'f9 >";
echo "<a href='index.php?sec=gserver&sec2=godmode/servers/modificar_server&server=$id_network_server'>".give_server_name($id_network_server)."</a>"; echo "<a href='index.php?sec=gserver&sec2=godmode/servers/modificar_server&server=$id_network_server'>".give_server_name($id_network_server)."</a>";
// Network server assigned // Network server assigned
echo "<td class='$tdcolor'f9 >"; echo "</td><td class='$tdcolor'f9 >";
echo "<a href='index.php?sec=gserver&sec2=godmode/servers/modificar_server&server=$id_network_server_assigned'>".give_server_name($id_network_server_assigned)."</a>";; echo "<a href='index.php?sec=gserver&sec2=godmode/servers/modificar_server&server=$id_network_server_assigned'>".give_server_name($id_network_server_assigned)."</a>";;
// ACTION // ACTION
echo "<td class='".$tdcolor."' align='center'><a href='index.php?sec=gservers&sec2=godmode/servers/manage_recontask&delete=$id_rt'><img src='images/cross.png' border='0'>"; echo "</td><td class='".$tdcolor."' align='center'><a href='index.php?sec=gservers&sec2=godmode/servers/manage_recontask&delete=$id_rt'><img src='images/cross.png' border='0'></td></tr>";
} }
if (mysql_num_rows($result)){ echo "</table>";
echo '<tr><td colspan="12"><div class="raya"></div></td></tr>'; if (!mysql_num_rows($result)){
} else {
echo "<div class='nf'>".$lang_label["no_rtask"]."</div>"; echo "<div class='nf'>".$lang_label["no_rtask"]."</div>";
echo "<table>"; echo "<table>";
} else {
echo "<table width='700'>";
} }
echo "<tr><td align='right' colspan='11'>";
echo "<tr><td align='right'>";
echo "<form method='post' action='index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create'>"; echo "<form method='post' action='index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create'>";
echo "<input type='submit' class='sub next' name='crt' echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
value='".$lang_label["create"]."'>";
echo "</form></table>"; echo "</form></table>";
?> ?>

View File

@ -66,8 +66,8 @@ if (comprueba_login() == 0) {
$master = $row["master"]; $master = $row["master"];
$checksum = $row["checksum"]; $checksum = $row["checksum"];
$description = $row["description"]; $description = $row["description"];
echo '<form name="servers" method="POST" action="index.php?sec=gserver&sec2=godmode/servers/modificar_server&update=1">'; echo '<form name="servers" method="POST" action="index.php?sec=gservers&sec2=godmode/servers/modificar_server&update=1">';
echo "<table cellpadding='4' cellspacing='4' width='450' class='databox'>"; echo "<table cellpadding='4' cellspacing='4' width='450' class='databox_color'>";
echo "<tr>"; echo "<tr>";
echo "<td class='datos'>".$lang_label["name"]."</td><td class='datos'><input type='text' name='name' value='".$name."' width='200px'>"; echo "<td class='datos'>".$lang_label["name"]."</td><td class='datos'><input type='text' name='name' value='".$name."' width='200px'>";
echo "<tr><td class='datos2'>".$lang_label['ip_address']."</td><td class='datos2'><input type='text' name='address' value='".$address."' width='200px'>"; echo "<tr><td class='datos2'>".$lang_label['ip_address']."</td><td class='datos2'><input type='text' name='address' value='".$address."' width='200px'>";
@ -90,21 +90,17 @@ if (comprueba_login() == 0) {
// Connect DataBase // Connect DataBase
$result=mysql_query($sql); $result=mysql_query($sql);
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo "<table cellpadding='3' cellspacing='3' witdh=550>"; echo "<table cellpadding='4' cellspacing='4' witdh='550' class='databox'>";
echo "<tr><th class='datos'>".$lang_label["name"]; echo "<tr><th class='datos'>".$lang_label["name"]."</th>";
echo "<th class='datos'>".$lang_label['status']; echo "<th class='datos'>".$lang_label['status']."</th>";
echo "<th class='datos'>".$lang_label['ip_address']; echo "<th class='datos'>".$lang_label['ip_address']."</th>";
echo "<th class='datos'>".$lang_label['description']; echo "<th class='datos'>".$lang_label['description']."</th>";
echo "<th class='datos'>".$lang_label['network']; echo "<th class='datos' width=80>".$lang_label['type']."</th>";
echo "<th class='datos'>".$lang_label['data']; echo "<th class='datos'>".$lang_label['laststart']."</th>";
echo "<th class='datos'>".$lang_label['snmp']; echo "<th class='datos'>".$lang_label['lastupdate']."</th>";
echo "<th class='datos'>".$lang_label['master']; echo "<th class='datos'>".$lang_label['delete']."</th>";
echo "<th class='datos'>".$lang_label['checksum']; $color=1;
echo "<th class='datos'>".$lang_label['laststart'];
echo "<th class='datos'>".$lang_label['lastupdate'];
echo "<th class='datos'>".$lang_label['delete'];
$color=1;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
$name = $row["name"]; $name = $row["name"];
$address = $row["ip_address"]; $address = $row["ip_address"];
@ -128,41 +124,59 @@ if (comprueba_login() == 0) {
$color = 1; $color = 1;
} }
echo "<tr><td class='$tdcolor'>"; echo "<tr><td class='$tdcolor'>";
echo "<a href='index.php?sec=gserver&sec2=godmode/servers/modificar_server&server=".$id_server."'><b>$name</b></a>"; echo "<a href='index.php?sec=gservers&sec2=godmode/servers/modificar_server&server=".$id_server."'><b>$name</b></a>";
echo "<td class='$tdcolor' align='middle'>"; echo "</td><td class='$tdcolor' align='middle'>";
if ($status ==0){ if ($status ==0){
echo "<img src='images/dot_red.gif'>"; echo "<img src='images/dot_red.gif'>";
} else { } else {
echo "<img src='images/dot_green.gif'>"; echo "<img src='images/dot_green.gif'>";
} }
echo "<td class='$tdcolor' align='middle'>"; echo "</td><td class='$tdcolor' align='middle'>";
echo "$address"; echo "$address";
echo "<td class='".$tdcolor."f9'>".substr($description,0,25); echo "</td><td class='".$tdcolor."f9'>".substr($description,0,25);
echo "<td class='$tdcolor' align='middle'>"; echo "</td><td class='$tdcolor' align='middle'>";
if ($network_server == 1){ if ($network_server == 1){
echo "<img src='images/network.gif'>"; echo "&nbsp; <img src='images/network.gif'>";
} }
echo "<td class='$tdcolor' align='middle'>";
if ($data_server == 1){ if ($data_server == 1){
echo "<img src='images/data.gif'>"; echo "&nbsp; <img src='images/data.gif'>";
} }
echo "<td class='$tdcolor' align='middle'>";
if ($snmp_server == 1){ if ($snmp_server == 1){
echo "<img src='images/snmp.gif'>"; echo "&nbsp; <img src='images/snmp.gif'>";
} }
echo "<td class='$tdcolor' align='middle'>";
if ($master == 1){ if ($master == 1){
echo "<img src='images/master.gif'>"; echo "&nbsp; <img src='images/master.gif'>";
} }
echo "<td class='$tdcolor' align='middle'>";
if ($checksum == 1){ if ($checksum == 1){
echo "<img src='images/binary.gif'>"; echo "&nbsp; <img src='images/binary.gif'>";
} }
echo "<td class='".$tdcolor."f9' align='middle'>".substr($keepalive,0,25); echo "</td><td class='".$tdcolor."f9' align='middle'>".substr($keepalive,0,25)."</td>";
echo "<td class='".$tdcolor."f9' align='middle'>".substr($laststart,0,25); echo "<td class='".$tdcolor."f9' align='middle'>".substr($laststart,0,25)."</td>";
echo "<td class='".$tdcolor."f9' align='middle'><a href='index.php?sec=gserver&sec2=godmode/servers/modificar_server&server_del=".$id_server."&delete'><img src='images/cross.png' border='0'>"; echo "<td class='".$tdcolor."f9' align='middle'>
<a href='index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_del=".$id_server."&delete'>
<img src='images/cross.png' border='0'></td></tr>";
} }
echo '<tr><td colspan="12"><div class="raya"></div></td></tr></table>'; echo '</table>';
echo "<table cellpadding=2 cellspacing=0>";
echo "
<tr>
<td>
<span class='net'>".$lang_label["network_server"]."</span>
</td>
<td>
<span class='master'>".$lang_label["master"]."</span>
</td>
<td>
<span class='data'>".$lang_label["data_server"]."</span>
</td>
<td>
<span class='binary'>".$lang_label["md5_checksum"]."</span>
</td>
<td>
<span class='snmp'>".$lang_label["snmp_console"]."</span>
</td>
</tr>";
echo "</table>";
} }
else { else {
echo "<div class='nf'>".$lang_label["no_server"]."</div>"; echo "<div class='nf'>".$lang_label["no_server"]."</div>";

View File

@ -375,13 +375,6 @@ td.datos_jus, td.datos2_jus {
.redb, .greenb, td.datos_id, td.datos2_id, f9b { .redb, .greenb, td.datos_id, td.datos2_id, f9b {
font-weight: bold; font-weight: bold;
} }
.raya {
border-top: 1px solid #786;
width: 100%;
}
.raya, .noraya {
margin-bottom: -10px;
}
.p10 { .p10 {
padding-top: 1px; padding-top: 1px;
padding-bottom: 0px; padding-bottom: 0px;

View File

@ -31,7 +31,8 @@ a.tip:hover {
} }
a.tip2:hover { a.tip2:hover {
text-decoration: none; text-decoration: none;
background-color: #e6e9cd; /* background-color: #e6e9cd;*/
background-color: #efefef
} }
a.tipp:hover { a.tipp:hover {
text-decoration: none; text-decoration: none;

View File

@ -53,8 +53,10 @@ function generate_average_table ($id_de_mi_agente, $id_agente_modulo, $fecha_ini
// Table header // Table header
echo "<table border=0 cellpadding=4 cellspacing=4 width=600 class='databox'>"; echo "<table border=0 cellpadding=4 cellspacing=4 width=600 class='databox'>";
echo "<tbody><tr><th rowspan=\"2\">".$lang_label["hour"]."</th>"; echo "<tr>
echo "<th colspan=\"7\">".$lang_label["day"]."</Th></tr>"; <th rowspan='2'>".$lang_label["hour"]."</th>";
echo "<th colspan='7'>".$lang_label["day"]."</th>
</tr>";
echo "<tr>"; echo "<tr>";
for ($dia=0;$dia<7;++$dia) for ($dia=0;$dia<7;++$dia)
echo "<th>".$dias_de_la_semana[$dia]."</th>"; echo "<th>".$dias_de_la_semana[$dia]."</th>";
@ -72,11 +74,11 @@ function generate_average_table ($id_de_mi_agente, $id_agente_modulo, $fecha_ini
for ($dia=0; $dia<7; ++$dia){ for ($dia=0; $dia<7; ++$dia){
echo "<td class='$tdcolor'>"; echo "<td class='$tdcolor'>";
echo format_numeric (give_average_from_module ($id_de_mi_agente, $id_agente_modulo, $hora, $dia, $fecha_inicio, $fecha_fin)); echo format_numeric (give_average_from_module ($id_de_mi_agente, $id_agente_modulo, $hora, $dia, $fecha_inicio, $fecha_fin));
echo "</td >"; echo "</td>";
} }
echo "</tr>"; echo "</tr>";
} }
echo "</tbody></table>"; echo "</table>";
} }
// ---------------------------------- // ----------------------------------
@ -184,7 +186,10 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
echo $lang_label["db_agent_bra"]. "<b>" . dame_nombre_agente($origen). "- $agentmodule_name</b>". $lang_label["from2"]. "<b>". $from_date. "</b>". $lang_label["to2"]. "<b>". $to_date. "</b><br>"; echo $lang_label["db_agent_bra"]. "<b>" . dame_nombre_agente($origen). "- $agentmodule_name</b>". $lang_label["from2"]. "<b>". $from_date. "</b>". $lang_label["to2"]. "<b>". $to_date. "</b><br>";
echo "<br><table cellpadding='4' cellspacing='4' width='600' class='databox'>"; echo "<br><table cellpadding='4' cellspacing='4' width='600' class='databox'>";
echo "<tr><th class='datos'>".$lang_label["module"]."</th><th class=datos>".$lang_label["data"]."<th class='datos'>Timestamp</th>"; echo "<tr>
<th class='datos'>".$lang_label["module"]."</th>
<th class='datos'>".$lang_label["data"]."</th>
<th class='datos'>Timestamp</th>";
// Begin the render ! // Begin the render !
for ($a=0; $a <count($origen_modulo); $a++){ // For each module (not used multiple modules yet!) for ($a=0; $a <count($origen_modulo); $a++){ // For each module (not used multiple modules yet!)
@ -247,16 +252,16 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
echo $lang_label["export_data"]."<a href='help/$help_code/chap3.php#336' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>"; echo $lang_label["export_data"]."<a href='help/$help_code/chap3.php#336' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>";
echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/exportdata" name="export_form">'; echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/exportdata" name="export_form">';
echo '<table width=550 border=0 cellspacing=3 cellpadding=5 class=databox>'; echo '<table width=550 border=0 cellspacing=3 cellpadding=5 class=databox_color>';
echo '<tr>'; echo '<tr>';
echo "<td class='datos'><b>".$lang_label["source_agent"]."</b><br><br>"; echo "<td class='datos'><b>".$lang_label["source_agent"]."</b></td>";
echo "<td class='datos'>"; echo "<td class='datos'>";
// Show combo with agents // Show combo with agents
echo '<select name="origen" class="w130">'; echo '<select name="origen" class="w130">';
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) { if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {
echo "<option value=".$_POST["origen"].">".dame_nombre_agente($_POST["origen"]); echo "<option value=".$_POST["origen"].">".dame_nombre_agente($_POST["origen"])."</option>";
} }
$sql1='SELECT * FROM tagente'; $sql1='SELECT * FROM tagente';
$result=mysql_query($sql1); $result=mysql_query($sql1);
@ -264,19 +269,19 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){ if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){
if (give_acl($id_user, $row["id_grupo"], "AR")==1) if (give_acl($id_user, $row["id_grupo"], "AR")==1)
if ( $_POST["origen"] != $row["id_agente"]) if ( $_POST["origen"] != $row["id_agente"])
echo "<option value=".$row["id_agente"].">".$row["nombre"]; echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
} }
else else
if (give_acl($id_user, $row["id_grupo"], "AR")==1) if (give_acl($id_user, $row["id_grupo"], "AR")==1)
echo "<option value=".$row["id_agente"].">".$row["nombre"]; echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
} }
echo "</select> &nbsp;&nbsp;"; echo "</select> &nbsp;&nbsp;";
echo "<input type=submit name='update_agent' class='sub next' value='".$lang_label["get_info"]."'><br><br>"; echo "<input type=submit name='update_agent' class='sub upd' value='".$lang_label["get_info"]."'>";
echo '<tr>'; echo '<tr>';
echo "<td class='datos2'>"; echo "<td class='datos2'>";
echo "<b>".$lang_label["modules"]."</b><br><br>"; echo "<b>".$lang_label["modules"]."</b>";
echo "<td class='datos2'>"; echo "<td class='datos2'>";
// Combo with modules // Combo with modules
@ -290,7 +295,7 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]; echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"];
} }
} else { } else {
echo "<option value=-1>".$lang_label["N/A"]; echo "<option value=-1>".$lang_label["N/A"]."</option>";
} }
echo "</select>"; echo "</select>";
@ -313,14 +318,14 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
echo "<td class='datos'>"; echo "<td class='datos'>";
// Combo for data export type // Combo for data export type
echo "<select name='export_type'>"; echo "<select name='export_type'>";
echo "<option value=3>".$lang_label["datatable"]; echo "<option value=3>".$lang_label["datatable"]."</option>";
echo "<option value=1>".$lang_label["csv"]; echo "<option value=1>".$lang_label["csv"]."</option>";
echo "<option value=2>".$lang_label["average_per_hourday"]; echo "<option value=2>".$lang_label["average_per_hourday"]."</option>";
echo "</select>"; echo "</select>";
echo "</table>"; echo "</table>";
// Submit button // Submit button
echo "<table width=570>"; echo "<table width=550>";
echo "<tr><td align='right'>"; echo "<tr><td align='right'>";
echo "<input type=submit name='export' class='sub wand' value=".$lang_label["export"].">"; echo "<input type=submit name='export' class='sub wand' value=".$lang_label["export"].">";
echo "</table>"; echo "</table>";

View File

@ -32,7 +32,8 @@
require ("general/noaccess.php"); require ("general/noaccess.php");
exit; exit;
} }
echo "<h2>".$lang_label["tactical_view"]."</h2>"; echo "<h2>".$lang_label["ag_title"]." &gt; ";
echo $lang_label["tactical_view"]."</h2>";
/* /*
@ -155,29 +156,29 @@
echo "<tr><td>"; echo "<tr><td>";
echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>"; echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>";
echo "<th colspan=2>".$lang_label["monitor_checks"]."</th>"; echo "<th colspan=2>".$lang_label["monitor_checks"]."</th>";
echo "<tr><td class=datos2><b>"."Monitor checks"; echo "<tr><td class=datos2><b>"."Monitor checks"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$monitor_checks; echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000;'>".$monitor_checks."</td>";
echo "<tr><td class=datos><b>"."Monitor OK"; echo "<tr><td class=datos><b>"."Monitor OK"."</b></td>";
echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$monitor_ok; echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #000;'>".$monitor_ok."</td>";
echo "<tr><td class=datos2><b>"."Monitor BAD"; echo "<tr><td class=datos2><b>"."Monitor BAD"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #ff0000;'>"; echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #f00;'>";
if ($monitor_bad > 0) if ($monitor_bad > 0)
echo $monitor_bad; echo $monitor_bad;
else else
echo "-"; echo "-";
echo "<tr><td class=datos><b>"."Monitor Unknown"; echo "</td></tr><tr><td class=datos><b>"."Monitor Unknown"."</b></td>";
echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #888;'>"; echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #888;'>";
if ($monitor_unknown > 0) if ($monitor_unknown > 0)
echo $monitor_unknown; echo $monitor_unknown;
else else
echo "-"; echo "-";
echo "<tr><td class=datos2><b>"."Alerts Fired"; echo "<tr><td class=datos2><b>"."Alerts Fired"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #ff0000;'>"; echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #ff0000;'>";
if ($monitor_alert > 0) if ($monitor_alert > 0)
echo $monitor_alert; echo $monitor_alert;
else else
echo "-"; echo "-";
echo "<tr><td class=datos><b>"."Alerts Total"; echo "<tr><td class=datos><b>"."Alerts Total"."</b></td>";
echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$monitor_alert_total; echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$monitor_alert_total;
echo "</table>"; echo "</table>";
@ -185,42 +186,42 @@
// ~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~
echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>"; echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>";
echo "<th colspan=2>".$lang_label["data_checks"]."</th>"; echo "<th colspan=2>".$lang_label["data_checks"]."</th>";
echo "<tr><td class=datos2><b>"."Data checks"; echo "<tr><td class=datos2><b>"."Data checks"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$data_checks; echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$data_checks;
echo "<tr><td class=datos><b>"."Data Unknown"; echo "<tr><td class=datos><b>"."Data Unknown"."</b></td>";
echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #888;'>"; echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #888;'>";
if ($data_unknown > 0) if ($data_unknown > 0)
echo $data_unknown; echo $data_unknown;
else else
echo "-"; echo "-";
echo "<tr><td class=datos2><b>"."Alerts Fired"; echo "<tr><td class=datos2><b>"."Alerts Fired"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #ff0000;'>"; echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #f00;'>";
if ($data_alert > 0) if ($data_alert > 0)
echo $data_alert; echo $data_alert;
else else
echo "-"; echo "-";
echo "<tr><td class=datos><b>"."Alerts Total"; echo "<tr><td class=datos><b>"."Alerts Total";
echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$data_alert_total; echo "<td class=datos style='font: bold 2em Arial, Sans-serif; color: #000;'>".$data_alert_total;
echo "</table>"; echo "</table>";
// Summary // Summary
// ~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~
echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>"; echo "<table class='databox' celldpadding=4 cellspacing=4 width=250>";
echo "<th colspan=2>".$lang_label["summary"]."</th>"; echo "<th colspan='2'>".$lang_label["summary"]."</th>";
echo "<tr><td class=datos2><b>"."Total agents"; echo "<tr><td class='datos2'><b>"."Total agents"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$total_agents; echo "<td class='datos2' style='font: bold 2em Arial, Sans-serif; color: #000;'>".$total_agents;
echo "<tr><td class=datos2><b>"."Total checks"; echo "<tr><td class='datos'><b>"."Total checks"."</b></td>";
echo "<td class=datos2 style='font: bold 2em Arial, Sans-serif; color: #000000;'>".$total_checks; echo "<td class='datos' style='font: bold 2em Arial, Sans-serif; color: #000;'>".$total_checks;
echo "</table>"; echo "</table>";
echo "<td>"; echo "<td valign='top'>";
// Odometer Graph // Odometer Graph
// ~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~
$monitor_health = format_numeric ((($monitor_ok - $monitor_alert - $monitor_unknown)/ $monitor_checks) * 100,1); $monitor_health = format_numeric ((($monitor_ok - $monitor_alert - $monitor_unknown)/ $monitor_checks) * 100,1);
$data_health = format_numeric ( (($data_checks -($data_unknown + $data_alert)) / $data_checks ) * 100,1);; $data_health = format_numeric ( (($data_checks -($data_unknown + $data_alert)) / $data_checks ) * 100,1);;
$global_health = format_numeric( ((($monitor_ok -$monitor_alert - $monitor_unknown )+($data_checks -($data_unknown + $data_alert))) / ($data_checks + $monitor_checks) ) * 100, 1); $global_health = format_numeric( ((($monitor_ok -$monitor_alert - $monitor_unknown )+($data_checks -($data_unknown + $data_alert))) / ($data_checks + $monitor_checks) ) * 100, 1);
echo "<h3>".$lang_label["tactical_indicator"]."</h3>"; echo "<h2>".$lang_label["tactical_indicator"]."</h2>";
echo "<img src='reporting/fgraph.php?tipo=odo_tactic&value1=$global_health&value2=$data_health&value3=$monitor_health'>"; echo "<img src='reporting/fgraph.php?tipo=odo_tactic&value1=$global_health&value2=$data_health&value3=$monitor_health'>";

View File

@ -57,9 +57,6 @@ if (comprueba_login() == 0) {
echo "<th class='datos'>".$lang_label['lag']."</th>"; echo "<th class='datos'>".$lang_label['lag']."</th>";
echo "<th class='datos'>".$lang_label['description']."</th>"; echo "<th class='datos'>".$lang_label['description']."</th>";
echo "<th class='datos' width=80>".$lang_label['type']."</th>"; echo "<th class='datos' width=80>".$lang_label['type']."</th>";
// echo "<th class='datos'>".$lang_label['master']."</th>";
//echo "<th class='datos'>".$lang_label['checksum']."</th>";
//echo "<th class='datos'>".$lang_label['laststart']."</th>";
echo "<th class='datos'>".$lang_label['version']."</th>"; echo "<th class='datos'>".$lang_label['version']."</th>";
echo "<th class='datos'>".$lang_label['lastupdate']."</th>"; echo "<th class='datos'>".$lang_label['lastupdate']."</th>";
$color=1; $color=1;
@ -210,7 +207,7 @@ if (comprueba_login() == 0) {
echo "+1 ".$lang_label["day"]; echo "+1 ".$lang_label["day"];
} else } else
echo "--"; echo "--";
echo "<td class='".$tdcolor."f9'>".substr($description,0,25); echo "<td class='".$tdcolor."f9'>".substr($description,0,25)."</td>";
echo "<td class='$tdcolor' align='middle'>"; echo "<td class='$tdcolor' align='middle'>";
if ($network_server == 1){ if ($network_server == 1){
echo " <img src='images/network.gif'>"; echo " <img src='images/network.gif'>";
@ -230,16 +227,14 @@ if (comprueba_login() == 0) {
if ($checksum == 1){ if ($checksum == 1){
echo "&nbsp; <img src='images/binary.gif'>"; echo "&nbsp; <img src='images/binary.gif'>";
} }
//echo "<td class='".$tdcolor."f9' align='middle'>" echo "</td><td class='".$tdcolor."f9' align='middle'>";
//.substr($laststart,0,25)."</td>";
echo "<td class='".$tdcolor."f9' align='middle'>";
echo $version; echo $version;
echo "<td class='".$tdcolor."f9' align='middle'>"; echo "</td><td class='".$tdcolor."f9' align='middle'>";
// if ($status ==0) // if ($status ==0)
echo substr($keepalive,0,25)."</td>"; echo substr($keepalive,0,25)."</td>";
} }
echo '</table>'; echo '</tr></table>';
echo "<table cellpadding=2 cellspacing=0>"; echo "<table cellpadding=2 cellspacing=0>";
echo " echo "
<tr> <tr>

View File

@ -214,7 +214,7 @@ if (give_acl($id_user, 0, "LW")==1) {
echo $lang_label["snmp_assigned_alerts"]."<a href='help/".$help_code."/chap4.php#341' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>"; echo $lang_label["snmp_assigned_alerts"]."<a href='help/".$help_code."/chap4.php#341' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>";
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo '<table cellpadding="3" cellspacing="3" width="750">'; echo '<table cellpadding="4" cellspacing="4" width="750" class="databox">';
echo '<tr><th>'.$lang_label["alert"]."</th>"; echo '<tr><th>'.$lang_label["alert"]."</th>";
echo '<th width=75>'.$lang_label["alert_type"]."</th>"; echo '<th width=75>'.$lang_label["alert_type"]."</th>";
echo '<th>'.$lang_label["SNMP_agent"]."</th>"; echo '<th>'.$lang_label["SNMP_agent"]."</th>";
@ -253,7 +253,7 @@ if (give_acl($id_user, 0, "LW")==1) {
echo "<tr><td class='$tdcolor'>"; echo "<tr><td class='$tdcolor'>";
echo $nombre_alerta; echo $nombre_alerta;
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
if ($alert_type == 0) { if ($alert_type == 0) {
$tipo_alerta = $lang_label["OID"]; $tipo_alerta = $lang_label["OID"];
} elseif ($alert_type == 1) { } elseif ($alert_type == 1) {
@ -264,43 +264,46 @@ if (give_acl($id_user, 0, "LW")==1) {
$tipo_alerta = "N/A"; $tipo_alerta = "N/A";
} }
echo $tipo_alerta; echo $tipo_alerta;
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
if ($alert_type == 2) { if ($alert_type == 2) {
echo $agent; echo $agent;
} else { } else {
echo "N/A"; echo "N/A";
} }
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
if ($alert_type == 0) { if ($alert_type == 0) {
echo $oid; echo $oid;
} else { } else {
echo "N/A"; echo "N/A";
} }
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
if ($alert_type == 1) { if ($alert_type == 1) {
echo $custom_oid; echo $custom_oid;
} else { } else {
echo "N/A"; echo "N/A";
} }
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
echo $description; echo $description;
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
echo $times_fired; echo $times_fired;
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
if ($last_fired != "0000-00-00 00:00:00") if ($last_fired != "0000-00-00 00:00:00")
echo $last_fired; echo $last_fired;
else else
echo $lang_label["never"]; echo $lang_label["never"];
echo "<td class='$tdcolor'>"; echo "</td><td class='$tdcolor'>";
echo "<a href='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&delete_alert=".$id_as."'><img src='images/cross.png' border=0 alt='".$lang_label["delete"]."'></b></a> &nbsp; "; echo "<a href='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&delete_alert=".$id_as."'>
echo "<a href='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&update_alert=".$id_as."'><img src='images/config.gif' border=0 alt='".$lang_label["update"]."'></b></a>"; <img src='images/cross.png' border=0 alt='".$lang_label["delete"]."'></b></a> &nbsp; ";
echo "<a href='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&update_alert=".$id_as."'>
<img src='images/config.gif' border=0 alt='".$lang_label["update"]."'></b></a></td></tr>";
} }
echo "<tr><td colspan='9'><div class='raya'></div></td></tr>"; echo "</table>";
echo "<tr><td colspan=9 align='right'>"; echo "<table width='750px'>";
echo "<tr><td align='right'>";
echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert">'; echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert">';
echo '<input name="add_alert" type="submit" class="sub next" value="'.$lang_label["create"].'">'; echo '<input name="add_alert" type="submit" class="sub next" value="'.$lang_label["create"].'">';
echo "</form>"; echo "</form>";

View File

@ -188,7 +188,7 @@ if (comprueba_login() == 0) {
$offset=0; $offset=0;
} }
echo "<br>"; echo "<br>";
echo "<table cellpadding='3' cellspacing='3' width='750'>"; echo "<table cellpadding='4' cellspacing='4' width='750' class='databox'>";
echo "<tr>"; echo "<tr>";
echo "<th>".$lang_label["status"]."</th>"; echo "<th>".$lang_label["status"]."</th>";
echo "<th>".$lang_label["OID"]."</th>"; echo "<th>".$lang_label["OID"]."</th>";
@ -200,7 +200,8 @@ if (comprueba_login() == 0) {
echo "<th>".$lang_label["action"]."</th>"; echo "<th>".$lang_label["action"]."</th>";
echo "<th class='p10'>"; echo "<th class='p10'>";
echo "<label for='checkbox' class='p21'>".$lang_label["all"]." </label>"; echo "<label for='checkbox' class='p21'>".$lang_label["all"]." </label>";
echo '<input type="checkbox" class="chk" name="allbox" onclick="CheckAll();"></th>'; echo '<input type="checkbox" class="chk" name="allbox" onclick="CheckAll();">
</th>';
echo "<form name='eventtable' method='POST' action='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&refr=60&offset=".$offset."'>"; echo "<form name='eventtable' method='POST' action='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&refr=60&offset=".$offset."'>";
$id_trap = 0; $id_trap = 0;
if ($offset !=0) if ($offset !=0)
@ -255,15 +256,15 @@ if (comprueba_login() == 0) {
} }
} }
} }
echo "<tr><td colspan='9'><div class='raya'></div></td></tr>"; echo "</table>";
$offset_counter = 0; $offset_counter = 0;
echo "<tr><td colspan='9' align='right'>"; echo "<table width='750px'><tr><td align='right'>";
echo "<input class='sub' type='submit' name='updatebt' value='".$lang_label["validate"]."'> "; echo "<input class='sub' type='submit' name='updatebt' value='".$lang_label["validate"]."'> ";
if (give_acl($id_usuario, 0,"IM") ==1){ if (give_acl($id_usuario, 0,"IM") ==1){
echo "<input class='sub' type='submit' name='deletebt' value='".$lang_label["delete"]."'>"; echo "<input class='sub' type='submit' name='deletebt' value='".$lang_label["delete"]."'>";
} }
echo "</form></table>"; echo "</form></td></tr></table>";
} else { } else {
echo "<div class='nf'>".$lang_label["no_snmp_agent"]."</div>"; echo "<div class='nf'>".$lang_label["no_snmp_agent"]."</div>";

View File

@ -2000,4 +2000,4 @@ if (isset($_GET["tipo"])){
graphic_error (); graphic_error ();
} else } else
graphic_error (); graphic_error ();
?> ?>