aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/.gitignore1
-rw-r--r--conf/common.inc.php8
-rw-r--r--conf/config.php19
3 files changed, 28 insertions, 0 deletions
diff --git a/conf/.gitignore b/conf/.gitignore
new file mode 100644
index 0000000..529bf01
--- /dev/null
+++ b/conf/.gitignore
@@ -0,0 +1 @@
config.local.php
diff --git a/conf/common.inc.php b/conf/common.inc.php
new file mode 100644
index 0000000..c4884d6
--- /dev/null
+++ b/conf/common.inc.php
@@ -0,0 +1,8 @@
1<?php
2
3require_once 'config.php';
4
5$CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']);
6$CONFIG['weburl'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']);
7
8?>
diff --git a/conf/config.php b/conf/config.php
new file mode 100644
index 0000000..4fb7aec
--- /dev/null
+++ b/conf/config.php
@@ -0,0 +1,19 @@
1<?php
2
3$CONFIG['datadir'] = '/var/lib/collectd/rrd';
4
5#$CONFIG['cat']['nethuis'] = array('pepper');
6$CONFIG['overview'] = array('load', 'cpu', 'memory', 'swap');
7
8$CONFIG['groupby'] = array(
9 'cpu' => 'type',
10 'irq' => 'type',
11 'memory' => 'type',
12 'processes' => 'type',
13 'swap' => 'type',
14 'sensors' => 'type',
15);
16
17include 'config.local.php';
18
19?>