update php-script
This commit is contained in:
parent
cb48f5bd03
commit
5af595bd88
10
sammler.php
10
sammler.php
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user