2007-10-12 Raul Mateos <raulofpandora@gmail.com>
* Near ALL php: Removed remaining help icons. Closed some HTML tags. * index.php, include/config.inc.php: Updated build. * languages/*.php: Added text for "Logs". * godmode/admin_access_logs.php: Solved small visual error with filter. Added Logs text. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@673 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1d6203516c
commit
4d8ed974ba
|
@ -1,3 +1,14 @@
|
|||
2007-10-12 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* Near ALL php: Removed remaining help icons. Closed some HTML tags.
|
||||
|
||||
* index.php, include/config.inc.php: Updated build.
|
||||
|
||||
* languages/*.php: Added text for "Logs".
|
||||
|
||||
* godmode/admin_access_logs.php: Solved small visual error with
|
||||
filter. Added Logs text.
|
||||
|
||||
2007-10-09 Sancho Lerena <slerena@gmail.com>
|
||||
|
||||
* operation/reporting/reporting_viewer.php: Fixed small bug mixing min/max values of SLA render.
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
exit;
|
||||
}
|
||||
|
||||
echo "<h2>".$lang_label["audit_title"]." > ";
|
||||
echo "<h2>".$lang_label["audit_title"]." > ".$lang_label["logs"]."</h2>";
|
||||
if (isset($_GET["offset"]))
|
||||
$offset=$_GET["offset"];
|
||||
else
|
||||
|
@ -41,7 +41,9 @@
|
|||
|
||||
echo "<table width=100%>";
|
||||
echo "<tr><td>";
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr><td colspan='2' valign='top'>";
|
||||
echo "<h3>".$lang_label["filter"]."</h3></td></tr>";
|
||||
// Manage GET/POST parameter for subselect on action type. POST parameter are proccessed before GET parameter (if passed)
|
||||
if (isset($_GET["tipo_log"])){
|
||||
$tipo_log = $_GET["tipo_log"];
|
||||
|
@ -59,12 +61,8 @@
|
|||
|
||||
// generate select
|
||||
|
||||
echo $lang_label["filter"];
|
||||
echo "<a href='help/".$help_code."/chap6.php#6' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<form name='query_sel' method='post' action='index.php?sec=godmode&sec2=godmode/admin_access_logs'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>
|
||||
<tr><td>".$lang_label["action"]."</td><td valign='middle'>";
|
||||
echo "<tr><td>".$lang_label["action"]."</td><td valign='middle'>";
|
||||
echo "<select name='tipo_log' onChange='javascript:this.form.submit();'>";
|
||||
if (isset($tipo_log)) {
|
||||
echo "<option>".$tipo_log."</option>";
|
||||
|
|
|
@ -39,13 +39,9 @@ if (give_acl($id_user, 0, "AW")!=1) {
|
|||
echo "<h2>".$lang_label["agent_conf"];
|
||||
if (isset($_GET["create_agent"])){
|
||||
$create_agent = 1;
|
||||
echo " > ".$lang_label["create_agent"]."
|
||||
<a href='help/".$help_code."/chap3.php#32' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a>";
|
||||
echo " > ".$lang_label["create_agent"];
|
||||
} else {
|
||||
echo " > ".$lang_label["update_agent"]."
|
||||
<a href='help/".$help_code."/chap3.php#32' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a>";
|
||||
echo " > ".$lang_label["update_agent"];
|
||||
}
|
||||
echo "</h2>";
|
||||
echo "<div style='height: 5px'> </div>";
|
||||
|
|
|
@ -33,7 +33,7 @@ $sql1='SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'"';
|
|||
$result=mysql_query($sql1);
|
||||
if ($row=mysql_num_rows($result)){
|
||||
|
||||
echo "<h3>".$lang_label["assigned_alerts"]."<a href='help/".$help_code."/chap3.php#3222' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<h3>".$lang_label["assigned_alerts"]."</h3>";
|
||||
|
||||
$color=1;
|
||||
$string='';
|
||||
|
@ -140,7 +140,7 @@ $result=mysql_query($sql1);
|
|||
}
|
||||
?>
|
||||
|
||||
<h3><?php echo $lang_label["alert_asociation_form"] ?><a href='help/<?php echo $help_code ?>/chap3.php#3222' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h3>
|
||||
<h3><?php echo $lang_label["alert_asociation_form"] ?></h3>
|
||||
|
||||
|
||||
<?php
|
||||
|
@ -326,7 +326,7 @@ echo "</select>";
|
|||
?>
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["assigned_module"] ?>
|
||||
<td class="datos" colspan=3>
|
||||
<td class="datos" colspan="3">
|
||||
<?php
|
||||
|
||||
if ($update_alert != 1) {
|
||||
|
|
|
@ -268,7 +268,7 @@ if (comprueba_login() == 0)
|
|||
?>
|
||||
|
||||
<h2><?php echo $lang_label["agent_conf"] ?> >
|
||||
<?php echo $lang_label["config_manage"]; ?><a href="help/<?php echo $help_code;?>/chap3.php#323" target="_help" class="help"> <span><?php echo $lang_label["help"]; ?></span></a></h2>
|
||||
<?php echo $lang_label["config_manage"]; ?></h2>
|
||||
<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/manage_config&operacion=1">
|
||||
<table width='450' border='0' cellspacing='4' cellpadding='4' class='databox'>
|
||||
<tr>
|
||||
|
@ -295,7 +295,7 @@ if (comprueba_login() == 0)
|
|||
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {
|
||||
// Populate Module/Agent combo
|
||||
$agente_modulo = $_POST["origen"];
|
||||
$sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$agente_modulo. " order by nombre";
|
||||
$sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$agente_modulo. " ORDER BY nombre";
|
||||
$result = mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]."</option>";
|
||||
|
|
|
@ -108,9 +108,7 @@ if (isset($_GET["borrar_agente"])){ // if delete agent
|
|||
exit;
|
||||
}
|
||||
}
|
||||
echo "<h2>".$lang_label["agent_conf"]." > ".$lang_label["agent_defined2"]."
|
||||
<a href='help/".$help_code."/chap3.php#3' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<h2>".$lang_label["agent_conf"]." > ".$lang_label["agent_defined2"]."</h2>";
|
||||
|
||||
// Show group selector
|
||||
if (isset($_POST["ag_group"])){
|
||||
|
|
|
@ -166,10 +166,7 @@ echo "<h2>".$lang_label["agent_conf"]." > ".$lang_label["modules"]."</h2>";
|
|||
$sql1='SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'"
|
||||
ORDER BY id_module_group, nombre ';
|
||||
$result=mysql_query($sql1);
|
||||
echo "<h3>".$lang_label["assigned_modules"]."
|
||||
<a href='help/".$help_code."/chap3.php#321' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a>";
|
||||
echo " <a class='info' href='#module_assignment'> <span>".$lang_label["module_asociation_form"]."</span><img src='images/wand.png'></a></h3>";
|
||||
echo "<h3>".$lang_label["assigned_modules"]." <a href='#module_assignment' class='info'> <span>".$lang_label["module_asociation_form"]."</span><img src='images/wand.png'></a></h3>";
|
||||
if ($row=mysql_num_rows($result)){
|
||||
echo '<table width="750" cellpadding="4" cellspacing="4" class="databox">';
|
||||
echo '<tr>';
|
||||
|
@ -200,7 +197,7 @@ if ($row=mysql_num_rows($result)){
|
|||
// Render module group names (fixed code)
|
||||
$nombre_grupomodulo = dame_nombre_grupomodulo ($module_group2);
|
||||
$last_modulegroup = $module_group2;
|
||||
echo "<tr><td class='datos3' align='center' colspan=9><b>".$nombre_grupomodulo."</b>";
|
||||
echo "<tr><td class='datos3' align='center' colspan='9'><b>".$nombre_grupomodulo."</b>";
|
||||
}
|
||||
|
||||
echo "<tr><td class='".$tdcolor."_id'>".$nombre_modulo;
|
||||
|
@ -246,8 +243,7 @@ if ($row=mysql_num_rows($result)){
|
|||
// ==========================
|
||||
|
||||
echo "<a name='module_assignment'></a>";
|
||||
echo "<h3>".$lang_label["module_asociation_form"]."<a href='help/".$help_code."/chap3.php#321' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<h3>".$lang_label["module_asociation_form"]."</h3>";
|
||||
|
||||
if ($update_module == "1")
|
||||
echo '<form name="modulo" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente='.$id_agente.'">';
|
||||
|
|
|
@ -59,8 +59,6 @@ echo "<h2>".$lang_label["alert_config"]." > ";
|
|||
if (isset($_GET["id_alerta"])){
|
||||
echo $lang_label["mod_alert"];
|
||||
}
|
||||
echo '<a href="help/'.$help_code.'/chap3.php#3221" target="_help" class="help">
|
||||
<span>'.$lang_label["help"].'</span></a>';
|
||||
echo "</h2>";
|
||||
?>
|
||||
<form name="alerta" method="post" action="index.php?sec=galertas&sec2=godmode/alerts/modify_alert&id_alerta=<?php echo $id_alerta ?>">
|
||||
|
|
|
@ -49,7 +49,7 @@ if ( (give_acl($id_user, 0, "LM")==1)){
|
|||
}
|
||||
|
||||
echo "<h2>".$lang_label["alert_config"]." > ";
|
||||
echo $lang_label["alert_defined2"]."<a href='help/".$help_code."/chap3.php#3221' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["alert_defined2"]."</h2>";
|
||||
echo "<table width='500' cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<th width='100px'>".$lang_label["alertname"]."</th>";
|
||||
echo "<th>".$lang_label["description"]."</th>";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Pandora - the Free monitoring system
|
||||
// ====================================
|
||||
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnol<EFBFBD>gicas S.L, info@artica.es
|
||||
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
|
@ -89,13 +89,12 @@ if (comprueba_login() == 0)
|
|||
if (isset($_POST["purgedb"])){ # Fixed 2005-1-13, nil
|
||||
$from_date =$_POST["date_purge"];
|
||||
$query = "DELETE FROM tsesion WHERE fecha < '".$from_date."'";
|
||||
mysql_query($query);
|
||||
|
||||
mysql_query($query);
|
||||
}
|
||||
# End of get parameters block
|
||||
|
||||
echo "<h2>".$lang_label["dbmain_title"]." > ";
|
||||
echo $lang_label["db_purge_audit"]."<a href='help/".$help_code."/chap8.php#841' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["db_purge_audit"]."</h2>";
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr><td class='datos'>";
|
||||
|
@ -104,7 +103,7 @@ if (comprueba_login() == 0)
|
|||
echo "<b>".$lang_label["total"]."</b></td>";
|
||||
echo "<td class='datos'>".$row[0]." ".$lang_label["records"]."</td>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<tr>";
|
||||
$result_t=mysql_query("SELECT min(fecha) FROM tsesion");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<td class='datos2'><b>".$lang_label["first_date"]."</b></td>";
|
||||
|
|
|
@ -74,10 +74,10 @@ if (comprueba_login() == 0)
|
|||
# End of get parameters block
|
||||
|
||||
echo "<h2>".$lang_label["dbmain_title"]." > ";
|
||||
echo $lang_label["db_purge_event"]."<a href='help/".$help_code."/chap8.php#842' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["db_purge_event"]."</h2>";
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr><td class='datos'>";
|
||||
echo "<tr><td class='datos'>";
|
||||
$result_t=mysql_query("SELECT COUNT(*) FROM tevento");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<b>".$lang_label["total"]."</b>";
|
||||
|
|
|
@ -21,7 +21,7 @@ if (comprueba_login() == 0)
|
|||
*/
|
||||
|
||||
echo "<h2>".$lang_label["dbmain_title"]." > ";
|
||||
echo $lang_label["db_info2"]."<a href='help/".$help_code."/chap8.php#81' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["db_info2"]."</h2>";
|
||||
echo "<table border=0>";
|
||||
echo "<tr><td>";
|
||||
echo '<h3>'.$lang_label["db_agente_modulo"].'</h3>';
|
||||
|
@ -32,7 +32,7 @@ if (comprueba_login() == 0)
|
|||
echo "<img src='reporting/fgraph.php?tipo=db_agente_paquetes&width=600&height=200'><br>";
|
||||
echo "<br><br><a href='index.php?sec=gdbman&sec2=godmode/db/db_info_data'>".$lang_label["press_db_info"]."</a>";
|
||||
echo "</table>";
|
||||
}
|
||||
}
|
||||
else {
|
||||
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Database Management Info");
|
||||
require ("general/noaccess.php");
|
||||
|
|
|
@ -22,8 +22,8 @@ if (comprueba_login() == 0)
|
|||
- A more powerful selection (by Agent, by Module, etc).
|
||||
*/
|
||||
?>
|
||||
<h2><?php echo $lang_label["dbmain_title"] ?> >
|
||||
<?php echo $lang_label["current_dbsetup"] ?><a href="help/<?php echo $help_code ?>/chap8.php#8" target="_help" class="help"> <span><?php echo $lang_label["help"] ?></span></a></h2>
|
||||
<h2><?php echo $lang_label["dbmain_title"] ?> >
|
||||
<?php echo $lang_label["current_dbsetup"] ?></h2>
|
||||
<table width=550 cellspacing=3 cellpadding=3 border=0>
|
||||
<tr><td>
|
||||
<i><?php echo $lang_label["days_compact"]; ?>:</i> <b><?php echo $days_compact; ?></b><br><br>
|
||||
|
|
|
@ -1,10 +1,22 @@
|
|||
<?php
|
||||
<?php
|
||||
// Pandora FMS - the Free monitoring system
|
||||
// ========================================
|
||||
// Copyright (c) 2004-2007 Sancho Lerena, slerena@openideas.info
|
||||
// Copyright (c) 2005-2007 Artica Soluciones Tecnologicas
|
||||
// Copyright (c) 2004-2007 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// Copyright (c) 2006-2007 Jose Navarro jose@jnavarro.net
|
||||
// Copyright (c) 2006-2007 Jonathan Barajas, jonathan.barajas[AT]gmail[DOT]com
|
||||
|
||||
// Pandora - The Free Monitoring System
|
||||
// This code is protected by GPL license.
|
||||
// Este codigo esta protegido por la licencia GPL.
|
||||
// Sancho Lerena <slerena@gmail.com>, 2003-2006
|
||||
// Raul Mateos <raulofpandor@gmail.com>, 2006
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation version 2
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, U
|
||||
|
||||
// Load global vars
|
||||
require("include/config.php");
|
||||
|
@ -24,7 +36,7 @@ if (comprueba_login() == 0)
|
|||
} else
|
||||
$id_agent = -1;
|
||||
|
||||
echo '<h2>'.$lang_label["dbmain_title"].' >'.$lang_label["db_purge"]."<a href='help/$help_code/chap8.php#8' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo '<h2>'.$lang_label["dbmain_title"].' >'.$lang_label["db_purge"]."</h2>";
|
||||
echo "<img src='reporting/fgraph.php?tipo=db_agente_purge&id=$id_agent'>";
|
||||
echo "<br><br>";
|
||||
echo '<h3>'.$lang_label["get_data_agent"].'</h3>';
|
||||
|
|
|
@ -1,9 +1,22 @@
|
|||
<?php
|
||||
// Pandora - The Free Monitoring System
|
||||
// This code is protected by GPL license.
|
||||
// Este codigo esta protegido por la licencia GPL.
|
||||
// Sancho Lerena <slerena@gmail.com>, 2003-2006
|
||||
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006
|
||||
// Pandora FMS - the Free monitoring system
|
||||
// ========================================
|
||||
// Copyright (c) 2004-2007 Sancho Lerena, slerena@openideas.info
|
||||
// Copyright (c) 2005-2007 Artica Soluciones Tecnologicas
|
||||
// Copyright (c) 2004-2007 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// Copyright (c) 2006-2007 Jose Navarro jose@jnavarro.net
|
||||
// Copyright (c) 2006-2007 Jonathan Barajas, jonathan.barajas[AT]gmail[DOT]com
|
||||
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation version 2
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, U6
|
||||
|
||||
// Load global vars
|
||||
require("include/config.php");
|
||||
|
@ -29,10 +42,10 @@ if (comprueba_login() == 0)
|
|||
echo "<h3 class='error'>ERROR: ".$lang_label["nomodules_selected"]."</h3>";
|
||||
echo "</table>";
|
||||
include ("general/footer.php");
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
|
||||
// Origen (agent)
|
||||
// Source (agent)
|
||||
$id_origen = $_POST["origen"];
|
||||
|
||||
// Copy
|
||||
|
@ -43,11 +56,11 @@ if (comprueba_login() == 0)
|
|||
$result1=mysql_query($sql1);
|
||||
//echo "<br>DEBUG DELETE $sql1 <br>";
|
||||
}
|
||||
} //if copia modulos o alertas
|
||||
} //if copy modules or alerts
|
||||
} else { // Form view
|
||||
?>
|
||||
<h2><?php echo $lang_label["dbmain_title"]; ?> >
|
||||
<?php echo $lang_label["db_refine"]; ?><a href='help/<?php echo $help_code?>/chap8.php#831' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h2>
|
||||
<?php echo $lang_label["db_refine"]; ?></h2>
|
||||
<form method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_refine&operacion=1">
|
||||
<table width='500' border='0' cellspacing='4' cellpadding='4' class='databox'>
|
||||
<tr>
|
||||
|
|
|
@ -27,7 +27,7 @@ require("include/config.php");
|
|||
if (comprueba_login() == 0)
|
||||
$id_user = $_SESSION["id_usuario"];
|
||||
if (give_acl($id_user, 0, "PM")==1) {
|
||||
// Inic vars
|
||||
// Init vars
|
||||
$id_grupo = "";
|
||||
$nombre = "";
|
||||
$id_parent = "";
|
||||
|
@ -39,7 +39,6 @@ if (comprueba_login() == 0)
|
|||
$create_g = 0;
|
||||
|
||||
if (isset($_GET["id_grupo"])){
|
||||
// Conecto con la BBDD
|
||||
$id_grupo = entrada_limpia($_GET["id_grupo"]);
|
||||
$sql1='SELECT * FROM tgrupo WHERE id_grupo = '.$id_grupo;
|
||||
$result=mysql_query($sql1);
|
||||
|
@ -51,19 +50,20 @@ if (comprueba_login() == 0)
|
|||
} else
|
||||
{
|
||||
echo "<h3 class='error'>".$lang_label["group_error"]."</h3>";
|
||||
echo "</table>";
|
||||
include ("general/footer.php");
|
||||
echo "</table>";
|
||||
include ("general/footer.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
echo "<h2>".$lang_label["group_management"]." > ";
|
||||
if (isset($_GET["create_g"])) {
|
||||
echo $lang_label["create_group"]."<a href='help/".$help_code."/chap3.php#31' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["create_group"];
|
||||
}
|
||||
if (isset($_GET["id_grupo"])) {
|
||||
echo $lang_label["update_group"]."<a href='help/".$help_code."/chap3.php#31' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["update_group"];
|
||||
}
|
||||
echo "</h2>"
|
||||
|
||||
?>
|
||||
<table width="450" cellpadding=4 cellspacing=4 class='databox_color'>
|
||||
|
|
|
@ -72,10 +72,7 @@ if (comprueba_login() == 0)
|
|||
echo "<h3 class='suc'>".$lang_label["delete_group_ok"]."</h3>";
|
||||
}
|
||||
echo "<h2>".$lang_label["group_management"]." > ";
|
||||
echo $lang_label["definedgroups"]."
|
||||
<a href='help/".$help_code."/chap3.php#31' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a>
|
||||
</h2>";
|
||||
echo $lang_label["definedgroups"]."</h2>";
|
||||
|
||||
echo "<table cellpadding=4 cellspacing=4 width='400' class='databox'>";
|
||||
echo "<th>".$lang_label["icon"]."</th>";
|
||||
|
|
|
@ -124,13 +124,13 @@ if (comprueba_login() == 0)
|
|||
}
|
||||
unset($id_perfil);
|
||||
}
|
||||
echo '<h2>'.$lang_label["profile_title"].' > ';
|
||||
echo '<h2>'.$lang_label["profile_title"].' > ';
|
||||
echo (isset($_GET["new_profile"]))?
|
||||
($lang_label["create_profile"].'<a href="help/'.$help_code.'/chap2.php#21" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h2>'):
|
||||
($lang_label["create_profile"].'</h2>'):
|
||||
(
|
||||
(isset($_GET["edit_profile"]))?
|
||||
($lang_label["update_profile"].'<a href="help/'.$help_code.'/chap2.php#21" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h2>'):
|
||||
($lang_label["definedprofiles"].'<a href="help/'.$help_code.'/chap2.php#21" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h2>')
|
||||
($lang_label["update_profile"].'></h2>'):
|
||||
($lang_label["definedprofiles"].'</h2>')
|
||||
);
|
||||
// Form to manage date
|
||||
if (isset ($id_perfil)){ // There are values defined, let's show form with data for INSERT or UPDATE
|
||||
|
|
|
@ -49,7 +49,7 @@ if (comprueba_login() == 0) {
|
|||
if (isset($_GET["server"])) {
|
||||
$id_server=entrada_limpia($_GET["server"]);
|
||||
echo "<h2>".$lang_label["view_servers"]." > ";
|
||||
echo $lang_label["update_server"]."<a href='help/".$help_code."/chap7.php#7' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["update_server"]."</h2>";
|
||||
|
||||
$query="SELECT * FROM tserver WHERE id_server=".$id_server;
|
||||
$result=mysql_query($query);
|
||||
|
@ -86,7 +86,7 @@ if (comprueba_login() == 0) {
|
|||
$sql='SELECT * FROM tserver';
|
||||
|
||||
echo "<h2>".$lang_label["view_servers"]." > ";
|
||||
echo $lang_label["manage_servers"]."<a href='help/".$help_code."/chap7.php#7' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["manage_servers"]."</h2>";
|
||||
|
||||
// Connect DataBase
|
||||
$result=mysql_query($sql);
|
||||
|
|
|
@ -66,14 +66,14 @@ if (comprueba_login() == 0)
|
|||
|
||||
// Create link
|
||||
echo "<h2>".$lang_label["setup_screen"]." > ";
|
||||
echo $lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#91' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo '<table class="databox" cellpadding="4" cellspacing="4" width="500">';
|
||||
echo $lang_label["link_management"]."</h2>";
|
||||
echo '<table class="databox" cellpadding="4" cellspacing="4" width="500">';
|
||||
echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">';
|
||||
if ($creation_mode == 1)
|
||||
echo "<input type='hidden' name='create' value='1'>";
|
||||
else
|
||||
echo "<input type='hidden' name='update' value='1'>";
|
||||
echo "<input type='hidden' name='id_link' value='"; ?>
|
||||
echo "<input type='hidden' name='id_link' value='"; ?>
|
||||
<?php if (isset($id_link)) {echo $id_link;} ?>
|
||||
<?php
|
||||
echo "'>";
|
||||
|
@ -94,7 +94,7 @@ if (comprueba_login() == 0)
|
|||
|
||||
else { // Main list view for Links editor
|
||||
echo "<h2>".$lang_label["setup_screen"]." > ";
|
||||
echo $lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo $lang_label["link_management"]."</h3>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<th width='180px'>".$lang_label["link_name"]."</th>";
|
||||
echo "<th width='80px'>".$lang_label["delete"]."</th>";
|
||||
|
|
|
@ -52,7 +52,7 @@ if (comprueba_login() == 0)
|
|||
$result2=mysql_query("UPDATE tconfig SET VALUE='".$config_style."' WHERE token='style'");
|
||||
}
|
||||
echo "<h2>".$lang_label["setup_screen"]." > ";
|
||||
echo $lang_label["general_config"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["general_config"]."</h2>";
|
||||
echo "<form name='setup' method='POST' action='index.php?sec=gsetup&sec2=godmode/setup/setup&update=1'>";
|
||||
echo '<table width="500" cellpadding="4" cellspacing="4" class="databox">';
|
||||
echo '<tr><td class="datos">'.$lang_label["language_code"].'</td>';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Pandora - the Free monitoring system
|
||||
// ====================================
|
||||
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnol<EFBFBD>gicas S.L, info@artica.es
|
||||
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
|
@ -147,13 +147,14 @@ if (comprueba_login() == 0)
|
|||
}
|
||||
echo "<h2>".$lang_label["user_management"]." > ";
|
||||
if (isset($_GET["alta"])){
|
||||
if ($_GET["alta"]==1){
|
||||
echo $lang_label["create_user"].'<a href="help/'.$help_code.'/chap2.php#22" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h2>';
|
||||
}
|
||||
if ($_GET["alta"]==1){
|
||||
echo $lang_label["create_user"];
|
||||
}
|
||||
}
|
||||
if (isset($_GET["id_usuario_mio"]) OR isset($_GET["nuevo_usuario"])){
|
||||
echo $lang_label["update_user"].'<a href="help/'.$help_code.'/chap2.php#22" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h2>';
|
||||
echo $lang_label["update_user"];
|
||||
}
|
||||
echo "</h2>";
|
||||
|
||||
?>
|
||||
<table width='500' cellpadding='4' cellspacing='4' class='databox_color'>
|
||||
|
@ -228,7 +229,7 @@ if (comprueba_login() == 0)
|
|||
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"';
|
||||
$result=mysql_query($sql1);
|
||||
|
||||
echo '<h3>'.$lang_label["listGroupUser"].'<a href="help/'.$help_code.'/chap2.php#22" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h3>';
|
||||
echo '<h3>'.$lang_label["listGroupUser"].'</h3>';
|
||||
echo "<table width='500' cellpadding='4' cellspacing='4' class='databox'>";
|
||||
if (mysql_num_rows($result)){
|
||||
echo '<tr>';
|
||||
|
|
|
@ -27,15 +27,15 @@ if (comprueba_login() == 0)
|
|||
?>
|
||||
|
||||
<h2><?php echo $lang_label["user_management"] ?> >
|
||||
<?php echo $lang_label["users"] ?><a href="help/<?php echo $help_code; ?>/chap2.php#22" target="_help" class="help"> <span><?php echo $lang_label["help"]; ?></span></a></h2>
|
||||
<?php echo $lang_label["users"] ?></h2>
|
||||
|
||||
<table width="700" cellpadding="4" cellspacing="4" class="databox">
|
||||
<th width="80px"><?php echo $lang_label["user_ID"]?>
|
||||
<th width="155px"><?php echo $lang_label["last_contact"]?>
|
||||
<th width="45px"><?php echo $lang_label["profile"]?>
|
||||
<th width="120px"><?php echo $lang_label["name"]?>
|
||||
<th><?php echo $lang_label["description"]?>
|
||||
<th width="30px"><?php echo $lang_label["delete"]?>
|
||||
<th width="80px"><?php echo $lang_label["user_ID"]?></th>
|
||||
<th width="155px"><?php echo $lang_label["last_contact"]?></th>
|
||||
<th width="45px"><?php echo $lang_label["profile"]?></th>
|
||||
<th width="120px"><?php echo $lang_label["name"]?></th>
|
||||
<th><?php echo $lang_label["description"]?></th>
|
||||
<th width="30px"><?php echo $lang_label["delete"]?></th>
|
||||
|
||||
<?php
|
||||
$query1="SELECT * FROM tusuario";
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
//Pandora Version
|
||||
if (!isset($build_version))
|
||||
$build_version="PC070820";
|
||||
$build_version="PC071012";
|
||||
if (!isset($pandora_version))
|
||||
$pandora_version="v1.3 Beta 2";
|
||||
$pandora_version="v1.3 Beta 4";
|
||||
|
||||
// Database configuration (default ones)
|
||||
//$dbname="pandora13"; // MySQL DataBase
|
||||
|
|
|
@ -114,7 +114,8 @@ $lang_label["rej_inc"]="Rejected incidents";
|
|||
$lang_label["exp_inc"]="Expired incidents";
|
||||
$lang_label["rev_incident"]="Review of incident";
|
||||
$lang_label["note_title"]="Add note to incident";
|
||||
$lang_label["audit_title"]="Review of Pandora audit logs";
|
||||
$lang_label["audit_title"]="Pandora audit";
|
||||
$lang_label["logs"]="Review Logs";
|
||||
$lang_label["user"]="User";
|
||||
$lang_label["action"]="Action";
|
||||
$lang_label["src_address"]="Source IP";
|
||||
|
|
|
@ -106,7 +106,6 @@ $lang_label["medium"]="Media";
|
|||
$lang_label["serious"]="Grave";
|
||||
$lang_label["very_serious"]="Muy grave";
|
||||
$lang_label["maintenance"]="Mantenimiento";
|
||||
|
||||
$lang_label["date"]="Fecha";
|
||||
|
||||
$lang_label["incident_main_view"]="Vista principal de incidentes";
|
||||
|
@ -116,10 +115,10 @@ $lang_label["openedcom_inc"]="Incidentes activos, con comentarios";
|
|||
$lang_label["closed_inc"]="Incidentes cerrados";
|
||||
$lang_label["rej_inc"]="Incidentes rechazados";
|
||||
$lang_label["exp_inc"]="Incidentes expirados";
|
||||
|
||||
$lang_label["rev_incident"]="Revisar incidente";
|
||||
$lang_label["note_title"]="Añadir nota al incidente";
|
||||
$lang_label["audit_title"]="Revisar logs de auditoría de Pandora";
|
||||
$lang_label["audit_title"]="Auditoría de Pandora";
|
||||
$lang_label["logs"]="Logs";
|
||||
$lang_label["user"]="Usuario";
|
||||
$lang_label["action"]="Acción";
|
||||
$lang_label["src_address"]="IP Origen";
|
||||
|
@ -334,8 +333,8 @@ $lang_label["purge_audit_7day"]="Borrar los datos de auditoría excepto la últi
|
|||
$lang_label["purge_audit_90day"]="Borrar los datos de auditoría excepto el último trimestre";
|
||||
$lang_label["purge_audit_14day"]="Borrar los datos de auditoría excepto las últimas dos semanas";
|
||||
$lang_label["purge_audit_3day"] ="Borrar los datos de auditoría excepto los últimos tres días";
|
||||
$lang_label["purge_audit_1day"]="Borrar los datos de autoría excepto el ultimo día";
|
||||
$lang_label["purge_audit_all"]="Borrar todos los datos de autoría";
|
||||
$lang_label["purge_audit_1day"]="Borrar los datos de auditoría excepto el ultimo día";
|
||||
$lang_label["purge_audit_all"]="Borrar todos los datos de auditoría";
|
||||
$lang_label["purge_event_30day"]="Borrar los datos de eventos excepto los últimos 30 días";
|
||||
$lang_label["purge_event_7day"]="Borrar los datos de eventos excepto la última semana";
|
||||
$lang_label["purge_event_90day"]="Borrar los datos de eventos excepto el último trimestre";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
|
||||
// Pandora - Free monitoring system
|
||||
// ====================================
|
||||
|
@ -103,7 +103,6 @@ $lang_label["medium"]="Media";
|
|||
$lang_label["serious"]="Grave";
|
||||
$lang_label["very_serious"]="Moi grave";
|
||||
$lang_label["maintenance"]="Mantemento";
|
||||
|
||||
$lang_label["date"]="Data";
|
||||
|
||||
$lang_label["incident_main_view"]="Vista principal de incidentes";
|
||||
|
@ -113,10 +112,10 @@ $lang_label["openedcom_inc"]="Incidentes activos, con comentarios";
|
|||
$lang_label["closed_inc"]="Incidentes pechados";
|
||||
$lang_label["rej_inc"]="Incidentes rexeitados";
|
||||
$lang_label["exp_inc"]="Incidentes expirados";
|
||||
|
||||
$lang_label["rev_incident"]="Revisar incidente";
|
||||
$lang_label["note_title"]="Engadir nota ao incidente";
|
||||
$lang_label["audit_title"]="Revisar logs de auditoría de Pandora";
|
||||
$lang_label["audit_title"]="Auditoría de Pandora";
|
||||
$lang_label["logs"]="Logs";
|
||||
$lang_label["user"]="Usuario";
|
||||
$lang_label["action"]="Acción";
|
||||
$lang_label["src_address"]="IP Orixe";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
<?php
|
||||
|
||||
// Pandora - the Free monitoring system
|
||||
// ====================================
|
||||
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnol<EFBFBD>gicas S.L, info@artica.es
|
||||
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
|
@ -17,7 +17,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
// Tradução para o Português do Brasil
|
||||
// Tradu<EFBFBD><EFBFBD>o para o Portugu<67>s do Brasil
|
||||
// Copyright (c) 2006 Rodrigo J. Dutra <rodrigo.dutra@gmail.com>
|
||||
|
||||
$lang_label["view_agents"]="Ver agentes";
|
||||
|
@ -97,7 +97,8 @@ $lang_label["rej_inc"]="Incidentes recusados";
|
|||
$lang_label["exp_inc"]="Incidentes expirados";
|
||||
$lang_label["rev_incident"]="Revisar incidente";
|
||||
$lang_label["note_title"]="Adicionar nota ao incidente";
|
||||
$lang_label["audit_title"]="Revisar logs de auditoria do Pandora";
|
||||
$lang_label["audit_title"]="Revisar auditoria do Pandora";
|
||||
$lang_label["logs"]="Logs";
|
||||
$lang_label["user"]="Usuário";
|
||||
$lang_label["action"]="Açáo";
|
||||
$lang_label["src_address"]="IP Origem";
|
||||
|
@ -151,7 +152,7 @@ $lang_label["err_auth_msg"]="A combinaçáo usuário/senha é incorreta. Verifiq
|
|||
$lang_label["find_crit"]="Selecione um critério de busca";
|
||||
$lang_label["all"]="Tudo";
|
||||
$lang_label["free_text_search"]="Texto livre para busca (*)";
|
||||
$lang_label["free_text_search_msg"]="A busca pelo texto irá procurar por todas as palavras informadas como pará¢metros, tanto no Ãdice de tÃtulos, como na descriçáo de cada incidente";
|
||||
$lang_label["free_text_search_msg"]="A busca pelo texto irá procurar por todas as palavras informadas como pará<72>metros, tanto no ídice de títulos, como na descriçáo de cada incidente";
|
||||
$lang_label["confirmation"]="confirmaçáo";
|
||||
$lang_label["password"]="senha";
|
||||
$lang_label["users"]="Usuários definidos no Pandora";
|
||||
|
@ -253,9 +254,9 @@ $lang_label["add"]="Adicionar";
|
|||
$lang_label["db_purge_event"]="Limpeza da Base de Dados de eventos";
|
||||
$lang_label["db_event"]="BD de eventos";
|
||||
$lang_label["max_min"]="Máx/Mí";
|
||||
$lang_label["max"]="Máximo";
|
||||
$lang_label["min"]="Mínimo";
|
||||
$lang_label["med"]="Média";
|
||||
$lang_label["max"]="M<EFBFBD>ximo";
|
||||
$lang_label["min"]="M<EFBFBD>nimo";
|
||||
$lang_label["med"]="M<EFBFBD>dia";
|
||||
$lang_label["month_graph"]="Gráfico mensal";
|
||||
$lang_label["week_graph"]="Gráfico Semanal";
|
||||
$lang_label["day_graph"]="Gráfico Diário";
|
||||
|
@ -558,8 +559,8 @@ $lang_label["icon"]="ícone";
|
|||
$lang_label["agent_exists"]="O agente já existe";
|
||||
$lang_label["graph_order"]="Ordem do gráfico";
|
||||
$lang_label["truetype"]="Fontes truetype";
|
||||
$lang_label["right_left"]="Dir. à Esq."; // direita à esquerda
|
||||
$lang_label["left_right"]="Esq. à Dir."; // esquerda à direita
|
||||
$lang_label["right_left"]="Dir. à<EFBFBD> Esq."; // direita à esquerda
|
||||
$lang_label["left_right"]="Esq. à<EFBFBD> Dir."; // esquerda à direita
|
||||
$lang_label["cannot_read_snmp"]="Náo pode ser lido SNMP del origem";
|
||||
$lang_label["ok_read_snmp"]="El origem SNMP foi esquadrinhado";
|
||||
$lang_label["cancel"]="Cancelar";
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
// Pandora FMS 1.x uses Pear Image::Graph code
|
||||
|
||||
//Pandora Version, if not defined here it would take from config.php
|
||||
$build_version="PC070908";
|
||||
$pandora_version="v1.3 Beta3";
|
||||
$build_version="PC071012";
|
||||
$pandora_version="v1.3 Beta4";
|
||||
global $build_version;
|
||||
global $pandora_version;
|
||||
|
||||
|
|
|
@ -65,8 +65,7 @@ function datos_raw($id_agente_modulo, $periodo){
|
|||
|
||||
echo "<h2>".$lang_label["data_received"]."
|
||||
'$nombre_agente' / '$nombre_modulo' </h2>";
|
||||
echo "<h3> $et <a href='help/".$help_code."/chap3.php#3322' target='_help'
|
||||
class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<h3>". $et ."</h3>";
|
||||
if (mysql_num_rows($result)){
|
||||
echo "<table cellpadding='3' cellspacing='3' width='600' class='databox'>";
|
||||
$color=1;
|
||||
|
@ -140,5 +139,5 @@ if (isset($_GET["delete"])) {
|
|||
}
|
||||
|
||||
datos_raw($id,$tipo);
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,10 +1,22 @@
|
|||
<?php
|
||||
<?php
|
||||
// Pandora FMS - the Free monitoring system
|
||||
// ========================================
|
||||
// Copyright (c) 2004-2007 Sancho Lerena, slerena@openideas.info
|
||||
// Copyright (c) 2005-2007 Artica Soluciones Tecnologicas
|
||||
// Copyright (c) 2004-2007 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// Copyright (c) 2006-2007 Jose Navarro jose@jnavarro.net
|
||||
// Copyright (c) 2006-2007 Jonathan Barajas, jonathan.barajas[AT]gmail[DOT]com
|
||||
|
||||
// Pandora - The Free Monitoring System
|
||||
// This code is protected by GPL license.
|
||||
// Este codigo esta protegido por la licencia GPL.
|
||||
// Sancho Lerena <slerena@gmail.com>, 2003-2006
|
||||
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation version 2
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, U6
|
||||
|
||||
// Load global vars
|
||||
require("include/config.php");
|
||||
|
@ -12,7 +24,7 @@ if (comprueba_login() == 0){
|
|||
$iduser_temp=$_SESSION['id_usuario'];
|
||||
if (give_acl($iduser_temp, 0, "AR") == 1){
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["db_stat_agent"]."<a href='help/".$help_code."/chap3.php#337' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["db_stat_agent"]."</h2>";
|
||||
echo "<table border=0>";
|
||||
echo "<tr><td><img src='reporting/fgraph.php?tipo=db_agente_modulo'><br>";
|
||||
echo "<tr><td><br>";
|
||||
|
|
|
@ -49,8 +49,7 @@ if (comprueba_login() == 0) {
|
|||
$ag_group = $_GET["ag_group_refresh"];
|
||||
}
|
||||
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["summary"]."<a href='help/".$help_code."/chap3.php#331' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["summary"]."</h2>";
|
||||
|
||||
// Show group selector
|
||||
if (isset($_POST["ag_group"])){
|
||||
|
|
|
@ -51,7 +51,7 @@ if (isset($_GET["id_agente"])){
|
|||
}
|
||||
|
||||
if (isset($_GET["tab"])){
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["alert_listing"]."<a href='help/".$help_code."/chap3.php#3324' target='_help' class='help'><span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["alert_listing"]."</h2>";
|
||||
}
|
||||
|
||||
$query_gen='SELECT talerta_agente_modulo.alert_text, talerta_agente_modulo.id_alerta, talerta_agente_modulo.descripcion, talerta_agente_modulo.last_fired, talerta_agente_modulo.times_fired, tagente_modulo.nombre, talerta_agente_modulo.dis_max, talerta_agente_modulo.dis_min, talerta_agente_modulo.max_alerts, talerta_agente_modulo.time_threshold, talerta_agente_modulo.min_alerts, talerta_agente_modulo.id_agente_modulo, tagente_modulo.id_agente_modulo, talerta_agente_modulo.id_aam FROM tagente_modulo, talerta_agente_modulo WHERE tagente_modulo.id_agente = '.$id_agente.' AND tagente_modulo.id_agente_modulo = talerta_agente_modulo.id_agente_modulo AND talerta_agente_modulo.disable = 0 ORDER BY tagente_modulo.nombre';
|
||||
|
@ -59,7 +59,7 @@ if (isset($_GET["id_agente"])){
|
|||
if (mysql_num_rows ($result_gen)) {
|
||||
|
||||
if (!isset($_GET["tab"])) {
|
||||
echo "<h3>".$lang_label["alert_listing"]."<a href='help/".$help_code."/chap3.php#3324' target='_help' class='help'><span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<h3>".$lang_label["alert_listing"]."</h3>";
|
||||
}
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' width=750 border=0 class='databox'>";
|
||||
|
@ -124,7 +124,7 @@ if (isset($_GET["id_agente"])){
|
|||
$id_grupo_alerta = give_db_value ("id_grupo", "tagente", "id_agente", $id_agente);
|
||||
if (give_acl($id_user, $id_grupo_alerta, "AW") == 1) {
|
||||
echo "<td align='center' class='".$tdcolor."'>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&validate_alert=".$data["id_aam"]."'><img src='images/ok.png'></A>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&validate_alert=".$data["id_aam"]."'><img src='images/ok.png'></a>";
|
||||
echo "</td>";
|
||||
}
|
||||
} else
|
||||
|
@ -142,7 +142,7 @@ if (isset($_GET["id_agente"])){
|
|||
// -------------------------------
|
||||
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["alert_listing"]."<a href='help/".$help_code."/chap3.php#335' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["alert_listing"]."</h2>";
|
||||
$iduser_temp=$_SESSION['id_usuario'];
|
||||
if (isset($_POST["ag_group"]))
|
||||
$ag_group = $_POST["ag_group"];
|
||||
|
|
|
@ -55,14 +55,14 @@ if (comprueba_login() == 0) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["view_agent_general_data"]."<a href='help/".$help_code."/chap3.php#3321' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["view_agent_general_data"]."</h2>";
|
||||
|
||||
// Blank space below title
|
||||
echo "<div style='height: 10px'> </div>";
|
||||
|
||||
echo '<table cellspacing="0" cellpadding="0" width="750" border=0 class="databox">';
|
||||
echo "<tr><td>";
|
||||
echo '<table cellspacing="4" cellpadding="4" border=0 class="databox"> ';
|
||||
echo '<table cellspacing="4" cellpadding="4" border=0 class="databox">';
|
||||
echo '<tr>
|
||||
<td class="datos"><b>'.$lang_label["agent_name"].'</b></td>
|
||||
<td class="datos"><b>'.strtoupper(salida_limpia($nombre_agente)).'</b></td>';
|
||||
|
|
|
@ -33,10 +33,7 @@
|
|||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["group_view"]."
|
||||
<a href='help/".$help_code."/chap3.php#324' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span>
|
||||
</a></h2>";
|
||||
echo "<h2>".$lang_label["ag_title"]." > ".$lang_label["group_view"]."</h2>";
|
||||
|
||||
// Get group list that user has access
|
||||
$mis_grupos = list_group2 ($id_user);
|
||||
|
|
|
@ -24,10 +24,10 @@ if (comprueba_login() == 0) {
|
|||
$id_agente = $_GET["id_agente"];
|
||||
}
|
||||
// Get all module from agent
|
||||
$sql_t='SELECT * FROM tagente_estado, tagente_modulo WHERE tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo AND tagente_modulo.id_agente='.$id_agente.' and tagente_estado.estado != 100 AND tagente_estado.utimestamp != 0 order by tagente_modulo.nombre';
|
||||
$sql_t='SELECT * FROM tagente_estado, tagente_modulo WHERE tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo AND tagente_modulo.id_agente='.$id_agente.' AND tagente_estado.estado != 100 AND tagente_estado.utimestamp != 0 ORDER BY tagente_modulo.nombre';
|
||||
$result_t=mysql_query($sql_t);
|
||||
if (mysql_num_rows ($result_t)) {
|
||||
echo "<h3>".$lang_label["monitor_listing"]."<a href='help/".$help_code."/chap3.php#3323' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<h3>".$lang_label["monitor_listing"]."</h3>";
|
||||
echo "<table width='750' cellpadding=4 cellspacing=4 class='databox'>";
|
||||
echo "<tr><th>".$lang_label["type"]."</th>
|
||||
<th>".$lang_label["module_name"]."</th>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP
|
||||
<?PHP
|
||||
// Pandora FMS - the Free monitoring system
|
||||
// ========================================
|
||||
// Copyright (c) 2004-2007 Sancho Lerena, slerena@gmail.com
|
||||
|
@ -60,7 +60,7 @@ if (comprueba_login() == 0) {
|
|||
$label_group=0;
|
||||
$last_label = "";
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["last_data_chunk"]."<a href='help/".$help_code."/chap3.php#3322' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["last_data_chunk"]."</h2>";
|
||||
$result3=mysql_query($sql3);
|
||||
if (mysql_num_rows ($result3)) {
|
||||
echo "<table width='750' cellpadding='3' cellspacing='3' class='databox'>";
|
||||
|
|
|
@ -31,10 +31,10 @@ function give_average_from_module ($id_agente, $id_agente_modulo, $hour, $day, $
|
|||
// Only valid for non-string kind of data.
|
||||
require ("include/config.php");
|
||||
$query1 = "SELECT AVG(datos)
|
||||
FROM tagente_datos
|
||||
WHERE id_agente_modulo = ". $id_agente_modulo."
|
||||
AND HOUR(timestamp) = ".$hour."
|
||||
AND WEEKDAY(timestamp) = ".$day."
|
||||
FROM tagente_datos
|
||||
WHERE id_agente_modulo = ". $id_agente_modulo."
|
||||
AND HOUR(timestamp) = ".$hour."
|
||||
AND WEEKDAY(timestamp) = ".$day."
|
||||
AND timestamp >= '$start_date'
|
||||
AND timestamp <= '$end_date'";
|
||||
|
||||
|
@ -107,9 +107,11 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
|
|||
else
|
||||
$export_type = 3; // Standard table;
|
||||
|
||||
// Header
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["export_title"]."</h2>";
|
||||
|
||||
if ($export_type == 1) { // CSV
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["export_title"]."<a href='help/".$help_code."/chap3.php#336' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
|
||||
if (isset ($_POST["origen_modulo"])){
|
||||
$origen = $_POST["origen"];
|
||||
|
@ -147,9 +149,6 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
|
|||
$from_date = $start_date." ".$start_time;
|
||||
$to_date = $end_date." ".$end_time;
|
||||
|
||||
// Header
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["export_title"]."<a href='help/".$help_code."/chap3.php#336' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
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>";
|
||||
|
||||
|
@ -165,8 +164,6 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
|
|||
}
|
||||
|
||||
if ($export_type == 3) { // Standard table
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["export_title"]."<a href='help/".$help_code."/chap3.php#336' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
if (isset ($_POST["origen_modulo"])){
|
||||
$origen = $_POST["origen"];
|
||||
if (give_acl($id_user,dame_id_grupo($origen),"AR")!=1) {
|
||||
|
@ -249,7 +246,7 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
|
|||
|
||||
echo "<script type='text/javaScript' src='include/javascript/calendar.js'></script>";
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["export_data"]."<a href='help/$help_code/chap3.php#336' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["export_data"]."</h2>";
|
||||
|
||||
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_color>';
|
||||
|
|
|
@ -22,8 +22,7 @@ if (comprueba_login() == 0) {
|
|||
if ((give_acl($id_user, 0, "AR")==1) or (give_acl($id_user,0,"AW")) or (dame_admin($id_user)==1)) {
|
||||
|
||||
echo "<h2>".$lang_label["ag_title"]." > ";
|
||||
echo $lang_label["monitor_listing"]."<a href='help/".$help_code."/chap3.php#334' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["monitor_listing"]."</h2>";
|
||||
|
||||
|
||||
if (isset($_POST["ag_group"]))
|
||||
|
|
|
@ -24,17 +24,17 @@ if (comprueba_login() == 0) {
|
|||
$id_usuario =$_SESSION["id_usuario"];
|
||||
if (give_acl($id_usuario, 0, "AR")==1) {
|
||||
echo "<h2>".$lang_label["events"]." > ";
|
||||
echo $lang_label["event_statistics"]."<a href='help/".$help_code."/chap5.php#51' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["event_statistics"]."</h2>";
|
||||
echo "<br><br>";
|
||||
echo "<table width=95%>";
|
||||
echo "<tr><td>";
|
||||
echo "<h2>".$lang_label["graph_event_total"]."</h2>";
|
||||
echo "<tr><td valign='top'>";
|
||||
echo "<h3>".$lang_label["graph_event_total"]."</h3>";
|
||||
echo '<img src="reporting/fgraph.php?tipo=total_events&width=300&height=200" border=0>';
|
||||
echo "<td>";
|
||||
echo "<h2>".$lang_label["graph_event_user"]."</h2>";
|
||||
echo "<td valign='top'>";
|
||||
echo "<h3>".$lang_label["graph_event_user"]."</h3>";
|
||||
echo '<img src="reporting/fgraph.php?tipo=user_events&width=300&height=200" border=0>';
|
||||
echo "<tr><td>";
|
||||
echo "<h2>".$lang_label["graph_event_group"]."</h2>";
|
||||
echo "<h3>".$lang_label["graph_event_group"]."</h3>";
|
||||
echo '<img src="reporting/fgraph.php?tipo=group_events&width=300&height=200" border=0>';
|
||||
echo "</table>";
|
||||
} else {
|
||||
|
|
|
@ -168,23 +168,23 @@ $event="All";
|
|||
if (isset($_POST["event"]))
|
||||
$event = entrada_limpia($_POST["event"]);
|
||||
|
||||
echo "<h2>".$lang_label["events"]." > ".$lang_label["event_main_view"]."<a href='help/".$help_code."/chap5.php#5' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<h2>".$lang_label["events"]." > ".$lang_label["event_main_view"]."</h2>";
|
||||
echo "<table width=100%>";
|
||||
echo "<tr><td>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox' >";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<td colspan='2' valign='top'>";
|
||||
echo "<h3>".$lang_label["filter"]."</h3>";
|
||||
echo "<h3>".$lang_label["filter"]."</h3></td></tr>";
|
||||
echo "<tr>";
|
||||
echo "<form method='post' action='index.php?sec=eventos&sec2=operation/events/events&refr=60'>";
|
||||
echo "<td>".$lang_label["group"]."</td>";
|
||||
echo "<td>";
|
||||
echo "<select name='ev_group' onChange='javascript:this.form.submit();' class='w130'>";
|
||||
if ( $ev_group > 1 ){
|
||||
echo "<option value='".$ev_group."'>".dame_nombre_grupo($ev_group);
|
||||
echo "<option value='".$ev_group."'>".dame_nombre_grupo($ev_group)."</option>";
|
||||
}
|
||||
echo "<option value=1>".dame_nombre_grupo(1)."</option>";
|
||||
list_group ($id_user);
|
||||
echo "</select>";
|
||||
echo "</select></td></tr>";
|
||||
|
||||
echo "<tr><td valign='middle'>".$lang_label["events"]."</td>";
|
||||
echo "<td><form method='post' action='index.php?sec=eventos&sec2=operation/events/events&refr=60'>";
|
||||
|
|
|
@ -187,7 +187,7 @@ $sql1=$sql0;
|
|||
$sql1=$sql1." LIMIT $offset, $block_size";
|
||||
|
||||
echo "<h2>".$lang_label["incident_manag"]." > ";
|
||||
echo $lang_label["manage_incidents"]."<a href='help/".$help_code."/chap4.php#4' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["manage_incidents"]."</h2>";
|
||||
if (isset($_POST['operacion'])){
|
||||
echo $lang_label["incident_view_filter"]." - ".$_POST['operacion']."</h2>";
|
||||
}
|
||||
|
|
|
@ -211,10 +211,11 @@ if (isset($id_inc)) {
|
|||
}
|
||||
echo "<h2>".$lang_label["incident_manag"]." > ";
|
||||
if (isset($id_inc)) {
|
||||
echo $lang_label["rev_incident"]." # ".$id_inc." <a href='help/".$help_code."/chap4.php#42' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["rev_incident"]." # ".$id_inc;
|
||||
} else {
|
||||
echo $lang_label["create_incident"]."<a href='help/".$help_code."/chap4.php#41' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["create_incident"];
|
||||
}
|
||||
echo "</h2>";
|
||||
echo '<table cellpadding="4" cellspacing="4" class="databox" width="600">';
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp)) {
|
||||
echo '<tr><td class="datos"><b>'.$lang_label["incident"].'</b></td>
|
||||
|
|
|
@ -28,7 +28,7 @@ if (comprueba_login() == 0) {
|
|||
|
||||
// Create Note
|
||||
echo "<h2>".$lang_label["incident_manag"]." > ";
|
||||
echo $lang_label["note_title"]." #".$id_inc."<a href='help/".$help_code."/chap3.php#331' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["note_title"]." #".$id_inc."</h2>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox' width='550px'>
|
||||
<form name='nota' method='post' action='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&insertar_nota=1&id=".$id_inc."'>";
|
||||
echo "<tr><td class='datos'><b>".$lang_label["date"]."</b>";
|
||||
|
|
|
@ -24,7 +24,7 @@ require("include/config.php");
|
|||
if (comprueba_login() == 0) {
|
||||
|
||||
echo "<h2>".$lang_label["incident_manag"]." > ";
|
||||
echo $lang_label["find_crit"]." <a href='help/".$help_code."/chap4.php#43' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["find_crit"]."</h2>";
|
||||
echo "<div style='width:645'>";
|
||||
echo "<div style='float:right;'><img src='images/pulpo_lupa.png' class='bot' align='left'></div>";
|
||||
?>
|
||||
|
@ -35,12 +35,12 @@ echo "<div style='float:right;'><img src='images/pulpo_lupa.png' class='bot' ali
|
|||
<td class="datos"><?php echo $lang_label["user"] ?>
|
||||
<td class="datos">
|
||||
<select name="usuario" class="w120">
|
||||
<option value=""><?php echo $lang_label["all"] ?>
|
||||
<option value=""><?php echo $lang_label["all"] ?></option>
|
||||
<?php
|
||||
$sql1='SELECT * FROM tusuario ORDER BY id_usuario';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option>".$row["id_usuario"];
|
||||
echo "<option>".$row["id_usuario"]."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
|
|
@ -23,9 +23,9 @@ require("include/config.php");
|
|||
|
||||
if (comprueba_login() == 0) {
|
||||
$iduser=$_SESSION['id_usuario'];
|
||||
if (give_acl($id_user, 0, "IR")==1) {
|
||||
if (give_acl($id_user, 0, "IR")==1) {
|
||||
echo "<h2>".$lang_label["incident_manag"]." > ";
|
||||
echo $lang_label["statistics"]."<a href='help/".$help_code."/chap4.php#44' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["statistics"]."</h2>";
|
||||
|
||||
echo "<table width = 90%>";
|
||||
echo "<tr><td>";
|
||||
|
|
|
@ -139,7 +139,7 @@ if (isset($_GET["nuevo"]) || isset($_GET["nuevo_g"])){
|
|||
}
|
||||
|
||||
if (isset($_GET["nuevo_g"])){
|
||||
echo $lang_label["new_message_g"].'<a href="help/'.$help_code.'/chap2.php#251" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h2>';
|
||||
echo $lang_label["new_message_g"].'</h2>';
|
||||
echo '
|
||||
<form name="new_mes" method="post" action="index.php?sec=messages&sec2=operation/messages/message&nuevo_mensaje_g=1">
|
||||
<table width=600 class="databox_color" cellpadding=4 cellspacing=4>
|
||||
|
|
|
@ -30,7 +30,7 @@ if (comprueba_login() == 0) {
|
|||
$sql='SELECT * FROM tserver';
|
||||
|
||||
echo "<h2>".$lang_label["view_servers"]." > ";
|
||||
echo $lang_label["server_detail"]." <a href='help/".$help_code."/chap7.php#7' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["server_detail"]."</h2>";
|
||||
|
||||
// Get total modules defined (network)
|
||||
$sql1='SELECT COUNT(id_agente_modulo) FROM tagente_modulo WHERE id_tipo_modulo > 4';
|
||||
|
|
|
@ -123,12 +123,12 @@ if (give_acl($id_user, 0, "LW")==1) {
|
|||
if (($alert_update != 0) || ($alert_add == 1)) {
|
||||
|
||||
if ($alert_update != 0) {
|
||||
echo $lang_label["update_alert"]."<a href='help/".$help_code."/chap3.php#331' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["update_alert"]."</h2>";
|
||||
} else {
|
||||
echo $lang_label["create_alert"]."<a href='help/".$help_code."/chap3.php#331' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["create_alert"]."</h2>";
|
||||
}
|
||||
echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&submit=1">';
|
||||
echo '<input type="hidden" name="id_as" value="'.$id_as.'">'; // if known, if add will be undetermined (0).
|
||||
echo '<input type="hidden" name="id_as" value="'.$id_as.'">'; // if known, if add will be undetermined (0).
|
||||
echo '<table cellpadding="4" cellspacing="4" width="650" class="databox_color">';
|
||||
// Alert
|
||||
echo '<tr><td class=datos>'.$lang_label["alert"].'<td class=datos><select name="alert_id">';
|
||||
|
@ -136,24 +136,35 @@ if (give_acl($id_user, 0, "LW")==1) {
|
|||
$sql0='SELECT * FROM talerta WHERE id_alerta = '.$id_alert;
|
||||
$result0=mysql_query($sql0);
|
||||
$row0=mysql_fetch_array($result0);
|
||||
echo "<option value='".$row0["id_alerta"]."'>".$row0["nombre"];
|
||||
echo "<option value='".$row0["id_alerta"]."'>".$row0["nombre"]."</option>";
|
||||
}
|
||||
$sql1='SELECT * FROM talerta';
|
||||
$result1=mysql_query($sql1);
|
||||
while ($row1=mysql_fetch_array($result1)){
|
||||
echo "<option value='".$row1["id_alerta"]."'>".$row1["nombre"];
|
||||
echo "<option value='".$row1["id_alerta"]."'>".$row1["nombre"]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
// Alert type
|
||||
echo '<tr><td class="datos2">'.$lang_label["alert_type"];
|
||||
echo '<td class="datos2"><select name="alert_type">';
|
||||
if ($alert_type == 0) {
|
||||
echo '<option value=0>OID<option value=1>CustomOID/Value<option value=2>SNMPAgent</select>';
|
||||
echo '
|
||||
<option value=0>OID</option>
|
||||
<option value=1>CustomOID/Value</option>
|
||||
<option value=2>SNMPAgent</option>';
|
||||
|
||||
} elseif ($alert_type == 1) {
|
||||
echo '<option value=1>CustomOID/Value<option value=0>OID<option value=2>SNMPAgent</select>';
|
||||
echo '
|
||||
<option value=1>CustomOID/Value</option>
|
||||
<option value=0>OID</option>
|
||||
<option value=2>SNMPAgent</option>';
|
||||
} else {
|
||||
echo '<option value=2>SNMPAgent<option value=0>OID<option value=1>CustomOID/Value</select>';
|
||||
echo '
|
||||
<option value=2>SNMPAgent</option>
|
||||
<option value=0>OID</option>
|
||||
<option value=1>CustomOID/Value</option>';
|
||||
}
|
||||
echo '</select></td></tr>';
|
||||
// Description
|
||||
echo '<tr><td class=datos>'.$lang_label["description"].'</td>';
|
||||
echo '<td class=datos><input type="text" size=60 name="description" value="'.$description.'">';
|
||||
|
@ -211,7 +222,7 @@ if (give_acl($id_user, 0, "LW")==1) {
|
|||
$sql1='SELECT * FROM talert_snmp';
|
||||
$result=mysql_query($sql1);
|
||||
|
||||
echo $lang_label["snmp_assigned_alerts"]."<a href='help/".$help_code."/chap4.php#341' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["snmp_assigned_alerts"]."</h2>";
|
||||
if (mysql_num_rows($result)){
|
||||
|
||||
echo '<table cellpadding="4" cellspacing="4" width="750" class="databox">';
|
||||
|
|
|
@ -120,7 +120,7 @@ if (comprueba_login() == 0) {
|
|||
}
|
||||
}
|
||||
echo "<h2>Pandora SNMP > ";
|
||||
echo $lang_label["SNMP_console"]."<a href='help/".$help_code."/chap3.php#34' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["SNMP_console"]."</h2>";
|
||||
|
||||
if (isset($_GET["offset"]))
|
||||
$offset=$_GET["offset"];
|
||||
|
|
|
@ -25,7 +25,7 @@ if (comprueba_login() == 0) {
|
|||
?>
|
||||
|
||||
<h2><?php echo $lang_label["users_"] ?> >
|
||||
<?php echo $lang_label["users"] ?><a href='help/<?php echo $help_code ?>/chap2.php#2' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h2>
|
||||
<?php echo $lang_label["users"] ?></h2>
|
||||
|
||||
<table cellpadding="4" cellspacing="4" width="700" class='databox'>
|
||||
<th width="80px"><?php echo $lang_label["user_ID"]?></th>
|
||||
|
@ -82,7 +82,7 @@ echo "</table><br>";
|
|||
?>
|
||||
|
||||
|
||||
<h3><?php echo $lang_label["definedprofiles"] ?><a href='help/<?php echo $help_code ?>/chap2.php#21' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h3>
|
||||
<h3><?php echo $lang_label["definedprofiles"] ?></h3>
|
||||
|
||||
<table cellpadding='4' cellspacing='4' class='databox'>
|
||||
<?php
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Pandora - the Free monitoring system
|
||||
// ====================================
|
||||
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnol<EFBFBD>gicas S.L, info@artica.es
|
||||
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
|
@ -41,7 +41,7 @@ if (comprueba_login() == 0) {
|
|||
// Get user ID to modify data of current user.
|
||||
|
||||
if (isset ($_GET["modificado"])){
|
||||
// Se realiza la modificación
|
||||
// Se realiza la modificaci<EFBFBD>n
|
||||
if (isset ($_POST["pass1"])){
|
||||
if ( isset($_POST["nombre"]) && ($_POST["nombre"] != $_SESSION["id_usuario"])) {
|
||||
audit_db($_SESSION["id_usuario"],$REMOTE_ADDR,"Security Alert. Trying to modify another user: (".$_POST['nombre'].") ","Security Alert");
|
||||
|
@ -58,8 +58,8 @@ if (comprueba_login() == 0) {
|
|||
echo "<h3 class='error'>".$lang_label["pass_nomatch"]."</h3>";
|
||||
}
|
||||
else {echo "<h3 class='suc'>".$lang_label["update_user_ok"]."</h3>";}
|
||||
//echo "<br>DEBUG para ".$nombre;
|
||||
//echo "<br>Comentarios:".$comentarios;
|
||||
//echo "<br>DEBUG for ".$nombre;
|
||||
//echo "<br>Comments:".$comentarios;
|
||||
$comentarios = entrada_limpia($_POST["comentarios"]);
|
||||
if (dame_password($nombre)!=$pass1){
|
||||
// Only when change password
|
||||
|
@ -82,7 +82,7 @@ if (comprueba_login() == 0) {
|
|||
}
|
||||
}
|
||||
echo "<h2>".$lang_label["users_"]." > ";
|
||||
echo $lang_label["user_edit_title"]."<a href='help/".$help_code."/chap2.php#22' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["user_edit_title"]."</h2>";
|
||||
|
||||
// Si no se obtiene la variable "modificado" es que se esta visualizando la informacion y
|
||||
// preparandola para su modificacion, no se almacenan los datos
|
||||
|
@ -139,7 +139,7 @@ if (comprueba_login() == 0) {
|
|||
echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'></td></tr>";
|
||||
}
|
||||
echo '</table></form><br>';
|
||||
echo '<h3>'.$lang_label["listGroupUser"].'<a href="help/'.$help_code.'/chap2.php#22" target="_help" class="help"> <span>'.$lang_label["help"].'</span></a></h3>';
|
||||
echo '<h3>'.$lang_label["listGroupUser"].'</h3>';
|
||||
echo "<table width='500' cellpadding='4' cellspacing='4' class='databox'>";
|
||||
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$nombre.'"';
|
||||
$result=mysql_query($sql1);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Pandora - the Free monitoring system
|
||||
// ====================================
|
||||
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
|
||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnol<EFBFBD>gicas S.L, info@artica.es
|
||||
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
|
@ -22,7 +22,7 @@ require("include/config.php");
|
|||
|
||||
if (comprueba_login() == 0) {
|
||||
echo "<h2>".$lang_label["users"]." > ";
|
||||
echo $lang_label["users_statistics"]."<a href='help/".$help_code."/chap2.php#24' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo $lang_label["users_statistics"]."</h2>";
|
||||
echo '<img src="reporting/fgraph.php?tipo=user_activity" border=0>';
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue