mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2006-12-07 Raul Mateos <raulofpandora@gmail.com>
* include/config.php: Changed build * operation/snmp/*: Close some HTML tags. Changed style for not found items. * operation/servers/view_server.php: Close some HTML tags. Changed style for not found items. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1ac50ce67f
commit
bd5300cd1b
@ -1,3 +1,13 @@
|
||||
2006-12-07 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* include/config.php: Changed build
|
||||
|
||||
* operation/snmp/*: Close some HTML tags. Changed style
|
||||
for not found items.
|
||||
|
||||
* operation/servers/view_server.php: Close some HTML tags. Changed style
|
||||
for not found items.
|
||||
|
||||
2006-12-04 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* help/[en|es]/images/servers1.png, servers2.png: New files.
|
||||
|
@ -20,8 +20,8 @@
|
||||
// This is the base config file
|
||||
|
||||
//Pandora Version
|
||||
$build_version="PC061004"; //PCyymmdd
|
||||
$pandora_version="v1.2 Beta 3";
|
||||
$build_version="PC061207"; //PCyymmdd
|
||||
$pandora_version="v1.3 Beta 1";
|
||||
|
||||
// Database configuration
|
||||
$dbname="pandora"; // MySQL DataBase
|
||||
@ -39,7 +39,8 @@ $config_fontpath = "../reporting/FreeSans.ttf"; // Change this to your font fold
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// Read rest of config from DB
|
||||
if (! mysql_pconnect($dbhost,$dbuser,$dbpassword)){ //Persistent connection. If you want non-persistent conn change it to mysql_connect()
|
||||
if (! mysql_connect($dbhost,$dbuser,$dbpassword)){
|
||||
//Non-persistent connection. If you want persistent conn change it to mysql_pconnect()
|
||||
exit ('<html><head><title>Pandora Error</title>
|
||||
<link rel="stylesheet" href="./include/styles/pandora.css" type="text/css">
|
||||
</head><body><div align="center">
|
||||
|
@ -31,18 +31,18 @@ if (comprueba_login() == 0) {
|
||||
// Connect DataBase
|
||||
$result=mysql_query($sql);
|
||||
if (mysql_num_rows($result)){
|
||||
echo "<table cellpadding='3' cellspacing='3' witdh=550>";
|
||||
echo "<tr><th class='datos'>".$lang_label["name"];
|
||||
echo "<th class='datos'>".$lang_label['status'];
|
||||
echo "<th class='datos'>".$lang_label['ip_address'];
|
||||
echo "<th class='datos'>".$lang_label['description'];
|
||||
echo "<th class='datos'>".$lang_label['network'];
|
||||
echo "<th class='datos'>".$lang_label['data'];
|
||||
echo "<th class='datos'>".$lang_label['snmp'];
|
||||
echo "<th class='datos'>".$lang_label['master'];
|
||||
echo "<th class='datos'>".$lang_label['checksum'];
|
||||
echo "<th class='datos'>".$lang_label['laststart'];
|
||||
echo "<th class='datos'>".$lang_label['lastupdate'];
|
||||
echo "<table cellpadding='3' cellspacing='3' witdh=550>";
|
||||
echo "<tr><th class='datos'>".$lang_label["name"]."</th>";
|
||||
echo "<th class='datos'>".$lang_label['status']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['ip_address']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['description']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['network'."</th>"];
|
||||
echo "<th class='datos'>".$lang_label['data']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['snmp']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['master']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['checksum']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['laststart']."</th>";
|
||||
echo "<th class='datos'>".$lang_label['lastupdate']."</th>";
|
||||
$color=1;
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
if ($color == 1){
|
||||
@ -96,18 +96,19 @@ if (comprueba_login() == 0) {
|
||||
if ($checksum == 1){
|
||||
echo "<img src='images/binary.gif'>";
|
||||
}
|
||||
echo "<td class='".$tdcolor."f9' align='middle'>".substr($laststart,0,25);
|
||||
echo "<td class='".$tdcolor."f9' align='middle'>".substr($keepalive,0,25);
|
||||
echo "<td class='".$tdcolor."f9' align='middle'>"
|
||||
.substr($laststart,0,25)."</td>";
|
||||
echo "<td class='".$tdcolor."f9' align='middle'>"
|
||||
.substr($keepalive,0,25)."</td>";
|
||||
}
|
||||
echo '<tr><td colspan="11"><div class="raya"></div></td></tr></table>';
|
||||
}
|
||||
else {
|
||||
echo '<font class="red">'.$lang_label["no_server"].'</font>';
|
||||
echo '<tr><td colspan="11"><div class="raya"></div></td></tr></table>';
|
||||
} else {
|
||||
echo "<div class='nf'>".$lang_label["no_server"]."</div>";
|
||||
}
|
||||
|
||||
} else {
|
||||
} else {
|
||||
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Agent view");
|
||||
require ("general/noaccess.php");
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
@ -206,16 +206,16 @@ if (give_acl($id_user, 0, "LW")==1) {
|
||||
echo '<h3>'.$lang_label["snmp_assigned_alerts"]."<a href='help/".$help_code."/chap4.php#341' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
if (mysql_num_rows($result)){
|
||||
|
||||
echo '<table cellpadding="3" cellspacing="3" width="750" class="fon" border=0>';
|
||||
echo '<tr><th>'.$lang_label["alert"];
|
||||
echo '<th width=75>'.$lang_label["alert_type"];
|
||||
echo '<th>'.$lang_label["SNMP_agent"];
|
||||
echo '<th>'.$lang_label["OID"];
|
||||
echo '<th>'.$lang_label["customvalue"];
|
||||
echo '<th>'.$lang_label["description"];
|
||||
echo '<th>'.$lang_label["times_fired"];
|
||||
echo '<th>'.$lang_label["last_fired"];
|
||||
echo '<th width="50">'.$lang_label["action"];
|
||||
echo '<table cellpadding="3" cellspacing="3" width="750">';
|
||||
echo '<tr><th>'.$lang_label["alert"]."</th>";
|
||||
echo '<th width=75>'.$lang_label["alert_type"]."</th>";
|
||||
echo '<th>'.$lang_label["SNMP_agent"]."</th>";
|
||||
echo '<th>'.$lang_label["OID"]."</th>";
|
||||
echo '<th>'.$lang_label["customvalue"]."</th>";
|
||||
echo '<th>'.$lang_label["description"]."</th>";
|
||||
echo '<th>'.$lang_label["times_fired"]."</th>";
|
||||
echo '<th>'.$lang_label["last_fired"]."</th>";
|
||||
echo '<th width="50">'.$lang_label["action"]."</th>";
|
||||
$color=1;
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
if ($color == 1){
|
||||
@ -298,7 +298,7 @@ if (give_acl($id_user, 0, "LW")==1) {
|
||||
echo "</form>";
|
||||
echo "</table>";
|
||||
} else {
|
||||
echo '<font class="red">'.$lang_label["no_snmp_alert"].'</font>';
|
||||
echo "<div class='nf'>".$lang_label["no_snmp_alert"]."</div>";
|
||||
echo "<br><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" value="'.$lang_label["create"].'">';
|
||||
|
@ -188,16 +188,16 @@ if (comprueba_login() == 0) {
|
||||
$offset=0;
|
||||
}
|
||||
echo "<br>";
|
||||
echo "<table border=0 cellpadding='3' cellspacing='3' width='750'>";
|
||||
echo "<table cellpadding='3' cellspacing='3' width='750'>";
|
||||
echo "<tr>";
|
||||
echo "<th>".$lang_label["status"];
|
||||
echo "<th>".$lang_label["OID"];
|
||||
echo "<th>".$lang_label["SNMP_agent"];
|
||||
echo "<th>".$lang_label["customvalue"];
|
||||
echo "<th>".$lang_label["id_user"];
|
||||
echo "<th class='w130'>".$lang_label["timestamp"];
|
||||
echo "<th>".$lang_label["alert"];
|
||||
echo "<th>".$lang_label["action"];
|
||||
echo "<th>".$lang_label["status"]."</th>";
|
||||
echo "<th>".$lang_label["OID"]."</th>";
|
||||
echo "<th>".$lang_label["SNMP_agent"]."</th>";
|
||||
echo "<th>".$lang_label["customvalue"]."</th>";
|
||||
echo "<th>".$lang_label["id_user"]."</th>";
|
||||
echo "<th class='w130'>".$lang_label["timestamp"]."</th>";
|
||||
echo "<th>".$lang_label["alert"]."</th>";
|
||||
echo "<th>".$lang_label["action"]."</th>";
|
||||
echo "<th class='p10'>";
|
||||
echo "<label for='checkbox' class='p21'>".$lang_label["all"]." </label>";
|
||||
echo '<input type="checkbox" class="chk" name="allbox" onclick="CheckAll();"></th>';
|
||||
@ -227,17 +227,19 @@ if (comprueba_login() == 0) {
|
||||
$sql="SELECT * FROM tagente WHERE direccion = '".$row["source"]."'";
|
||||
$result2=mysql_query($sql); // If there's any agent with this IP we show name and link to agent
|
||||
if ($row2=mysql_fetch_array($result2)){
|
||||
echo "<td class='datos'><a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row2["id_agente"]."'><b>".dame_nombre_agente($row2["id_agente"])."</b></a>";
|
||||
echo "<td class='datos'>
|
||||
<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row2["id_agente"]."'>
|
||||
<b>".dame_nombre_agente($row2["id_agente"])."</b></a></td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class='datos'>".$row["source"];
|
||||
echo "<td class='datos'>".$row["source"]."</td>";
|
||||
}
|
||||
echo "<td class='datos'>".$row["value_custom"];
|
||||
echo "<td class='datos'>".$row["value_custom"]."</td>";
|
||||
|
||||
echo "<td class='datos'>";
|
||||
if ($row["status"] <> 0)
|
||||
echo "<a href='index.php?sec=usuario&sec2=operation/users/user_edit&ver=".$row["id_usuario"]."'><a href='#' class='tip'> <span>".dame_nombre_real($row["id_usuario"])."</span></a>".substr($row["id_usuario"],0,8)."</a>";
|
||||
echo "<td class='datos'>".$row["timestamp"];
|
||||
echo "<td class='datos'>".$row["timestamp"]."</td>";
|
||||
echo "<td class='datos' align='center'>";
|
||||
if ($row["alerted"] != 0 )
|
||||
echo "<img src='images/dot_yellow.gif' border=0>";
|
||||
@ -263,8 +265,9 @@ if (comprueba_login() == 0) {
|
||||
}
|
||||
echo "</form></table>";
|
||||
|
||||
}
|
||||
else { echo '<font class="red">'.$lang_label["no_snmp_agent"].'</font>';}
|
||||
} else {
|
||||
echo "<div class='nf'>".$lang_label["no_snmp_agent"]."</div>";
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user