From 724112c9913dd07fea9a9a57690c605e5a666a3c Mon Sep 17 00:00:00 2001 From: Steven Stallion Date: Tue, 7 Nov 2017 18:14:35 -0600 Subject: [PATCH] Add configuration option to disable warning --- conf/config.php | 3 +++ inc/html.inc.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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