diff options
Diffstat (limited to '')
| -rw-r--r-- | conf/.gitignore | 1 | ||||
| -rw-r--r-- | conf/common.inc.php | 8 | ||||
| -rw-r--r-- | conf/config.php | 19 |
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 | |||
| 3 | require_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 | |||
| 17 | include 'config.local.php'; | ||
| 18 | |||
| 19 | ?> | ||
