diff options
Diffstat (limited to 'plugin/processes.php')
-rw-r--r-- | plugin/processes.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/plugin/processes.php b/plugin/processes.php index 466e1e3..dca00b7 100644 --- a/plugin/processes.php +++ b/plugin/processes.php | |||
@@ -18,6 +18,7 @@ require_once 'inc/collectd.inc.php'; | |||
18 | $obj = new Type_GenericStacked($CONFIG); | 18 | $obj = new Type_GenericStacked($CONFIG); |
19 | $obj->width = $width; | 19 | $obj->width = $width; |
20 | $obj->heigth = $heigth; | 20 | $obj->heigth = $heigth; |
21 | $obj->rrd_format = '%5.1lf%s'; | ||
21 | 22 | ||
22 | switch($obj->args['type']) | 23 | switch($obj->args['type']) |
23 | { | 24 | { |
@@ -41,7 +42,6 @@ switch($obj->args['type']) | |||
41 | ); | 42 | ); |
42 | $obj->rrd_title = 'Processes'; | 43 | $obj->rrd_title = 'Processes'; |
43 | $obj->rrd_vertical = 'Processes'; | 44 | $obj->rrd_vertical = 'Processes'; |
44 | $obj->rrd_format = '%5.1lf%s'; | ||
45 | break; | 45 | break; |
46 | 46 | ||
47 | case 'fork_rate': | 47 | case 'fork_rate': |
@@ -53,7 +53,6 @@ switch($obj->args['type']) | |||
53 | ); | 53 | ); |
54 | $obj->rrd_title = 'Fork rate'; | 54 | $obj->rrd_title = 'Fork rate'; |
55 | $obj->rrd_vertical = 'forks/s'; | 55 | $obj->rrd_vertical = 'forks/s'; |
56 | $obj->rrd_format = '%5.1lf%s'; | ||
57 | break; | 56 | break; |
58 | 57 | ||
59 | case 'ps_code': | 58 | case 'ps_code': |
@@ -65,7 +64,6 @@ switch($obj->args['type']) | |||
65 | ); | 64 | ); |
66 | $obj->rrd_title = sprintf('Text Resident Set (%s)', $obj->args['pinstance']); | 65 | $obj->rrd_title = sprintf('Text Resident Set (%s)', $obj->args['pinstance']); |
67 | $obj->rrd_vertical = 'Bytes'; | 66 | $obj->rrd_vertical = 'Bytes'; |
68 | $obj->rrd_format = '%5.1lf%s'; | ||
69 | break; | 67 | break; |
70 | 68 | ||
71 | case 'ps_count': | 69 | case 'ps_count': |
@@ -80,7 +78,6 @@ switch($obj->args['type']) | |||
80 | ); | 78 | ); |
81 | $obj->rrd_title = sprintf('Number of Processes/Threads (%s)', $obj->args['pinstance']); | 79 | $obj->rrd_title = sprintf('Number of Processes/Threads (%s)', $obj->args['pinstance']); |
82 | $obj->rrd_vertical = 'Amount'; | 80 | $obj->rrd_vertical = 'Amount'; |
83 | $obj->rrd_format = '%5.1lf%s'; | ||
84 | break; | 81 | break; |
85 | 82 | ||
86 | case 'ps_cputime': | 83 | case 'ps_cputime': |
@@ -95,7 +92,6 @@ switch($obj->args['type']) | |||
95 | ); | 92 | ); |
96 | $obj->rrd_title = sprintf('CPU time (%s)', $obj->args['pinstance']); | 93 | $obj->rrd_title = sprintf('CPU time (%s)', $obj->args['pinstance']); |
97 | $obj->rrd_vertical = 'CPU time [s]'; | 94 | $obj->rrd_vertical = 'CPU time [s]'; |
98 | $obj->rrd_format = '%5.1lf%s'; | ||
99 | break; | 95 | break; |
100 | 96 | ||
101 | case 'ps_disk_octets': | 97 | case 'ps_disk_octets': |
@@ -110,7 +106,6 @@ switch($obj->args['type']) | |||
110 | ); | 106 | ); |
111 | $obj->rrd_title = sprintf('Disk Traffic (%s)', $obj->args['pinstance']); | 107 | $obj->rrd_title = sprintf('Disk Traffic (%s)', $obj->args['pinstance']); |
112 | $obj->rrd_vertical = 'Bytes per second'; | 108 | $obj->rrd_vertical = 'Bytes per second'; |
113 | $obj->rrd_format = '%5.1lf%s'; | ||
114 | break; | 109 | break; |
115 | 110 | ||
116 | case 'ps_disk_ops': | 111 | case 'ps_disk_ops': |
@@ -125,7 +120,6 @@ switch($obj->args['type']) | |||
125 | ); | 120 | ); |
126 | $obj->rrd_title = sprintf('Disk Operations (%s)', $obj->args['pinstance']); | 121 | $obj->rrd_title = sprintf('Disk Operations (%s)', $obj->args['pinstance']); |
127 | $obj->rrd_vertical = 'Ops per second'; | 122 | $obj->rrd_vertical = 'Ops per second'; |
128 | $obj->rrd_format = '%5.1lf%s'; | ||
129 | break; | 123 | break; |
130 | 124 | ||
131 | case 'ps_data': | 125 | case 'ps_data': |
@@ -137,7 +131,6 @@ switch($obj->args['type']) | |||
137 | ); | 131 | ); |
138 | $obj->rrd_title = sprintf('Data Resident Set (%s)', $obj->args['pinstance']); | 132 | $obj->rrd_title = sprintf('Data Resident Set (%s)', $obj->args['pinstance']); |
139 | $obj->rrd_vertical = 'Bytes'; | 133 | $obj->rrd_vertical = 'Bytes'; |
140 | $obj->rrd_format = '%5.1lf%s'; | ||
141 | break; | 134 | break; |
142 | 135 | ||
143 | case 'ps_pagefaults': | 136 | case 'ps_pagefaults': |
@@ -152,7 +145,6 @@ switch($obj->args['type']) | |||
152 | ); | 145 | ); |
153 | $obj->rrd_title = sprintf('PageFaults (%s)', $obj->args['pinstance']); | 146 | $obj->rrd_title = sprintf('PageFaults (%s)', $obj->args['pinstance']); |
154 | $obj->rrd_vertical = 'Pagefaults'; | 147 | $obj->rrd_vertical = 'Pagefaults'; |
155 | $obj->rrd_format = '%5.1lf%s'; | ||
156 | break; | 148 | break; |
157 | 149 | ||
158 | case 'ps_rss': | 150 | case 'ps_rss': |
@@ -164,7 +156,6 @@ switch($obj->args['type']) | |||
164 | ); | 156 | ); |
165 | $obj->rrd_title = sprintf('Resident Segment Size (%s)', $obj->args['pinstance']); | 157 | $obj->rrd_title = sprintf('Resident Segment Size (%s)', $obj->args['pinstance']); |
166 | $obj->rrd_vertical = 'Bytes'; | 158 | $obj->rrd_vertical = 'Bytes'; |
167 | $obj->rrd_format = '%5.1lf%s'; | ||
168 | break; | 159 | break; |
169 | 160 | ||
170 | case 'ps_stacksize': | 161 | case 'ps_stacksize': |
@@ -176,7 +167,6 @@ switch($obj->args['type']) | |||
176 | ); | 167 | ); |
177 | $obj->rrd_title = sprintf('Stacksize (%s)', $obj->args['pinstance']); | 168 | $obj->rrd_title = sprintf('Stacksize (%s)', $obj->args['pinstance']); |
178 | $obj->rrd_vertical = 'Bytes'; | 169 | $obj->rrd_vertical = 'Bytes'; |
179 | $obj->rrd_format = '%5.1lf%s'; | ||
180 | break; | 170 | break; |
181 | 171 | ||
182 | case 'ps_vm': | 172 | case 'ps_vm': |
@@ -188,7 +178,6 @@ switch($obj->args['type']) | |||
188 | ); | 178 | ); |
189 | $obj->rrd_title = sprintf('Virtual Memory (%s)', $obj->args['pinstance']); | 179 | $obj->rrd_title = sprintf('Virtual Memory (%s)', $obj->args['pinstance']); |
190 | $obj->rrd_vertical = 'Bytes'; | 180 | $obj->rrd_vertical = 'Bytes'; |
191 | $obj->rrd_format = '%5.1lf%s'; | ||
192 | break; | 181 | break; |
193 | 182 | ||
194 | } | 183 | } |