summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authornagyrobi <robreg@zsurob.hu>2014-02-18 15:24:03 +0100
committernagyrobi <robreg@zsurob.hu>2014-02-18 15:24:03 +0100
commit2cdb75f84c65c512464a94f2287b4cc8e9c6e6de (patch)
tree308978f2f93aaf7d636830c21237f92c823d5a99 /usr/local/www/status_rrd_graph.php
parentb8ab37b8296c11a6e2f85c2b121c8d5c23a6b6db (diff)
downloadpfsense-2cdb75f84c65c512464a94f2287b4cc8e9c6e6de.zip
pfsense-2cdb75f84c65c512464a94f2287b4cc8e9c6e6de.tar.gz
Update status_rrd_graph.php
Add NTP graphing
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index e920535..4c7c950 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -132,6 +132,14 @@ if ($_GET['option']) {
case "captiveportal":
$curoption = "allgraphs";
break;
+ case "ntpd":
+ if(isset($config['ntpd']['statsgraph'])) {
+ $curoption = "allgraphs";
+ } else {
+ $curoption = "processor";
+ $curcat = "system";
+ }
+ break;
default:
$curoption = "wan";
break;
@@ -229,6 +237,9 @@ foreach($databases as $database) {
if(stristr($database, "captiveportal-") && is_array($config['captiveportal'])) {
$captiveportal = true;
}
+ if(stristr($database, "ntpd") && isset($config['ntpd']['statsgraph'])) {
+ $ntpd = true;
+ }
}
/* append the existing array to the header */
$ui_databases = array_merge($dbheader, $databases);
@@ -430,6 +441,10 @@ function get_dates($curperiod, $graph) {
if($curcat == "captiveportal") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array("Captive Portal", $tabactive, "status_rrd_graph.php?cat=captiveportal");
}
+ if($ntpd) {
+ if($curcat == "ntpd") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("NTP", $tabactive, "status_rrd_graph.php?cat=ntpd");
+ }
if($curcat == "custom") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("Custom"), $tabactive, "status_rrd_graph.php?cat=custom");
if($curcat == "settings") { $tabactive = True; } else { $tabactive = False; }
OpenPOWER on IntegriCloud