update php-script

This commit is contained in:
Olaf Rempel 2006-09-30 21:22:10 +02:00
parent cb48f5bd03
commit 5af595bd88
1 changed files with 2 additions and 8 deletions

View File

@ -1,8 +1,8 @@
<?php <?php
define('CONFIG', 'sammler_graph.conf'); define('CONFIG', 'sammler_graph.conf');
define('BASE_DIR', '/var/www/rrd/'); define('BASE_DIR', '/var/lib/rrd/');
define('RRDTOOL', '/usr/local/bin/rrdtool'); define('RRDTOOL', '/usr/bin/rrdtool');
function setup_html($conf) { function setup_html($conf) {
echo "<html><head><title>sammler graph setup</title>\n"; echo "<html><head><title>sammler graph setup</title>\n";
@ -179,12 +179,6 @@ function create_config() {
); );
} }
$conf['hosts'][] = array(
'hostname' => 'localhost',
'show' => true,
'rrds' => $rrds,
);
$hosts = get_hostdirs(); $hosts = get_hostdirs();
foreach ($hosts as $host) { foreach ($hosts as $host) {
$rrds = array(); $rrds = array();