2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
|
|
|
|
2008-04-24 01:29:50 +02:00
|
|
|
// Pandora FMS - the Free monitoring system
|
|
|
|
// ========================================
|
|
|
|
// Copyright (c) 2004-2008 Sancho Lerena, slerena@openideas.info
|
|
|
|
// Copyright (c) 2005-2007 Artica Soluciones Tecnologicas
|
|
|
|
|
|
|
|
// 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
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
// Load global vars
|
2008-04-24 01:29:50 +02:00
|
|
|
global $config;
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
if (comprueba_login() == 0)
|
|
|
|
if ((give_acl($id_user, 0, "DM")==1) or (dame_admin($id_user)==1)) {
|
|
|
|
// Todo for a good DB maintenance
|
|
|
|
/*
|
|
|
|
- Delete too on datos_string and and datos_inc tables
|
|
|
|
|
|
|
|
- A function to "compress" data, and interpolate big chunks of data (1 month - 60000 registers)
|
|
|
|
onto a small chunk of interpolated data (1 month - 600 registers)
|
|
|
|
|
|
|
|
- A more powerful selection (by Agent, by Module, etc).
|
|
|
|
*/
|
2006-06-29 16:47:49 +02:00
|
|
|
?>
|
2007-10-12 18:27:50 +02:00
|
|
|
<h2><?php echo $lang_label["dbmain_title"] ?> >
|
|
|
|
<?php echo $lang_label["current_dbsetup"] ?></h2>
|
2006-06-29 16:47:49 +02:00
|
|
|
<table width=550 cellspacing=3 cellpadding=3 border=0>
|
|
|
|
<tr><td>
|
2008-04-24 01:29:50 +02:00
|
|
|
<i><?php echo $lang_label["days_compact"]; ?>:</i> <b><?php echo $config["days_compact"]; ?></b><br><br>
|
|
|
|
<i><?php echo $lang_label["days_purge"]; ?>:</i> <b><?php echo $config["days_purge"]; ?></b><br><br>
|
2006-06-29 16:47:49 +02:00
|
|
|
<tr><td>
|
|
|
|
<div align='justify'>
|
|
|
|
<?php echo $lang_label["dbsetup_info"]; ?>
|
|
|
|
</div><br>
|
2007-03-28 18:07:29 +02:00
|
|
|
<img src="reporting/fgraph.php?tipo=db_agente_purge&id=-1">
|
2006-06-29 16:47:49 +02:00
|
|
|
</table>
|
|
|
|
<?php
|
2006-03-27 05:37:27 +02:00
|
|
|
} else {
|
|
|
|
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Database Management");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
}
|
2008-04-24 01:29:50 +02:00
|
|
|
?>
|