summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/status_rrd_graph_settings.php')
-rwxr-xr-xusr/local/www/status_rrd_graph_settings.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph_settings.php b/usr/local/www/status_rrd_graph_settings.php
index 7f8d4ae..cfd1a0e 100755
--- a/usr/local/www/status_rrd_graph_settings.php
+++ b/usr/local/www/status_rrd_graph_settings.php
@@ -77,9 +77,11 @@ if ($_POST) {
}
}
+
+
$rrddbpath = "/var/db/rrd/";
-/* XXX: (billm) do we have an exec() type function that does this type of thing? */
-exec("cd $rrddbpath;/usr/bin/find -name *.rrd", $databases);
+chdir($rrddbpath);
+$databases = glob("*.rrd");
foreach($databases as $database) {
if(stristr($database, "wireless")) {
@@ -91,6 +93,9 @@ foreach($databases as $database) {
if(stristr($database, "cellular")) {
$cellular = true;
}
+ if(stristr($database, "-vpnusers")) {
+ $vpnusers = true;
+ }
}
$pgtitle = array("Status","RRD Graphs");
OpenPOWER on IntegriCloud