summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_rrd_graph_settings.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-20 10:00:37 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-20 10:00:37 -0500
commit31194ebda4682437a3b0ddc287b1f60eab1e18ed (patch)
tree9e64f47f42aa4d9852a86879e554be3fb8cd7256 /src/usr/local/www/status_rrd_graph_settings.php
parentf4a15d29b86804467ac19c0d74410dd3ab6acc18 (diff)
downloadpfsense-31194ebda4682437a3b0ddc287b1f60eab1e18ed.zip
pfsense-31194ebda4682437a3b0ddc287b1f60eab1e18ed.tar.gz
Fixed #5497
Diffstat (limited to 'src/usr/local/www/status_rrd_graph_settings.php')
-rw-r--r--src/usr/local/www/status_rrd_graph_settings.php25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/usr/local/www/status_rrd_graph_settings.php b/src/usr/local/www/status_rrd_graph_settings.php
index 568e873..0974e0c 100644
--- a/src/usr/local/www/status_rrd_graph_settings.php
+++ b/src/usr/local/www/status_rrd_graph_settings.php
@@ -137,6 +137,12 @@ foreach ($databases as $database) {
if (stristr($database, "captiveportal-") && is_array($config['captiveportal'])) {
$captiveportal = true;
}
+ if (stristr($database, "ntpd") && isset($config['ntpd']['statsgraph'])) {
+ $ntpd = true;
+ }
+ if (stristr($database, "-dhcpd") && is_array($config['dhcpd'])) {
+ $dhcpd = true;
+ }
}
$pgtitle = array(gettext("Status"), gettext("RRD Graphs"));
@@ -152,20 +158,29 @@ if($queues) {
$tab_array[] = array(gettext("QueueDrops"), ($curcat == "queuedrops"), "status_rrd_graph.php?cat=queuedrops");
}
-if($wireless)
+if($wireless) {
$tab_array[] = array(gettext("Wireless"), ($curcat == "wireless"), "status_rrd_graph.php?cat=wireless");
+}
-if($cellular)
+if($cellular) {
$tab_array[] = array(gettext("Cellular"), ($curcat == "cellular"), "status_rrd_graph.php?cat=cellular");
+}
-if($vpnusers)
+if($vpnusers) {
$tab_array[] = array(gettext("VPN"), ($curcat == "vpnusers"), "status_rrd_graph.php?cat=vpnusers");
+}
-if($captiveportal)
+if($captiveportal) {
$tab_array[] = array(gettext("Captive Portal"), ($curcat == "captiveportal"), "status_rrd_graph.php?cat=captiveportal");
+}
-if(isset($config['ntpd']['statsgraph']))
+if($ntpd) {
$tab_array[] = array(gettext("NTP"), ($curcat == "ntpd"), "status_rrd_graph.php?cat=ntpd");
+}
+
+if($dhcpd) {
+ $tab_array[] = array(gettext("DHCP Server"), ($curcat == "dhcpd"), "status_rrd_graph.php?cat=dhcpd");
+}
$tab_array[] = array(gettext("Custom"), ($curcat == "custom"), "status_rrd_graph.php?cat=custom");
$tab_array[] = array(gettext("Settings"), ($curcat == "settings"), "status_rrd_graph_settings.php");
OpenPOWER on IntegriCloud