aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-10 14:04:36 +1000
committeronefang2019-12-10 14:04:36 +1000
commit4d7b13259c22eb81eb4e9904a880cd81b79df49d (patch)
tree1af3ed137ef9baaaa580ba26a1004a57270aba39
parentAdd some basic instructions for active graph. (diff)
downloadapt-panopticon_cgp-4d7b13259c22eb81eb4e9904a880cd81b79df49d.zip
apt-panopticon_cgp-4d7b13259c22eb81eb4e9904a880cd81b79df49d.tar.gz
apt-panopticon_cgp-4d7b13259c22eb81eb4e9904a880cd81b79df49d.tar.bz2
apt-panopticon_cgp-4d7b13259c22eb81eb4e9904a880cd81b79df49d.tar.xz
A few style tweaks, mostly to a dark theme.
-rw-r--r--conf/config.php16
-rw-r--r--layout/style.css2
-rw-r--r--type/GenericStacked.class.php2
3 files changed, 16 insertions, 4 deletions
diff --git a/conf/config.php b/conf/config.php
index 0628bfe..492e7eb 100644
--- a/conf/config.php
+++ b/conf/config.php
@@ -13,7 +13,19 @@ $CONFIG['typesdb'][] = '/usr/share/collectd/types.db';
13$CONFIG['rrdtool'] = '/usr/bin/rrdtool'; 13$CONFIG['rrdtool'] = '/usr/bin/rrdtool';
14 14
15# rrdtool special command-line options 15# rrdtool special command-line options
16$CONFIG['rrdtool_opts'] = array(); 16$CONFIG['rrdtool_opts'] = array(
17 '-c', 'BACK#000000',
18 '-c', 'CANVAS#000000',
19# '-c', 'SHADEA#0000FF',
20# '-c', 'SHADEB#FFFF00',
21 '-c', 'FONT#FFFFFF',
22# '-c', 'GRID#FF00FF',
23# '-c', 'MGRID#880000',
24 '-c', 'AXIS#FFFFFF',
25 '-c', 'FRAME#FFFFFF',
26 '-c', 'ARROW#FFFFFF'
27);
28
17 29
18# category of hosts to show on main page 30# category of hosts to show on main page
19#$CONFIG['cat']['category1'] = array('host1', 'host2'); 31#$CONFIG['cat']['category1'] = array('host1', 'host2');
@@ -64,7 +76,7 @@ $CONFIG['negative_io'] = false;
64$CONFIG['percentile'] = false; 76$CONFIG['percentile'] = false;
65 77
66# create smooth graphs (rrdtool -E) 78# create smooth graphs (rrdtool -E)
67$CONFIG['graph_smooth'] = false; 79$CONFIG['graph_smooth'] = true;
68 80
69# draw min/max spikes in a lighter color in graphs with type default 81# draw min/max spikes in a lighter color in graphs with type default
70$CONFIG['graph_minmax'] = false; 82$CONFIG['graph_minmax'] = false;
diff --git a/layout/style.css b/layout/style.css
index 768c0c6..c756db4 100644
--- a/layout/style.css
+++ b/layout/style.css
@@ -65,7 +65,7 @@ h2 {
65 65
66a:link, a:visited, a:active { 66a:link, a:visited, a:active {
67 text-decoration: none; 67 text-decoration: none;
68 color: #222; 68 color: #888;
69} 69}
70 70
71a:hover { 71a:hover {
diff --git a/type/GenericStacked.class.php b/type/GenericStacked.class.php
index 421135c..24055da 100644
--- a/type/GenericStacked.class.php
+++ b/type/GenericStacked.class.php
@@ -43,7 +43,7 @@ class Type_GenericStacked extends Type_Base {
43 $c = 0; 43 $c = 0;
44 foreach ($sources as $source) { 44 foreach ($sources as $source) {
45 $color = is_array($this->colors) ? (isset($this->colors[$source])?$this->colors[$source]:$this->colors[$c++]) : $this->colors; 45 $color = is_array($this->colors) ? (isset($this->colors[$source])?$this->colors[$source]:$this->colors[$c++]) : $this->colors;
46 $color = $this->get_faded_color($color); 46// $color = $this->get_faded_color($color);
47 $rrdgraph[] = sprintf('AREA:area_%s#%s', crc32hex($source), $color); 47 $rrdgraph[] = sprintf('AREA:area_%s#%s', crc32hex($source), $color);
48 } 48 }
49 49