2007-05-01 Raul Mateos <raulofpandora@gmail.com>
* images/bricks.png: Changed red colour to orange one. * include/pandora.css: Changed background colour for View Mode tab. * operation/agentes/estado_agente.php: Changed space between combo and table, including the style into the table, deleting div. * operation/agentes/estado_grupo.php: Style correction. * operation/messages/message.php: Added style to some table cells. * pandoradb.sql, pandoradb_data.sql: Added column disable to table tgrupo and default value 0. * operation/snmpconsole/snmp_alert.php: Deleted duplicated br tag. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@446 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d794b130ea
commit
3a477467d3
|
@ -1,3 +1,21 @@
|
|||
2007-05-01 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* images/bricks.png: Changed red colour to orange one.
|
||||
|
||||
* include/pandora.css: Changed background colour for View Mode tab.
|
||||
|
||||
* operation/agentes/estado_agente.php: Changed space between combo and
|
||||
table, including the style into the table, deleting div.
|
||||
|
||||
* operation/agentes/estado_grupo.php: Style correction.
|
||||
|
||||
* operation/messages/message.php: Added style to some table cells.
|
||||
|
||||
* pandoradb.sql, pandoradb_data.sql: Added column disable to table tgrupo
|
||||
and default value 0.
|
||||
|
||||
* operation/snmpconsole/snmp_alert.php: Deleted duplicated br tag.
|
||||
|
||||
2007-04-29 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* images/recon.png: Renamed file from chart_organization.png
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 836 B |
Binary file not shown.
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 836 B |
|
@ -529,7 +529,7 @@ div.data_box {
|
|||
}
|
||||
#menu_tab_left li a, #menu_tab_left li.nomn a
|
||||
{
|
||||
background: #999;
|
||||
background: #ac4444;
|
||||
padding: 2px 10px 2px 10px;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
|
|
|
@ -104,15 +104,13 @@ if (comprueba_login() == 0) {
|
|||
$result2=mysql_query($sql2);
|
||||
$row2=mysql_fetch_array($result2);
|
||||
$total_events = $row2[0];
|
||||
echo "<div style='height: 10px'> </div>";
|
||||
// Prepare pagination
|
||||
|
||||
pagination ($total_events, "index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=$group_id&refr=60", $offset);
|
||||
// Show data.
|
||||
echo "<div style='height: 20px'> </div>";
|
||||
$result=mysql_query($sql);
|
||||
if (mysql_num_rows($result)){
|
||||
echo "<table cellpadding='3' cellspacing='3' width='700'>";
|
||||
echo "<table cellpadding='3' cellspacing='3' width='700' style='margin-top: 10px'>";
|
||||
echo "<th>".$lang_label["agent"]."</th>";
|
||||
echo "<th>".$lang_label["os"]."</th>";
|
||||
echo "<th>".$lang_label["interval"]."</th>";
|
||||
|
|
|
@ -162,18 +162,19 @@
|
|||
|
||||
// Show red flag is group has disabled alert system
|
||||
if (give_disabled_group($grupo[$real_count]["id_grupo"]) == 1)
|
||||
$icono_type = $icono_type." <img src='images/flag_red.png' alt='".$lang_label["disabled"]."'>";
|
||||
$icono_type = $icono_type."
|
||||
<img src='images/flag_red.png' alt='".$lang_label["disabled"]."'>";
|
||||
|
||||
// By default green border
|
||||
$celda = "<td class='top' style='border: 3px solid #AEFF21;' width='100'>";
|
||||
$celda = "<td class='top' style='border: 3px solid #aeff21;' width='100'>";
|
||||
|
||||
// Grey border if agent down
|
||||
if ($grupo[$real_count]["down"] > 0)
|
||||
$celda = "<td class='top' style='border: 3px solid #AABBAA;' width='100'>";
|
||||
$celda = "<td class='top' style='border: 3px solid #aabbaa;' width='100'>";
|
||||
|
||||
// Yellow border if agents with alerts
|
||||
if ($grupo[$real_count]["alerts"] > 0)
|
||||
$celda = "<td class='top' style='border: 3px solid #FFEA00;' width='100'>";
|
||||
$celda = "<td class='top' style='border: 3px solid #ffea00;' width='100'>";
|
||||
|
||||
// Red border if agents bad
|
||||
if ($grupo[$real_count]["bad"] > 0)
|
||||
|
@ -181,7 +182,7 @@
|
|||
|
||||
// Orange if alerts and down modules
|
||||
if (($grupo[$real_count]["bad"] > 0) && ($grupo[$real_count]["alerts"] > 0))
|
||||
$celda = "<td class='top' style='border: 3px solid #FFBB00;' width='100'>";
|
||||
$celda = "<td class='top' style='border: 3px solid #ffbb00;' width='100'>";
|
||||
|
||||
|
||||
$celda .= "<a href='index.php?sec=estado&
|
||||
|
|
|
@ -87,7 +87,7 @@ if (isset($_GET["nuevo"]) || isset($_GET["nuevo_g"])){
|
|||
<form name="new_mes" method="POST" action="index.php?sec=messages&sec2=operation/messages/message&nuevo_mensaje=1">
|
||||
<table>
|
||||
<tr><td class="datos">'.$lang_label["m_from"].':</td><td class="datos"><b>'.$iduser.'</b></td></tr>
|
||||
<tr><td class="datos2">'.$lang_label["m_to"].':</td><td>';
|
||||
<tr><td class="datos2">'.$lang_label["m_to"].':</td><td class="datos2">';
|
||||
if (isset($_POST["u_destino"])) {
|
||||
echo '<b>'.$_POST["u_destino"].'</b><input type="hidden" name="u_destino" value='.$_POST["u_destino"].'>';
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ if (isset($_GET["nuevo"]) || isset($_GET["nuevo_g"])){
|
|||
}
|
||||
else echo '<input name="subject" width="255px">';
|
||||
echo '</td></tr>
|
||||
<tr><td class="datos2">'.$lang_label["message"].':</td></tr>
|
||||
<tr><td class="datos2" colspan="2">'.$lang_label["message"].':</td></tr>
|
||||
<tr><td class="datos" colspan="4"><textarea name="mensaje" rows="10" width="540px">';
|
||||
if (isset($_POST["mensaje"])) {
|
||||
echo $_POST["mensaje"];
|
||||
|
|
|
@ -296,10 +296,10 @@ if (give_acl($id_user, 0, "LW")==1) {
|
|||
echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert">';
|
||||
echo '<input name="add_alert" type="submit" class="sub next" value="'.$lang_label["create"].'">';
|
||||
echo "</form>";
|
||||
echo "</table>";
|
||||
echo "</td></tr></table>";
|
||||
} else {
|
||||
echo "<div class='nf'>".$lang_label["no_snmp_alert"]."</div>";
|
||||
echo "<br><br>";
|
||||
echo "<br>";
|
||||
echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert">';
|
||||
echo '<input name="add_alert" type="submit" class="sub next" value="'.$lang_label["create"].'">';
|
||||
echo "</form>";
|
||||
|
|
|
@ -290,6 +290,7 @@ CREATE TABLE `tgrupo` (
|
|||
`nombre` varchar(100) NOT NULL default '',
|
||||
`icon` varchar(50) default NULL,
|
||||
`parent` tinyint(4) NOT NULL default '-1',
|
||||
`disabled` varchar(1) NOT NULL default '0',
|
||||
PRIMARY KEY (`id_grupo`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
|
|
@ -36,15 +36,15 @@ UNLOCK TABLES;
|
|||
--
|
||||
|
||||
LOCK TABLES `tgrupo` WRITE;
|
||||
INSERT INTO `tgrupo` VALUES (1,'All','world',0);
|
||||
INSERT INTO `tgrupo` VALUES (2,'Servers','server_database',0);
|
||||
INSERT INTO `tgrupo` VALUES (3,'IDS','eye',0);
|
||||
INSERT INTO `tgrupo` VALUES (4,'Firewalls','firewall',0);
|
||||
INSERT INTO `tgrupo` VALUES (8,'Databases','database_gear',0);
|
||||
INSERT INTO `tgrupo` VALUES (9,'Comms','transmit',0);
|
||||
INSERT INTO `tgrupo` VALUES (10,'Others','house',0);
|
||||
INSERT INTO `tgrupo` VALUES (11,'Workstations','computer',0);
|
||||
INSERT INTO `tgrupo` VALUES (12,'Applications','bricks',0);
|
||||
INSERT INTO `tgrupo` VALUES (1,'All','world',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (2,'Servers','server_database',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (3,'IDS','eye',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (4,'Firewalls','firewall',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (8,'Databases','database_gear',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (9,'Comms','transmit',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (10,'Others','house',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (11,'Workstations','computer',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (12,'Applications','bricks',0,0);
|
||||
UNLOCK TABLES;
|
||||
/*!40000 ALTER TABLE `tgrupo` ENABLE KEYS */;
|
||||
|
||||
|
|
Loading…
Reference in New Issue