Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions conf/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# collectd version
$CONFIG['version'] = 5;

# show collectd 4 deprecation warning
$CONFIG['version_warn'] = true;

# collectd's datadir
$CONFIG['datadir'] = '/var/lib/collectd/rrd';

Expand Down
2 changes: 1 addition & 1 deletion inc/html.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function html_start() {

}

if($CONFIG['version'] == 4) {
if($CONFIG['version'] == 4 && $CONFIG['version_warn']) {
echo <<<EOT
<div class="warnheader">
You are using Collectd 4, which is deprecated by CGP. Graphs like
Expand Down