diff --git a/conf/config.php b/conf/config.php index 0628bfe..1ed7780 100644 --- a/conf/config.php +++ b/conf/config.php @@ -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'; diff --git a/inc/html.inc.php b/inc/html.inc.php index b9d1727..7eef851 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -77,7 +77,7 @@ function html_start() { } - if($CONFIG['version'] == 4) { + if($CONFIG['version'] == 4 && $CONFIG['version_warn']) { echo << You are using Collectd 4, which is deprecated by CGP. Graphs like