diff options
author | Pim van den Berg | 2011-02-05 20:01:26 +0100 |
---|---|---|
committer | Pim van den Berg | 2011-02-05 20:01:26 +0100 |
commit | b1e34bd1868be418ef5ec26683a8d07f22cebd51 (patch) | |
tree | c4f7616f7159b71af7a1260b3e049af0fc29d507 /plugin | |
parent | plugin/dns: generate colors in type dns_opcode (diff) | |
download | apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.zip apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.tar.gz apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.tar.bz2 apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.tar.xz |
replace function generate_colors by rainbow_colors
When no colors are defined they will be generated by function rainbow_colors.
Diffstat (limited to '')
-rw-r--r-- | plugin/bind.php | 1 | ||||
-rw-r--r-- | plugin/cpufreq.php | 1 | ||||
-rw-r--r-- | plugin/dns.php | 2 | ||||
-rw-r--r-- | plugin/hddtemp.php | 1 | ||||
-rw-r--r-- | plugin/irq.php | 1 | ||||
-rw-r--r-- | plugin/mysql.php | 1 | ||||
-rw-r--r-- | plugin/nfs.php | 1 | ||||
-rw-r--r-- | plugin/ntpd.php | 1 | ||||
-rw-r--r-- | plugin/nut.php | 1 | ||||
-rw-r--r-- | plugin/ping.php | 1 | ||||
-rw-r--r-- | plugin/sensors.php | 1 | ||||
-rw-r--r-- | plugin/tcpconns.php | 1 | ||||
-rw-r--r-- | plugin/vmem.php | 1 |
13 files changed, 0 insertions, 14 deletions
diff --git a/plugin/bind.php b/plugin/bind.php index 2550918..0eb0a0d 100644 --- a/plugin/bind.php +++ b/plugin/bind.php | |||
@@ -10,7 +10,6 @@ require_once 'inc/collectd.inc.php'; | |||
10 | $obj = new Type_GenericStacked($CONFIG); | 10 | $obj = new Type_GenericStacked($CONFIG); |
11 | $obj->width = $width; | 11 | $obj->width = $width; |
12 | $obj->heigth = $heigth; | 12 | $obj->heigth = $heigth; |
13 | $obj->generate_colors(); | ||
14 | 13 | ||
15 | $obj->rrd_title = sprintf('%s/%s', $obj->args['pinstance'], $obj->args['type']); | 14 | $obj->rrd_title = sprintf('%s/%s', $obj->args['pinstance'], $obj->args['type']); |
16 | $obj->rrd_format = '%5.1lf%s'; | 15 | $obj->rrd_format = '%5.1lf%s'; |
diff --git a/plugin/cpufreq.php b/plugin/cpufreq.php index ef2162b..0ecc9a3 100644 --- a/plugin/cpufreq.php +++ b/plugin/cpufreq.php | |||
@@ -13,7 +13,6 @@ $obj = new Type_Default($CONFIG); | |||
13 | $obj->data_sources = array('value'); | 13 | $obj->data_sources = array('value'); |
14 | $obj->width = $width; | 14 | $obj->width = $width; |
15 | $obj->heigth = $heigth; | 15 | $obj->heigth = $heigth; |
16 | $obj->generate_colors(); | ||
17 | $obj->rrd_title = 'CPU frequency scaling'; | 16 | $obj->rrd_title = 'CPU frequency scaling'; |
18 | $obj->rrd_vertical = 'Mhz'; | 17 | $obj->rrd_vertical = 'Mhz'; |
19 | $obj->rrd_format = '%5.1lf%s'; | 18 | $obj->rrd_format = '%5.1lf%s'; |
diff --git a/plugin/dns.php b/plugin/dns.php index a3e5613..15143b5 100644 --- a/plugin/dns.php +++ b/plugin/dns.php | |||
@@ -35,14 +35,12 @@ switch($obj->args['type']) { | |||
35 | break; | 35 | break; |
36 | case 'dns_opcode': | 36 | case 'dns_opcode': |
37 | $obj->data_sources = array('value'); | 37 | $obj->data_sources = array('value'); |
38 | $obj->generate_colors(); | ||
39 | $obj->rrd_title = 'DNS Opcode Query'; | 38 | $obj->rrd_title = 'DNS Opcode Query'; |
40 | $obj->rrd_vertical = 'Queries/s'; | 39 | $obj->rrd_vertical = 'Queries/s'; |
41 | $obj->rrd_format = '%5.1lf%s'; | 40 | $obj->rrd_format = '%5.1lf%s'; |
42 | break; | 41 | break; |
43 | case 'dns_qtype': | 42 | case 'dns_qtype': |
44 | $obj->data_sources = array('value'); | 43 | $obj->data_sources = array('value'); |
45 | $obj->generate_colors(); | ||
46 | $obj->rrd_title = 'DNS QType'; | 44 | $obj->rrd_title = 'DNS QType'; |
47 | $obj->rrd_vertical = 'Queries/s'; | 45 | $obj->rrd_vertical = 'Queries/s'; |
48 | $obj->rrd_format = '%5.1lf%s'; | 46 | $obj->rrd_format = '%5.1lf%s'; |
diff --git a/plugin/hddtemp.php b/plugin/hddtemp.php index 10f71e6..1c90b78 100644 --- a/plugin/hddtemp.php +++ b/plugin/hddtemp.php | |||
@@ -13,7 +13,6 @@ $obj = new Type_Default($CONFIG); | |||
13 | $obj->ds_names = array('temperature' => 'Temperature'); | 13 | $obj->ds_names = array('temperature' => 'Temperature'); |
14 | $obj->width = $width; | 14 | $obj->width = $width; |
15 | $obj->heigth = $heigth; | 15 | $obj->heigth = $heigth; |
16 | $obj->generate_colors(); | ||
17 | $obj->rrd_title = 'HDD Temperature'; | 16 | $obj->rrd_title = 'HDD Temperature'; |
18 | $obj->rrd_vertical = '°C'; | 17 | $obj->rrd_vertical = '°C'; |
19 | $obj->rrd_format = '%.1lf'; | 18 | $obj->rrd_format = '%.1lf'; |
diff --git a/plugin/irq.php b/plugin/irq.php index 19618a4..406b707 100644 --- a/plugin/irq.php +++ b/plugin/irq.php | |||
@@ -13,7 +13,6 @@ require_once 'inc/collectd.inc.php'; | |||
13 | $obj = new Type_GenericStacked($CONFIG); | 13 | $obj = new Type_GenericStacked($CONFIG); |
14 | $obj->width = $width; | 14 | $obj->width = $width; |
15 | $obj->heigth = $heigth; | 15 | $obj->heigth = $heigth; |
16 | $obj->generate_colors(); | ||
17 | 16 | ||
18 | $obj->rrd_title = 'Interrupts'; | 17 | $obj->rrd_title = 'Interrupts'; |
19 | $obj->rrd_vertical = 'IRQs/s'; | 18 | $obj->rrd_vertical = 'IRQs/s'; |
diff --git a/plugin/mysql.php b/plugin/mysql.php index 607e223..c73c37a 100644 --- a/plugin/mysql.php +++ b/plugin/mysql.php | |||
@@ -13,7 +13,6 @@ $obj->heigth = $heigth; | |||
13 | switch($obj->args['type']) | 13 | switch($obj->args['type']) |
14 | { | 14 | { |
15 | case 'mysql_commands': | 15 | case 'mysql_commands': |
16 | $obj->generate_colors(); | ||
17 | $obj->rrd_title = sprintf('MySQL commands (%s)', $obj->args['pinstance']); | 16 | $obj->rrd_title = sprintf('MySQL commands (%s)', $obj->args['pinstance']); |
18 | $obj->rrd_vertical = 'Issues/s'; | 17 | $obj->rrd_vertical = 'Issues/s'; |
19 | $obj->rrd_format = '%5.1lf%s'; | 18 | $obj->rrd_format = '%5.1lf%s'; |
diff --git a/plugin/nfs.php b/plugin/nfs.php index 7daf032..ca69b06 100644 --- a/plugin/nfs.php +++ b/plugin/nfs.php | |||
@@ -30,7 +30,6 @@ $obj->heigth = $heigth; | |||
30 | $obj->rrd_title = sprintf('NFS-%s Procedures', $obj->args['pinstance']); | 30 | $obj->rrd_title = sprintf('NFS-%s Procedures', $obj->args['pinstance']); |
31 | $obj->rrd_vertical = 'Procedures'; | 31 | $obj->rrd_vertical = 'Procedures'; |
32 | $obj->rrd_format = '%5.2lf'; | 32 | $obj->rrd_format = '%5.2lf'; |
33 | $obj->generate_colors(); | ||
34 | 33 | ||
35 | collectd_flush($obj->identifiers); | 34 | collectd_flush($obj->identifiers); |
36 | $obj->rrd_graph(); | 35 | $obj->rrd_graph(); |
diff --git a/plugin/ntpd.php b/plugin/ntpd.php index 1b13f78..c85ce8c 100644 --- a/plugin/ntpd.php +++ b/plugin/ntpd.php | |||
@@ -19,7 +19,6 @@ $obj->ds_names = array('ping' => 'Ping time', | |||
19 | 'ping_droprate' => 'Ping droprate'); | 19 | 'ping_droprate' => 'Ping droprate'); |
20 | $obj->width = $width; | 20 | $obj->width = $width; |
21 | $obj->heigth = $heigth; | 21 | $obj->heigth = $heigth; |
22 | $obj->generate_colors(); | ||
23 | switch($obj->args['type']) { | 22 | switch($obj->args['type']) { |
24 | case 'delay': | 23 | case 'delay': |
25 | $obj->data_sources = array('seconds'); | 24 | $obj->data_sources = array('seconds'); |
diff --git a/plugin/nut.php b/plugin/nut.php index 816a9ca..b1016e6 100644 --- a/plugin/nut.php +++ b/plugin/nut.php | |||
@@ -16,7 +16,6 @@ require_once 'inc/collectd.inc.php'; | |||
16 | $obj = new Type_Default($CONFIG); | 16 | $obj = new Type_Default($CONFIG); |
17 | $obj->width = $width; | 17 | $obj->width = $width; |
18 | $obj->heigth = $heigth; | 18 | $obj->heigth = $heigth; |
19 | $obj->generate_colors(); | ||
20 | switch($obj->args['type']) { | 19 | switch($obj->args['type']) { |
21 | case 'percent': | 20 | case 'percent': |
22 | $obj->data_sources = array('percent'); | 21 | $obj->data_sources = array('percent'); |
diff --git a/plugin/ping.php b/plugin/ping.php index 067f1f1..1ea53de 100644 --- a/plugin/ping.php +++ b/plugin/ping.php | |||
@@ -19,7 +19,6 @@ $obj->ds_names = array('ping' => 'Ping time', | |||
19 | 'ping_droprate' => 'Ping droprate'); | 19 | 'ping_droprate' => 'Ping droprate'); |
20 | $obj->width = $width; | 20 | $obj->width = $width; |
21 | $obj->heigth = $heigth; | 21 | $obj->heigth = $heigth; |
22 | $obj->generate_colors(); | ||
23 | switch($obj->args['type']) { | 22 | switch($obj->args['type']) { |
24 | case 'ping': | 23 | case 'ping': |
25 | $obj->data_sources = array('ping'); | 24 | $obj->data_sources = array('ping'); |
diff --git a/plugin/sensors.php b/plugin/sensors.php index bfdb411..3f23e98 100644 --- a/plugin/sensors.php +++ b/plugin/sensors.php | |||
@@ -18,7 +18,6 @@ $obj->ds_names = array( | |||
18 | ); | 18 | ); |
19 | $obj->width = $width; | 19 | $obj->width = $width; |
20 | $obj->heigth = $heigth; | 20 | $obj->heigth = $heigth; |
21 | $obj->generate_colors(); | ||
22 | switch($obj->args['type']) { | 21 | switch($obj->args['type']) { |
23 | case 'fanspeed': | 22 | case 'fanspeed': |
24 | $obj->rrd_title = sprintf('Fanspeed (%s)', $obj->args['pinstance']); | 23 | $obj->rrd_title = sprintf('Fanspeed (%s)', $obj->args['pinstance']); |
diff --git a/plugin/tcpconns.php b/plugin/tcpconns.php index 4867d32..f0d99ae 100644 --- a/plugin/tcpconns.php +++ b/plugin/tcpconns.php | |||
@@ -13,7 +13,6 @@ require_once 'inc/collectd.inc.php'; | |||
13 | $obj = new Type_GenericStacked($CONFIG); | 13 | $obj = new Type_GenericStacked($CONFIG); |
14 | $obj->width = $width; | 14 | $obj->width = $width; |
15 | $obj->heigth = $heigth; | 15 | $obj->heigth = $heigth; |
16 | $obj->generate_colors(); | ||
17 | $obj->rrd_title = sprintf('TCP Connections (%s)', $obj->args['pinstance']); | 16 | $obj->rrd_title = sprintf('TCP Connections (%s)', $obj->args['pinstance']); |
18 | $obj->rrd_vertical = '#'; | 17 | $obj->rrd_vertical = '#'; |
19 | $obj->rrd_format = '%5.1lf'; | 18 | $obj->rrd_format = '%5.1lf'; |
diff --git a/plugin/vmem.php b/plugin/vmem.php index 3b58a5e..ea541fc 100644 --- a/plugin/vmem.php +++ b/plugin/vmem.php | |||
@@ -43,7 +43,6 @@ switch($obj->args['type']) { | |||
43 | break; | 43 | break; |
44 | case 'vmpage_number': | 44 | case 'vmpage_number': |
45 | $obj->data_sources = array('value'); | 45 | $obj->data_sources = array('value'); |
46 | $obj->generate_colors(); | ||
47 | $obj->order = array('active_anon', 'active_file', | 46 | $obj->order = array('active_anon', 'active_file', |
48 | 'anon_pages', 'bounce', | 47 | 'anon_pages', 'bounce', |
49 | 'dirty', 'file_pages', | 48 | 'dirty', 'file_pages', |