2007-02-27 Sancho Lerena <slerena@openideas.info>
* include/styles/god.css: Moved style block. * include/styles/link.css: Moved style block. * include/styles/op.css: Moved style block. * include/styles/pandora.css: Added some clases for new appearance. Needs to be improved, not finished yet !. * include/config.inc.php: Changed version number. * index.php: Some changes for new block disposition using data_box class and other changes. * operation/agentes/ver_agente.php: Now shows data in three tabs. Needs to be improved, but functional. * operation/agentes/estado_generalagente.php: Change in title order. This should be the way to show title and subtitle since now. * operation/messages/message.php: Changed icon, and fix problem in CSS. Deleted class: Classes with only fix weight should be avoided from now and added in code just with a style attribute, it generates too many classes in main CSS. * images/bottom-*-corner.gif: Added. * general/footer.php: Needs to be updated. * general/links_menu.php: New style in use (different color for top). * godmode/agentes/module_manager.php: New file to manage in tabs agent configuration. Almost functional, needs fix. * godmode/agentes/alert_manager.php: Content of alert management for agent manager, now in a individual file to be shown in a tab. * godmode/agentes/configurar_agente.php; * godmode/agentes/agent_manager.php: New file to manage in tabs agent configuration. Almost functional, needs fix. * godmode/menu.php: New style in use (different color for top). This is a partial commit not fully functional, need to be done due to many changes in a temporal development computer. Sorry for problems to people that are testing SVN version. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@387 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
252cf4c3e4
commit
c5c0d97d50
|
@ -1,3 +1,55 @@
|
|||
2007-02-27 Sancho Lerena <slerena@openideas.info>
|
||||
|
||||
* include/styles/god.css: Moved style block.
|
||||
|
||||
* include/styles/link.css: Moved style block.
|
||||
|
||||
* include/styles/op.css: Moved style block.
|
||||
|
||||
* include/styles/pandora.css: Added some clases for new
|
||||
appearance. Needs to be improved, not finished yet !.
|
||||
|
||||
* include/config.inc.php: Changed version number.
|
||||
|
||||
* index.php: Some changes for new block disposition using
|
||||
data_box class and other changes.
|
||||
|
||||
* operation/agentes/ver_agente.php: Now shows data in three
|
||||
tabs. Needs to be improved, but functional.
|
||||
|
||||
* operation/agentes/estado_generalagente.php: Change in title
|
||||
order. This should be the way to show title and subtitle since
|
||||
now.
|
||||
|
||||
* operation/messages/message.php: Changed icon, and fix problem in
|
||||
CSS. Deleted class: Classes with only fix weight should be avoided
|
||||
from now and added in code just with a style attribute, it
|
||||
generates too many classes in main CSS.
|
||||
|
||||
* images/bottom-*-corner.gif: Added.
|
||||
|
||||
* general/footer.php: Needs to be updated.
|
||||
|
||||
* general/links_menu.php: New style in use (different color for
|
||||
top).
|
||||
|
||||
* godmode/agentes/module_manager.php: New file to manage in tabs
|
||||
agent configuration. Almost functional, needs fix.
|
||||
|
||||
* godmode/agentes/alert_manager.php: Content of alert management
|
||||
for agent manager, now in a individual file to be shown in a tab.
|
||||
|
||||
* godmode/agentes/configurar_agente.php;
|
||||
|
||||
* godmode/agentes/agent_manager.php: New file to manage in tabs
|
||||
agent configuration. Almost functional, needs fix.
|
||||
|
||||
* godmode/menu.php: New style in use (different color for top).
|
||||
|
||||
This is a partial commit not fully functional, need to be done due
|
||||
to many changes in a temporal development computer. Sorry for
|
||||
problems to people that are testing SVN version.
|
||||
|
||||
2007-02-22 Esteban Sanchez <estebans@artica.es>
|
||||
|
||||
* pandoradb.sql: Changed a 'utimestamp' field from mediumint to
|
||||
|
|
|
@ -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>icas 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
|
||||
|
@ -16,8 +16,9 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
?>
|
||||
<p align='center'>
|
||||
|
||||
<?php
|
||||
<?PHP
|
||||
echo '
|
||||
<a target="_new" href="general/license/pandora_info_'.$language_code.'.html">
|
||||
Pandora FMS '.$pandora_version.' Build '.$build_version.' '.
|
||||
|
@ -32,5 +33,7 @@ if (isset($_SESSION['id_usuario'])) {
|
|||
echo $lang_label["gen_date"]." ".date("D F d, Y H:i:s", $time)."<br>";
|
||||
}
|
||||
?>
|
||||
|
||||
<i>Pandora FMS is a <a target="_new" href="http://pandora.sourceforge.net">
|
||||
SourceForge registered project</a></i>
|
||||
</p>
|
|
@ -9,7 +9,7 @@ $sql1='SELECT * FROM tlink ORDER BY name';
|
|||
$result=mysql_query($sql1);
|
||||
if ($row=mysql_fetch_array($result)){
|
||||
?>
|
||||
<div class="bg">
|
||||
<div class="bg4">
|
||||
<div class="imgl"><img src="images/upper-left-corner.gif" width="5" height="5" alt=""></div>
|
||||
<div class="tit">:: <?php echo $lang_label["links_header"] ?> ::</div>
|
||||
<div class="imgr"><img src="images/upper-right-corner.gif" width="5" height="5" alt=""></div>
|
||||
|
|
|
@ -0,0 +1,146 @@
|
|||
<?PHP
|
||||
|
||||
// ========================
|
||||
// AGENT GENERAL DATA FORM
|
||||
// ========================
|
||||
|
||||
echo "<h2>".$lang_label["agent_conf"];
|
||||
if (isset($_GET["creacion"])){
|
||||
echo " > ".$lang_label["create_agent"]."
|
||||
<a href='help/".$help_code."/chap3.php#32' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a>";
|
||||
} 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 "</h2>";
|
||||
|
||||
echo '<form name="conf_agent" method="post" action="index.php?sec=gagente&
|
||||
sec2=godmode/agentes/configurar_agente">';
|
||||
if ($creacion_agente == 1) {
|
||||
echo "<input type='hidden' name='create_agent' value='1'>";
|
||||
} else {
|
||||
echo "<input type='hidden' name='update_agent' value='1'>";
|
||||
echo "<input type='hidden' name='id_agente' value='".$id_agente."'>";
|
||||
}
|
||||
echo '<table width="650" cellpadding="3" cellspacing="3" class="fon">';
|
||||
echo "<tr><td class='lb' rowspan='9' width='5'>";
|
||||
echo '<td class="datos"><b>'.$lang_label["agent_name"].'</b></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="agente" size=30 value="'.$nombre_agente.'">';
|
||||
if (isset($_GET["creacion"])){
|
||||
echo " ";
|
||||
} else {
|
||||
echo "
|
||||
<a href='index.php?sec=gagente&
|
||||
sec2=godmode/agentes/configurar_agente&id_agente=".$id_agente."'
|
||||
<img src='images/setup.gif' width='16' valign='top' align='middle' border='0'></a>
|
||||
<a href='index.php?sec=estado&
|
||||
sec2=operation/agentes/ver_agente&id_agente=".$id_agente."'>
|
||||
<img src='images/lupa.gif' border='0' align='middle'></a>";
|
||||
}
|
||||
?>
|
||||
<tr><td class="datos2"><b><?php echo $lang_label["ip_address"]?></b>
|
||||
<td class="datos2">
|
||||
<input type="text" name="direccion" size="30" value="
|
||||
<?php echo $direccion_agente ?>"></td>
|
||||
<!-- Combo for group -->
|
||||
<tr><td class="datos"><b><?php echo $lang_label["group"]?></b>
|
||||
<td class="datos"><select name="grupo" class="w130">
|
||||
<?php
|
||||
if (isset($grupo)){
|
||||
echo "<option value='".$grupo."'>".dame_grupo($grupo);
|
||||
}
|
||||
$sql1='SELECT id_grupo, nombre FROM tgrupo ORDER BY nombre';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
// Group ALL cannot be selected
|
||||
if ($row["id_grupo"] != 1){
|
||||
echo "<option value='".$row["id_grupo"]."'>".$row["nombre"];
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<tr><td class="datos2"><b><?php echo $lang_label["interval"]?></b></td>
|
||||
<td class="datos2">
|
||||
<input type="text" name="intervalo" size="15" value="
|
||||
<?php echo $intervalo?>"></td>
|
||||
<tr><td class="datos"><b><?php echo $lang_label["os"]?></b></td>
|
||||
<td class="datos">
|
||||
<select name="id_os" class="w130">
|
||||
<?php
|
||||
if (isset($id_os)){
|
||||
echo "<option value='".$id_os."'>".dame_so_name($id_os);
|
||||
}
|
||||
$sql1='SELECT id_os, name FROM tconfig_os ORDER BY name';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_os"]."'>".$row["name"];
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
<tr><td class="datos2"><b><?php echo $lang_label["server"]?></b></td>
|
||||
<td class="datos2">
|
||||
<select name="id_server" class="w130">
|
||||
<?php
|
||||
echo "<option value='".$id_server."'>".give_server_name($id_server);
|
||||
$sql1='SELECT id_server, name FROM tserver where network_server = 1 ORDER BY name';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_server"]."'>".$row["name"];
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
|
||||
|
||||
<tr><td class="datos"><b><?php echo $lang_label["description"]?></b>
|
||||
<td class="datos">
|
||||
<input type="text" name="comentarios" size="55" value="
|
||||
<?php echo $comentarios ?>"></td>
|
||||
<tr><td class="datos2"><b><?php echo $lang_label["module_definition"]?></b>
|
||||
<td class="datos2">
|
||||
<?php if ($modo == "1"){
|
||||
echo $lang_label["learning_mode"].'
|
||||
<input type="radio" class="chk" name="modo" value="1" class="mr40" checked>';
|
||||
echo $lang_label["normal_mode"].'
|
||||
<input type="radio" class="chk" name="modo" value="0">';
|
||||
} else {
|
||||
echo $lang_label["learning_mode"].'
|
||||
<input type="radio" class="chk" name="modo" value="1" class="mr40">';
|
||||
echo $lang_label["normal_mode"].'
|
||||
<input type="radio" name="modo" class="chk" value="0" checked>';
|
||||
}
|
||||
?>
|
||||
<tr><td class="datos"><b><?php echo $lang_label["status"]?></b>
|
||||
<td class="datos">
|
||||
<?php if ($disabled == "1"){
|
||||
echo $lang_label["disabled"].'
|
||||
<input type="radio" class="chk" name="disabled" value="1" class="mr40" checked>';
|
||||
echo $lang_label["active"].'
|
||||
<input class="chk" type="radio" name="disabled" value="0">';
|
||||
} else {
|
||||
echo $lang_label["disabled"].'
|
||||
<input type="radio" class="chk" name="disabled" value="1" class="mr40">';
|
||||
echo $lang_label["active"].'
|
||||
<input type="radio" name="disabled" class="chk" value="0" checked>';
|
||||
}
|
||||
?>
|
||||
<tr><td colspan='3'><div class='raya'></div></td></tr>
|
||||
<tr><td colspan="3" align="right">
|
||||
<?php
|
||||
if (isset($_GET["creacion"])){
|
||||
echo "
|
||||
<input name='crtbutton' type='submit' class='sub' value='".
|
||||
$lang_label["create"]."'>";
|
||||
} else {
|
||||
echo "
|
||||
<input name='uptbutton' type='submit' class='sub' value='".
|
||||
$lang_label["update"]."'>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</form>
|
||||
</table>
|
|
@ -0,0 +1,200 @@
|
|||
<?php
|
||||
|
||||
// ====================================================================================
|
||||
// VIEW ALERTS
|
||||
// ====================================================================================<br>
|
||||
|
||||
$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>";
|
||||
|
||||
$color=1;
|
||||
$string='';
|
||||
while ($row=mysql_fetch_array($result)){ // All modules of this agent
|
||||
$id_tipo = $row["id_tipo_modulo"];
|
||||
$nombre_modulo =$row["nombre"];
|
||||
$sql2='SELECT * FROM ttipo_modulo WHERE id_tipo = "'.$id_tipo.'"';
|
||||
$result2=mysql_query($sql2);
|
||||
$row2=mysql_fetch_array($result2);
|
||||
//module type modulo is $row2["nombre"];
|
||||
|
||||
$sql3='SELECT id_aam, id_alerta, time_threshold, dis_min, dis_max,
|
||||
descripcion
|
||||
FROM talerta_agente_modulo
|
||||
WHERE id_agente_modulo = '.$row["id_agente_modulo"]; // From all the alerts give me which are from my agent
|
||||
$result3=mysql_query($sql3);
|
||||
while ($row3=mysql_fetch_array($result3)){
|
||||
if ($color == 1){
|
||||
$tdcolor="datos";
|
||||
$color =0;
|
||||
} else {
|
||||
$tdcolor="datos2";
|
||||
$color =1;
|
||||
}
|
||||
$sql4='SELECT nombre FROM talerta WHERE id_alerta = '.$row3["id_alerta"];
|
||||
$result4=mysql_query($sql4);
|
||||
$row4=mysql_fetch_array($result4);
|
||||
// Alert name defined by $row4["nombre"];
|
||||
$tipo_modulo = $row2["nombre"];
|
||||
$nombre_alerta = $row4["nombre"];
|
||||
$string = $string."<tr><td class='$tdcolor'>".$nombre_modulo."/".$tipo_modulo;
|
||||
$string = $string."<td class=$tdcolor>".$nombre_alerta;
|
||||
$string = $string."<td class='$tdcolor'>".$row3["time_threshold"];
|
||||
$string = $string."<td class='$tdcolor'>".$row3["dis_min"]."/".$row3["dis_max"];
|
||||
$string = $string."<td class='$tdcolor'>".salida_limpia($row3["descripcion"]);
|
||||
$string = $string."<td class='$tdcolor'>";
|
||||
$id_grupo = dame_id_grupo($id_agente);
|
||||
if (give_acl($id_user, $id_grupo, "LW")==1){
|
||||
$string = $string."<a href='index.php?sec=gagente&
|
||||
sec2=godmode/agentes/configurar_agente&
|
||||
id_agente=".$id_agente."&delete_alert=".$row3["id_aam"]."'>
|
||||
<img src='images/cancel.gif' border=0 alt='".$lang_label["delete"]."'></a> ";
|
||||
$string = $string."<a href='index.php?sec=gagente&
|
||||
sec2=godmode/agentes/configurar_agente&
|
||||
id_agente=".$id_agente."&update_alert=".$row3["id_aam"]."#alerts'>
|
||||
<img src='images/config.gif' border=0 alt='".$lang_label["update"]."'></a>";
|
||||
}
|
||||
$string = $string."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($string) & $string!='') {
|
||||
echo "<table cellpadding='3' cellspacing='3' width='700' class='fon'>
|
||||
<tr><th>".$lang_label["name_type"]."</th>
|
||||
<th>".$lang_label["alert"]."</th>
|
||||
<th>".$lang_label["time_threshold"]."</th>
|
||||
<th>".$lang_label["min_max"]."</th>
|
||||
<th>".$lang_label["description"]."</th>
|
||||
<th width='50'>".$lang_label["action"]."</th></tr>";
|
||||
echo $string;
|
||||
echo "<tr><td colspan='6'><div class='raya'></div></td></tr></table>";
|
||||
} else {
|
||||
echo "<div class='nf'>".$lang_label["no_alerts"]."</div>";
|
||||
}
|
||||
} else {
|
||||
echo "<div class='nf'>".$lang_label["no_modules"]."</div>";
|
||||
}
|
||||
?>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
<?php
|
||||
// ==================================================================================
|
||||
// Add alerts
|
||||
// ==================================================================================
|
||||
echo '<form name="agente" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'">';
|
||||
if (! isset($update_alert))
|
||||
$update_alert = -1;
|
||||
if ($update_alert != 1) {
|
||||
echo '<input type="hidden" name="insert_alert" value=1>';
|
||||
} else {
|
||||
echo '<input type="hidden" name="update_alert" value=1>';
|
||||
echo '<input type="hidden" name="id_aam" value="'.$alerta_id_aam.'"';
|
||||
}
|
||||
?>
|
||||
<input type="hidden" name="id_agente" value="<?php echo $id_agente ?>">
|
||||
<table width=650 cellpadding="3" cellspacing="3" class="fon" border=0>
|
||||
<tr><td class='lb' rowspan='9' width='5'>
|
||||
<td class="datos"><?php echo $lang_label["alert_type"]?>
|
||||
<td class="datos">
|
||||
<select name="tipo_alerta">
|
||||
<?php
|
||||
if (isset($tipo_alerta)){
|
||||
echo "<option value='".$tipo_alerta."'>".dame_nombre_alerta($tipo_alerta)."</option>";
|
||||
}
|
||||
$sql1='SELECT id_alerta, nombre FROM talerta ORDER BY nombre';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_alerta"]."'>".$row["nombre"]."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<a name="alerts"> <!-- Don't Delete !! -->
|
||||
|
||||
<tr><td class="datos2"><?php echo $lang_label["min_value"] ?>
|
||||
<td class="datos2"><input type="text" name="minimo" size="5" value="<?php echo $alerta_dis_min ?>" style="margin-right: 70px;">
|
||||
<?php echo $lang_label["max_value"] ?>
|
||||
<input type="text" name="maximo" size="5" value="<?php echo $alerta_dis_max ?>">
|
||||
<tr><td class="datos"><?php echo $lang_label["description"] ?>
|
||||
<td class="datos"><input type="text" name="descripcion" size="39" value ="<?php echo $alerta_descripcion ?>">
|
||||
<tr><td class="datos2"><?php echo $lang_label["field1"] ?>
|
||||
<td class="datos2"><input type="text" name="campo_1" size="39" value="<?php echo $alerta_campo1 ?>">
|
||||
<tr><td class="datos"><?php echo $lang_label["field2"] ?>
|
||||
<td class="datos"><input type="text" name="campo_2" size="39" value="<?php echo $alerta_campo2 ?>">
|
||||
<tr><td class="datos2"><?php echo $lang_label["field3"] ?>
|
||||
<td class="datos2"><textarea name="campo_3" cols="36" rows="3"><?php echo $alerta_campo3 ?></textarea>
|
||||
<tr><td class="datos"><?php echo $lang_label["time_threshold"] ?>
|
||||
<td class="datos"><select name="time_threshold" style="margin-right: 60px;">
|
||||
<?PHP
|
||||
if ($alerta_time_threshold != ""){
|
||||
echo "<option value='".$alerta_time_threshold."'>".give_human_time($alerta_time_threshold)."</option>";
|
||||
}
|
||||
?>
|
||||
<option value=300>5 Min.
|
||||
<option value=600>10 Min
|
||||
<option value=900>15 min
|
||||
<option value=1800>30 Min
|
||||
<option value=3600>1 Hour
|
||||
<option value=7200>2 Hour
|
||||
<option value=18000>5 Hour
|
||||
<option value=43200>12 Hour
|
||||
<option value=86400>1 Day
|
||||
<option value=604800>1 Week
|
||||
<option value=-1>Other value
|
||||
</select>
|
||||
|
||||
<?php echo $lang_label["other"] ?>
|
||||
|
||||
<input type="text" name="other" size="5">
|
||||
|
||||
<tr><td class="datos2"><?php echo $lang_label["min_alerts"] ?>
|
||||
<td class="datos2">
|
||||
<input type="text" name="min_alerts" size="5" value="<?php if (isset($alerta_min_alerts)) {echo$alerta_min_alerts;} ?>" style="margin-right: 10px;">
|
||||
<?php echo $lang_label["max_alerts"] ?>
|
||||
|
||||
<input type="text" name="max_alerts" size="5" value="<?php if (isset($alerta_max_alerts)) {echo $alerta_max_alerts;} ?>">
|
||||
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["assigned_module"] ?>
|
||||
<td class="datos">
|
||||
<?php if ($update_alert != 1) {
|
||||
echo '<select name="agente_modulo"> ';
|
||||
$sql2='SELECT id_agente_modulo, id_tipo_modulo, nombre FROM tagente_modulo WHERE id_agente = '.$id_agente;
|
||||
$result2=mysql_query($sql2);
|
||||
while ($row2=mysql_fetch_array($result2)){
|
||||
if ($row2["id_tipo_modulo"] != -1) {
|
||||
$sql1='SELECT nombre FROM ttipo_modulo WHERE id_tipo = '.$row2["id_tipo_modulo"];
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row2["id_agente_modulo"]."'>".$row["nombre"]."/".$row2["nombre"];
|
||||
}
|
||||
} else // for -1, is a special module, keep alive monitor !!
|
||||
echo "<option value='".$row2["id_agente_modulo"]."'>".$row2["nombre"]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
} else {
|
||||
echo "<span class='redi'>".$lang_label["no_change_field"]."</span>";
|
||||
}
|
||||
|
||||
// End block only if $creacion_agente != 1;
|
||||
|
||||
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>';
|
||||
echo '<tr><td colspan="3" align="right">';
|
||||
if ($update_alert== "1"){
|
||||
echo '<input name="updbutton" type="submit" class="sub" value="'.$lang_label["update"].'">';
|
||||
} else {
|
||||
echo '<input name="crtbutton" type="submit" class="sub" value="'.$lang_label["add"].'">';
|
||||
}
|
||||
echo '</form>';
|
||||
|
||||
echo "<form method='post' action='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente=".$id_agente."'><input type='submit' class='sub' name='crt' value='".$lang_label["cancel"]."'></form>";
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
}
|
||||
} // end page
|
||||
else {
|
||||
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Agent Management");
|
||||
require ("general/noaccess.php");
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,336 @@
|
|||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
function type_change()
|
||||
{
|
||||
// type 1-4 - Generic_xxxxxx
|
||||
if ((document.modulo.tipo.value > 0) && (document.modulo.tipo.value < 5)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.combo_snmp_oid.style.background="#ddd";
|
||||
document.modulo.combo_snmp_oid.disabled=true;
|
||||
document.modulo.oid.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#ddd";
|
||||
document.modulo.ip_target.disabled=true;
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
// type 15-18- SNMP
|
||||
if ((document.modulo.tipo.value > 14) && (document.modulo.tipo.value < 19 )){
|
||||
document.modulo.snmp_oid.style.background="#fff";
|
||||
document.modulo.snmp_oid.style.disabled=false;
|
||||
document.modulo.snmp_community.style.background="#fff";
|
||||
document.modulo.snmp_community.disabled=false;
|
||||
document.modulo.combo_snmp_oid.style.background="#fff";
|
||||
document.modulo.combo_snmp_oid.disabled=false;
|
||||
document.modulo.oid.disabled=false;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
if (document.modulo.tipo.value == 18) {
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
} else {
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
}
|
||||
// type 6-7 - ICMP
|
||||
if ((document.modulo.tipo.value == 6) || (document.modulo.tipo.value == 7)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.combo_snmp_oid.style.background="#ddd";
|
||||
document.modulo.combo_snmp_oid.disabled=true;
|
||||
document.modulo.oid.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#ddd";
|
||||
document.modulo.tcp_send.disabled=true;
|
||||
document.modulo.tcp_rcv.style.background="#ddd";
|
||||
document.modulo.tcp_rcv.disabled=true;
|
||||
document.modulo.tcp_port.style.background="#ddd";
|
||||
document.modulo.tcp_port.disabled=true;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#fff";
|
||||
document.modulo.modulo_max.disabled=false;
|
||||
document.modulo.modulo_min.style.background="#fff";
|
||||
document.modulo.modulo_min.disabled=false;
|
||||
}
|
||||
// type 8-11 - TCP
|
||||
if ((document.modulo.tipo.value > 7) && (document.modulo.tipo.value < 12)){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.combo_snmp_oid.style.background="#ddd";
|
||||
document.modulo.combo_snmp_oid.disabled=true;
|
||||
document.modulo.oid.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#fff";
|
||||
document.modulo.tcp_send.disabled=false;
|
||||
document.modulo.tcp_rcv.style.background="#fff";
|
||||
document.modulo.tcp_rcv.disabled=false;
|
||||
document.modulo.tcp_port.style.background="#fff";
|
||||
document.modulo.tcp_port.disabled=false;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
}
|
||||
|
||||
// type 12 - UDP
|
||||
if (document.modulo.tipo.value == 12){
|
||||
document.modulo.snmp_oid.style.background="#ddd";
|
||||
document.modulo.snmp_oid.disabled=true;
|
||||
document.modulo.snmp_community.style.background="#ddd";
|
||||
document.modulo.snmp_community.disabled=true;
|
||||
document.modulo.oid.disabled=true;
|
||||
document.modulo.tcp_send.style.background="#fff";
|
||||
document.modulo.tcp_send.disabled=false;
|
||||
document.modulo.tcp_rcv.style.background="#fff";
|
||||
document.modulo.tcp_rcv.disabled=false;
|
||||
document.modulo.tcp_port.style.background="#fff";
|
||||
document.modulo.tcp_port.disabled=false;
|
||||
document.modulo.ip_target.style.background="#fff";
|
||||
document.modulo.ip_target.disabled=false;
|
||||
document.modulo.modulo_max.style.background="#ddd";
|
||||
document.modulo.modulo_max.disabled=true;
|
||||
document.modulo.modulo_min.style.background="#ddd";
|
||||
document.modulo.modulo_min.disabled=true;
|
||||
}
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
|
||||
<?PHP
|
||||
|
||||
// Module visualization where in create mode
|
||||
// MODULE VISUALIZATION
|
||||
// ======================
|
||||
if ( $creacion_agente != 1) {
|
||||
$sql1='SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'"
|
||||
ORDER BY nombre';
|
||||
$result=mysql_query($sql1);
|
||||
if ($row=mysql_num_rows($result)){
|
||||
?>
|
||||
<h3><?php echo $lang_label["assigned_modules"]?>
|
||||
<a href='help/<?php echo $help_code ?>/chap3.php#321' target='_help' class='help'>
|
||||
<span><?php echo $lang_label["help"] ?></span></a></h3>
|
||||
<table width="700" cellpadding="3" cellspacing="3" class="fon">
|
||||
<tr>
|
||||
<th><?php echo $lang_label["module_name"]?>
|
||||
<th><?php echo $lang_label["type"]?>
|
||||
<th><?php echo $lang_label["interval"]?>
|
||||
<th><?php echo $lang_label["description"]?>
|
||||
<th><?php echo $lang_label["module_group"]?>
|
||||
<th><?php echo $lang_label["max_min"]?>
|
||||
<th width="50"><?php echo $lang_label["action"]?>
|
||||
<?php
|
||||
$color=1;
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
if ($color == 1){
|
||||
$tdcolor="datos";
|
||||
$color =0;
|
||||
} else {
|
||||
$tdcolor="datos2";
|
||||
$color =1;
|
||||
}
|
||||
$id_tipo = $row["id_tipo_modulo"];
|
||||
$nombre_modulo =$row["nombre"];
|
||||
$descripcion = $row["descripcion"];
|
||||
$module_max = $row["max"];
|
||||
$module_min = $row["min"];
|
||||
$module_interval2 = $row["module_interval"];
|
||||
$module_group2 = $row["id_module_group"];
|
||||
|
||||
echo "<tr><td class='".$tdcolor."_id'>".$nombre_modulo;
|
||||
echo "<td class='".$tdcolor."f9'>";
|
||||
if ($id_tipo > 0) {
|
||||
echo "<img src='images/".show_icon_type($id_tipo)."' border=0>";
|
||||
}
|
||||
if ($module_interval2!=0){
|
||||
echo "<td class='$tdcolor'>".$module_interval2;
|
||||
} else {
|
||||
echo "<td class='$tdcolor'> N/A";
|
||||
}
|
||||
|
||||
echo "<td class='$tdcolor' title='$descripcion'>".substr($descripcion,0,30)."</td>";
|
||||
echo "<td class='$tdcolor'>".
|
||||
substr(dame_nombre_grupomodulo($module_group2),0,15)."</td>";
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($module_max == $module_min) {
|
||||
$module_max = "N/A";
|
||||
$module_min = "N/A";
|
||||
}
|
||||
echo $module_max." / ".$module_min;
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($id_tipo != -1)
|
||||
echo "<a href='index.php?sec=gagente&
|
||||
sec2=godmode/agentes/configurar_agente&
|
||||
id_agente=".$id_agente."&
|
||||
delete_module=".$row["id_agente_modulo"]."'>
|
||||
<img src='images/cancel.gif' border=0 alt='".$lang_label["delete"]."'>
|
||||
</b></a> ";
|
||||
echo "<a href='index.php?sec=gagente&
|
||||
sec2=godmode/agentes/configurar_agente&
|
||||
id_agente=".$id_agente."&
|
||||
update_module=".$row["id_agente_modulo"]."#modules'>
|
||||
<img src='images/config.gif' border=0 alt='".$lang_label["update"]."' onLoad='type_change()'></b></a>";
|
||||
}
|
||||
echo "<tr><td colspan='7'><div class='raya'></div></td></tr>";
|
||||
} else
|
||||
echo "<div class='nf'>No modules</div>";
|
||||
}
|
||||
// ====================================================================================
|
||||
// Module Creation / Update form
|
||||
// ====================================================================================
|
||||
else {
|
||||
|
||||
echo '<form name="modulo" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'">';
|
||||
if ($update_module == "1"){
|
||||
echo '<input type="hidden" name="update_module" value=1>';
|
||||
echo '<input type="hidden" name="id_agente_modulo" value="'.$id_agente_modulo.'">';
|
||||
}
|
||||
else { // Create
|
||||
echo '<input type="hidden" name="insert_module" value=1>';
|
||||
// Default values for new modules
|
||||
if ($ip_target == ""){
|
||||
$ip_target = $direccion_agente;
|
||||
$snmp_community = "public";
|
||||
$module_interval = $intervalo;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<h3><?php echo $lang_label["module_asociation_form"] ?>
|
||||
<a href='help/<?php echo $help_code ?>/chap3.php#321' target='_help' class='help'>
|
||||
<span><?php echo $lang_label["help"] ?></span></a></h3>
|
||||
<a name="modules"> <!-- Don't Delete !! -->
|
||||
<table width="650" cellpadding="3" cellspacing="3" class="fon">
|
||||
<tr><td class='lb' rowspan='8' width='5'>
|
||||
<!-- Module type combobox -->
|
||||
<td class="datos"><?php echo $lang_label["module_type"] ?>
|
||||
<td class="datos">
|
||||
<?php
|
||||
if ($update_module == "1") {
|
||||
echo "<input type='hidden' name='tipo' value='".$modulo_id_tipo_modulo."'>";
|
||||
echo "<span class='redi'>".$lang_label["no_change_field"]."</span>";
|
||||
} else {
|
||||
echo '<select name="tipo" onChange="type_change()">';
|
||||
$sql1='SELECT id_tipo, nombre FROM ttipo_modulo ORDER BY nombre';
|
||||
$result=mysql_query($sql1);
|
||||
echo "<option>--</option>";
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_tipo"]."'>".$row["nombre"];
|
||||
}
|
||||
echo "</select>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
<!-- Module group selection -->
|
||||
<td class="datos"><?php echo $lang_label["module_group"] ?>
|
||||
<td class="datos">
|
||||
<?php
|
||||
echo '<select name="id_module_group">';
|
||||
if ($update_module == "1"){
|
||||
echo "<option value='".$id_module_group."'>".dame_nombre_grupomodulo($id_module_group);
|
||||
}
|
||||
$sql1='SELECT * FROM tmodule_group';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_mg"]."'>".$row["name"];
|
||||
}
|
||||
echo "</select>";
|
||||
?>
|
||||
</select>
|
||||
|
||||
<tr><td class="datos2"><?php echo $lang_label["module_name"] ?>
|
||||
<td class="datos2"><input type="text" name="nombre" size="20" value="<?php echo $modulo_nombre ?>">
|
||||
<td class="datos2"><?php echo $lang_label["module_interval"] ?><td class="datos2">
|
||||
<input type="text" name="module_interval" size="5" value="<?php echo $module_interval ?>">
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["ip_target"] ?>
|
||||
<td class="datos"><input type="text" name="ip_target" size="20" value="<?php echo $ip_target ?>">
|
||||
<td class="datos"><?php echo $lang_label["tcp_port"] ?>
|
||||
<td class="datos"><input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>">
|
||||
|
||||
<tr><td class="datos2"><?php echo $lang_label["snmp_oid"] ?>
|
||||
<td class="datos2"><input type="text" name="snmp_oid" size="15" value="<?php echo $snmp_oid ?>">
|
||||
<input type="submit" name="oid" value="Get Value">
|
||||
|
||||
<td class="datos2"><?php echo $lang_label["snmp_community"] ?>
|
||||
<td class="datos2"><input type="text" name="snmp_community" size="20" value="<?php echo $snmp_community ?>">
|
||||
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["snmp_oid"] ?>
|
||||
<td colspan=3 class="datos"><select name="combo_snmp_oid">
|
||||
<?php
|
||||
// FILL OID Combobox
|
||||
|
||||
|
||||
if (isset($_POST["oid"])){
|
||||
for (reset($snmpwalk); $i = key($snmpwalk); next($snmpwalk)) {
|
||||
// OJO, al indice tengo que restarle uno, el SNMP funciona con indices a partir de 0
|
||||
// y el cabron de PHP me devuelve indices a partir de 1 !!!!!!!
|
||||
//echo "$i: $a[$i]<br />\n";
|
||||
$snmp_output = substr($i,0,35)." - ".substr($snmpwalk[$i],0,20);
|
||||
echo "<option value=$i>".salida_limpia(substr($snmp_output,0,55));
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
<tr><td class="datos2t"><?php echo $lang_label["tcp_send"] ?>
|
||||
<td class="datos2"><textarea name="tcp_send" cols="17" rows="3"><?php echo $tcp_send ?></textarea>
|
||||
|
||||
<td class="datos2t"><?php echo $lang_label["tcp_rcv"] ?>
|
||||
<td class="datos2"><textarea name="tcp_rcv" cols="17" rows="3"><?php echo $tcp_rcv ?></textarea>
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["mindata"] ?>
|
||||
<td class="datos"><input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>">
|
||||
<td class="datos"><?php echo $lang_label["maxdata"] ?>
|
||||
<td class="datos"><input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>">
|
||||
|
||||
<tr><td class="datos2t"><?php echo $lang_label["comments"] ?>
|
||||
<td class="datos2" colspan=3>
|
||||
<textarea name="descripcion" cols=52 rows=2>
|
||||
<?php echo $modulo_descripcion ?>
|
||||
</textarea>
|
||||
<tr><td colspan='5'><div class='raya'></div></td></tr>
|
||||
<tr><td colspan="5" align="right">
|
||||
<?php
|
||||
if ($update_module == "1"){
|
||||
echo '<input name="updbutton" type="submit" class="sub" value="'.$lang_label["update"].'">';
|
||||
} else {
|
||||
echo '<input name="crtbutton" type="submit" class="sub" value="'.$lang_label["add"].'">';
|
||||
}
|
||||
echo "</form>";
|
||||
echo "<form method='post' action='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente=".$id_agente."'><input type='submit' class='sub' name='cancel' value='".$lang_label["cancel"]."'></form>";
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
|
@ -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>icas 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
|
||||
|
@ -23,7 +23,7 @@ if (comprueba_login() == 0){
|
|||
|
||||
?>
|
||||
|
||||
<div class="bg">
|
||||
<div class="bg3">
|
||||
<div class="imgl"><img src="images/upper-left-corner.gif" width="5" height="5" alt=""></div>
|
||||
<div class="tit">:: <?php echo $lang_label["godmode_header"] ?> ::</div>
|
||||
<div class="imgr"><img src="images/upper-right-corner.gif" width="5" height="5" alt=""></div>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 49 B |
Binary file not shown.
After Width: | Height: | Size: 49 B |
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
// Pandora FMS - the Free monitoring system
|
||||
// ========================================
|
||||
// Copyright (c) 2004-2007 Sancho Lerena, slerena@openideas.info
|
||||
|
@ -21,7 +20,7 @@
|
|||
// This is the base config file
|
||||
|
||||
//Pandora Version
|
||||
$build_version="PC080105"; //PCyymmdd
|
||||
$build_version="PC070224"; //PCyymmdd
|
||||
$pandora_version="v1.3 devel";
|
||||
|
||||
// Database configuration (default ones)
|
||||
|
|
|
@ -9,6 +9,12 @@
|
|||
border-bottom: 1px solid #d4d4d4;
|
||||
border-top: 1px solid #ffffff;
|
||||
}
|
||||
div#menug {
|
||||
background-color: #f5f5dc;
|
||||
border: 1px solid #dAdBdC;
|
||||
width: 155px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
#god1 li, #god2 li, #god3 li, #god4 li, #god5 li, #god6 li, #god7 li, #god8 li, #god1s li,
|
||||
#god2s li, #god3s li, #god4s li, #god5s li, #god6s li, #god7s li, #god8s li {
|
||||
padding: 0px 0px 0px 30px;
|
||||
|
@ -50,12 +56,6 @@ div.arrowg>ul, div.arrowgs>ul {
|
|||
margin-left: 26px;
|
||||
padding: 0px 0px 0px 14px;
|
||||
}
|
||||
div#menug {
|
||||
background-color: #f5f5dc;
|
||||
border: 1px solid #4a6629;
|
||||
width: 155px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
#god a:hover,
|
||||
#god1 li:hover, #god1s li, #god2 li:hover, #god2s li, #god3 li:hover, #god3s li,
|
||||
#god4 li:hover, #god4s li, #god5 li:hover, #god5s li, #god6 li:hover, #god6s li,
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
display: block;
|
||||
color: #000;
|
||||
}
|
||||
div#menul {
|
||||
background-color: #e9f3d2;
|
||||
border: 1px solid #dAdBdC;
|
||||
width: 155px;
|
||||
}
|
||||
div.linkli>ul {
|
||||
width: 133px;
|
||||
}
|
||||
|
@ -17,8 +22,3 @@ div.linkli>ul {
|
|||
#link a:hover, .linkli li:hover {
|
||||
background-color: #cde0ad;
|
||||
}
|
||||
div#menul {
|
||||
background-color: #e9f3d2;
|
||||
border: 1px solid #4a6629;
|
||||
width: 155px;
|
||||
}
|
|
@ -9,6 +9,13 @@
|
|||
border-bottom: 1px solid #d4d4d4;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
div#menuop {
|
||||
background-color: #e6e9cd;
|
||||
border: 1px solid #dAdBdC;
|
||||
/* border: 1px solid #4a6629; */
|
||||
width: 155px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
#op1 li, #op2 li, #op3 li, #op4 li, #op5 li, #op6 li, #op7 li, #op8 li, #op9 li,
|
||||
#op1s li, #op2s li, #op3s li, #op4s li, #op5s li, #op6s li, #op7s li, #op8s li, #op9s li {
|
||||
padding: 0px 0px 0px 28px;
|
||||
|
@ -53,12 +60,7 @@ div.arrow>ul, div.arrows>ul {
|
|||
margin-left: 26px;
|
||||
padding: 0px 0px 0px 14px;
|
||||
}
|
||||
div#menuop {
|
||||
background-color: #e6e9cd;
|
||||
border: 1px solid #4a6629;
|
||||
width: 155px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#op a:hover ,
|
||||
#op1 li:hover, #op1s li , #op2 li:hover, #op2s li , #op3 li:hover, #op3s li ,
|
||||
#op4 li:hover, #op4s li , #op5 li:hover, #op5s li , #op6 li:hover, #op6s li ,
|
||||
|
|
|
@ -136,14 +136,7 @@ div#db_ftxt {
|
|||
#page {
|
||||
width: 960px;
|
||||
}
|
||||
#head {
|
||||
border-bottom: 1px solid #708090;
|
||||
text-align: right;
|
||||
padding-bottom: 10px;
|
||||
font-size: 10px;
|
||||
width: 100%;
|
||||
margin-bottom: 27px;
|
||||
}
|
||||
|
||||
#main {
|
||||
width: 780px;
|
||||
float: right;
|
||||
|
@ -153,11 +146,7 @@ div#db_ftxt {
|
|||
width: 155px;
|
||||
float: left;
|
||||
}
|
||||
#foot {
|
||||
padding-top: 25px;
|
||||
text-align: center;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div#page>div#menu {
|
||||
width: 157px;
|
||||
}
|
||||
|
@ -215,19 +204,17 @@ td.lb {
|
|||
font-weight: bold;
|
||||
}
|
||||
td.datos, td.datost, td.datosb, td.datos_id, td.datosf9,
|
||||
td.datosf9i, td.datos_jus {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
td.w90datos, td.w135datos, td.w230datos {
|
||||
background-color: #f5f5f5;
|
||||
td.datosf9i, td.datos_jus, td.w90datos, td.w135datos {
|
||||
/* background-color: #f5f5f5; */
|
||||
background-color: #F9F9F9;
|
||||
}
|
||||
|
||||
td.datos2, td.datos2t, td.datos2b, td.datos2_id, td.datos2f9,
|
||||
td.datos2f9i, td.datos2_jus {
|
||||
background-color: #fafbfc;
|
||||
}
|
||||
td.w90datos2, td.w135datos2, td.w230datos2 {
|
||||
background-color: #fafbfc;
|
||||
td.datos2f9i, td.datos2_jus, td.w90datos2, td.w135datos2 {
|
||||
/* background-color: #fafbfc; */
|
||||
background-color: #e6e9cd;
|
||||
}
|
||||
|
||||
td.datos3 {
|
||||
background-color: #e6e9cd;
|
||||
}
|
||||
|
@ -237,14 +224,25 @@ td.datos_id {
|
|||
td.datos_jus, td.datos2_jus {
|
||||
text-align: justify;
|
||||
}
|
||||
.bg , .bgt {
|
||||
.bg , .bgt { /* op menu */
|
||||
background-color: #4a6629;
|
||||
}
|
||||
.bg {
|
||||
.bg2 { /* main page */
|
||||
background-color: #D84437;
|
||||
}
|
||||
.bg3 { /* godmode */
|
||||
background-color: #D84437;
|
||||
}
|
||||
.bg4 { /* links */
|
||||
background-color: #D8C4C4;
|
||||
}
|
||||
|
||||
.bg, .bg2, .bg3, .bg4 {
|
||||
position: relative;
|
||||
height: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.f10, .w155f10, #ip {
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
|
@ -369,9 +367,6 @@ td.datosf9i, td.datos2f9i {
|
|||
.w200 {
|
||||
width: 200px;
|
||||
}
|
||||
.w230datos, .w230datos2 {
|
||||
width: 230px;
|
||||
}
|
||||
.w255 {
|
||||
width: 255px;
|
||||
}
|
||||
|
@ -419,7 +414,7 @@ div.imgr>img {
|
|||
div.nf {
|
||||
background: url(../../images/info.gif) no-repeat;
|
||||
color: #9a2f0a;
|
||||
margin-left: 7px;
|
||||
margin-left: 7px;
|
||||
padding: 2px 1px 6px 25px;
|
||||
}
|
||||
div#wizard {
|
||||
|
@ -443,15 +438,69 @@ div#install_box {
|
|||
width: 350px;
|
||||
}
|
||||
|
||||
div#data_box {
|
||||
float: right;
|
||||
padding-right: 20px;
|
||||
margin-top: 10px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #999999;
|
||||
width: 700px;
|
||||
margin-top: 3em;
|
||||
div.title_line {
|
||||
background-color: #4E682C;
|
||||
height: 5px;
|
||||
width: 762px;
|
||||
}
|
||||
|
||||
div.data_box {
|
||||
border-top: 5px solid #4E682C;
|
||||
padding-left: 10px;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 20px;
|
||||
margin-bottom: 25px;
|
||||
background-color: #fefefe;
|
||||
/* border: 1px solid #dAdBdC; */
|
||||
width: 800px;
|
||||
float: left;
|
||||
margin-top: 0px;
|
||||
margin-left: -5px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
#menu_tab .mn, #menu_tab ul, #menu_tab .mn ul
|
||||
{
|
||||
padding: 0px;
|
||||
list-style: none;
|
||||
margin: 0px;
|
||||
}
|
||||
#menu_tab .mn li
|
||||
{
|
||||
float: right;
|
||||
position: relative;
|
||||
}
|
||||
#menu_tab li a, #menu_tab li.nomn a
|
||||
{
|
||||
background: #db6351;
|
||||
padding: 1px 9px 1px 9px;
|
||||
color: #fff;
|
||||
border: 1px solid #E01A1E;
|
||||
font-weight: bold;
|
||||
line-height: 17px;
|
||||
}
|
||||
|
||||
#menu_tab .mn li a
|
||||
{
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#menu_tab li.nomn:hover a,
|
||||
#menu_tab li:hover ul a:hover
|
||||
{
|
||||
background: #b2b08a;
|
||||
}
|
||||
#menu_tab li:hover a
|
||||
{
|
||||
background: #b2b08a url("../images/arrow.gif") no-repeat right 3px;
|
||||
}
|
||||
#menu_tab li:hover ul a, #menu_tab .mn ul
|
||||
{
|
||||
background: #db6351;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
span.users {
|
||||
background: url(../../images/usuarios.gif) no-repeat;
|
||||
}
|
||||
|
|
|
@ -163,36 +163,58 @@ if (isset ($_GET["refr"])){
|
|||
logoff_db ($iduser, $REMOTE_ADDR);
|
||||
session_unregister ("id_usuario");
|
||||
}
|
||||
$pagina = "";
|
||||
if (isset ($_GET["sec"])){
|
||||
$sec = parametro_limpio ($_GET["sec"]);
|
||||
$pagina = $sec2;
|
||||
}
|
||||
else
|
||||
$sec = "";
|
||||
|
||||
if (isset ($_GET["sec2"])){
|
||||
$sec2 = parametro_limpio ($_GET["sec2"]);
|
||||
$pagina = $sec2;
|
||||
} else
|
||||
$sec2 = "";
|
||||
|
||||
|
||||
?>
|
||||
<div id="page">
|
||||
<div id="menu"><?php require ("general/main_menu.php"); ?></div>
|
||||
<div id="main">
|
||||
<div id='head'><?php require("general/header.php"); ?></div>
|
||||
<?php
|
||||
if (isset ($_GET["sec2"])) {
|
||||
$pagina = parametro_limpio ($_GET["sec2"]);
|
||||
|
||||
if ($pagina <> "") {
|
||||
if (file_exists ($pagina . ".php")) {
|
||||
require ($pagina . ".php");
|
||||
} else {
|
||||
echo "<br><b class='error'>Sorry! I can't find the page!</b>";
|
||||
}
|
||||
}
|
||||
} elseif (isset ($_GET["sec"])) {
|
||||
$pagina = parametro_limpio ($_GET["sec"]);
|
||||
|
||||
|
||||
<div class='data_box' style='padding-right:0px; height:74px; text-align:right;'>
|
||||
<!-- solapita -->
|
||||
<div style='color: #ffffff; background-color: #4E682C; line-height: 18px; width:120px; float: right; margin-left: 0px; margin-right:0px; padding-right: 10px; padding-left: 10px; '>
|
||||
Pandora FMS Header
|
||||
</div>
|
||||
<p align='left'>
|
||||
<?php require("general/header.php"); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Title tab -->
|
||||
|
||||
<div class='data_box'>
|
||||
|
||||
<?php
|
||||
// Page loader / selector
|
||||
if ($pagina != ""){
|
||||
if (file_exists ($pagina . ".php")) {
|
||||
require ($pagina . ".php");
|
||||
} else {
|
||||
echo "<br><b class='error'>Sorry! I can't find the page!</b>";
|
||||
}
|
||||
} else {
|
||||
}
|
||||
} elseif (isset ($_GET["sec"])) {
|
||||
require ("general/logon_ok.php"); //default
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="data_box"><?php require("general/footer.php") ?></div>
|
||||
|
||||
</div>
|
||||
<div id="foot"><?php require("general/footer.php") ?></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -50,8 +50,7 @@ if (comprueba_login() == 0) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "<h2>".$lang_label["ag_title"]."</h2>";
|
||||
echo "<h3>".$lang_label["view_agent_general_data"]."<a href='help/".$help_code."/chap3.php#3321' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
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 '<table cellspacing="3" cellpadding="3" width="750">';
|
||||
echo '<tr>
|
||||
<td class="datos"><b>'.$lang_label["agent_name"].'</b></td>
|
||||
|
|
|
@ -49,26 +49,34 @@ if (comprueba_login() == 0) {
|
|||
$tab = $_GET["tab"];
|
||||
else
|
||||
$tab = "main";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente'>Main</A> - ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data'>Data</A> - ";
|
||||
|
||||
echo "
|
||||
<div id='menu_tab'>
|
||||
<ul class='mn'>
|
||||
<li class='nomn'>";
|
||||
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente'>Main</a>";
|
||||
echo "</li>";
|
||||
echo "<li class='nomn'>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data'>Data</a>";
|
||||
echo "</li>";
|
||||
echo "<li class='nomn'>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=alert'>Alerts</A>";
|
||||
echo "<div class='data_box'>";
|
||||
echo "</li>";
|
||||
echo "</ul>";
|
||||
echo "</div>";
|
||||
|
||||
switch ($tab) {
|
||||
case "main":
|
||||
echo "<h3>Main view</h3></p>";
|
||||
require "estado_generalagente.php";
|
||||
case "main": require "estado_generalagente.php";
|
||||
echo "<br>";
|
||||
//require "estado_monitores.php";
|
||||
|
||||
break;
|
||||
case "data": echo "<h3>Monitors</h3>";
|
||||
require "estado_ultimopaquete.php";
|
||||
case "data": require "estado_ultimopaquete.php";
|
||||
break;
|
||||
case "alert": echo "<h3>Alerts</h3>";
|
||||
require "estado_alertas.php";
|
||||
case "alert": require "estado_alertas.php";
|
||||
break;
|
||||
}
|
||||
echo "</div>";
|
||||
} else {
|
||||
audit_db($id_usuario,$REMOTE_ADDR, "ACL Violation","Trying to read data from agent ".dame_nombre_agente($id_agente));
|
||||
require ("general/noaccess.php");
|
||||
|
|
|
@ -168,15 +168,22 @@ else {
|
|||
echo "<tr>";
|
||||
if ($row3["estado"]==1) echo "<td align='center' class='$tdcolor'><img src='images/read.gif' border=0></td>";
|
||||
else echo "<td align='center' class='$tdcolor'><img src='images/unread.gif' border=0></td>";
|
||||
echo "<td class='$tdcolor'><b><a href=index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$row3["id_usuario_origen"].">".$row3["id_usuario_origen"]."</b></td><td class='w230".$tdcolor."'><a href='index.php?sec=messages&sec2=operation/messages/message&leer=1&id_mensaje=".$row3["id_mensaje"]."'>";
|
||||
if ($row3["subject"]) echo $row3["subject"]."</a>";
|
||||
else echo "<i>".$lang_label["no_subject"]."</i></a>";
|
||||
echo "</a></td><td class='w135".$tdcolor."'>".$row3["timestamp"]."</td>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=messages&sec2=operation/messages/message&borrar=1&id_mensaje=".$row3["id_mensaje"]."'><img src='images/delete.gif' border='0'></a></td></tr>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
echo "<b><a href=index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$row3["id_usuario_origen"].">".$row3["id_usuario_origen"]."</b></td><td class='".$tdcolor."'><a href='index.php?sec=messages&sec2=operation/messages/message&leer=1&id_mensaje=".$row3["id_mensaje"]."'>";
|
||||
|
||||
if ($row3["subject"])
|
||||
echo $row3["subject"]."</a>";
|
||||
else
|
||||
echo "<i>".$lang_label["no_subject"]."</i></a>";
|
||||
|
||||
echo "</a></td><td class='".$tdcolor."'>".$row3["timestamp"]."</td>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=messages&sec2=operation/messages/message&borrar=1&id_mensaje=".$row3["id_mensaje"]."'><img src='images/cancel.gif' border='0'></a></td></tr>";
|
||||
}
|
||||
echo "<tr><td colspan='5'><div class='raya'></div></td></tr>";
|
||||
}
|
||||
else echo "<div class='nf'>".$lang_label["no_messages"]."</div><table>"; //no messages
|
||||
else
|
||||
echo "<div class='nf'>".$lang_label["no_messages"]."</div><table>"; //no messages
|
||||
|
||||
//read mess
|
||||
if (isset($_GET["leer"])){
|
||||
|
@ -189,7 +196,7 @@ else {
|
|||
echo '
|
||||
<table>
|
||||
<form method="post" name="reply_mes" action="index.php?sec=messages&sec2=operation/messages/message&nuevo">
|
||||
<tr><td></td></tr><tr><td class="w90datos">'.$lang_label["from"].':</td><td class="datos"><b>'.$row4["id_usuario_origen"].'</b></td></tr>
|
||||
<tr><td></td></tr><tr><td class="datos">'.$lang_label["from"].':</td><td class="datos"><b>'.$row4["id_usuario_origen"].'</b></td></tr>
|
||||
<tr><td class="datos2">'.$lang_label["subject"].':</td><td class="datos2"><b>'.$row4["subject"].'</b></td></tr>
|
||||
<tr><td class="datos" colspan="2">'.$lang_label["message"].':</td>
|
||||
<tr><td class="datos2" colspan="2"><textarea name="mensaje" rows="10" class="w540" readonly>'.$row4["mensaje"].'</textarea></td></tr>
|
||||
|
|
Loading…
Reference in New Issue