From fe73abc4ee41989d40b6bec0dbee1391470f97e6 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 10 Dec 2019 14:05:36 +1000 Subject: New config for "allowed" graphs, so people can hide some of them. --- conf/config.php | 3 +++ inc/functions.inc.php | 6 ++++++ inc/html.inc.php | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/conf/config.php b/conf/config.php index 492e7eb..5a67007 100644 --- a/conf/config.php +++ b/conf/config.php @@ -36,6 +36,9 @@ $CONFIG['rrdtool_opts'] = array( # default plugins to show on host page $CONFIG['overview'] = array('load', 'cpu', 'memory', 'swap'); +# allowed other plugins to show on host page +$CONFIG['allowed'] = array(); + # example of filter to show only the if_octets of eth0 on host page # (interface must be enabled in the overview config array) #$CONFIG['overview_filter']['interface'] = array('ti' => 'eth0', 't' => 'if_octets'); diff --git a/inc/functions.inc.php b/inc/functions.inc.php index 376b6e1..1c12c2f 100644 --- a/inc/functions.inc.php +++ b/inc/functions.inc.php @@ -1,8 +1,11 @@ %s\n", selected_plugin($plugin, $selected_plugins), htmlentities($CONFIG['weburl']), -- cgit v1.1