diff options
Diffstat (limited to 'plugin/processes.php')
| -rw-r--r-- | plugin/processes.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugin/processes.php b/plugin/processes.php index a35800b..27819cc 100644 --- a/plugin/processes.php +++ b/plugin/processes.php | |||
| @@ -20,7 +20,7 @@ $obj->rrd_format = '%5.1lf%s'; | |||
| 20 | switch($obj->args['type']) | 20 | switch($obj->args['type']) |
| 21 | { | 21 | { |
| 22 | case 'ps_state': | 22 | case 'ps_state': |
| 23 | $obj->ds_names = array( | 23 | $obj->legend = array( |
| 24 | 'paging' => 'Paging', | 24 | 'paging' => 'Paging', |
| 25 | 'blocked' => 'Blocked', | 25 | 'blocked' => 'Blocked', |
| 26 | 'zombies' => 'Zombies', | 26 | 'zombies' => 'Zombies', |
| @@ -42,7 +42,7 @@ switch($obj->args['type']) | |||
| 42 | break; | 42 | break; |
| 43 | 43 | ||
| 44 | case 'fork_rate': | 44 | case 'fork_rate': |
| 45 | $obj->ds_names = array( | 45 | $obj->legend = array( |
| 46 | 'value' => 'Forks', | 46 | 'value' => 'Forks', |
| 47 | ); | 47 | ); |
| 48 | $obj->colors = array( | 48 | $obj->colors = array( |
| @@ -53,7 +53,7 @@ switch($obj->args['type']) | |||
| 53 | break; | 53 | break; |
| 54 | 54 | ||
| 55 | case 'ps_code': | 55 | case 'ps_code': |
| 56 | $obj->ds_names = array( | 56 | $obj->legend = array( |
| 57 | 'value' => 'TRS', | 57 | 'value' => 'TRS', |
| 58 | ); | 58 | ); |
| 59 | $obj->colors = array( | 59 | $obj->colors = array( |
| @@ -65,7 +65,7 @@ switch($obj->args['type']) | |||
| 65 | 65 | ||
| 66 | case 'ps_count': | 66 | case 'ps_count': |
| 67 | $obj->data_sources = array('processes', 'threads'); | 67 | $obj->data_sources = array('processes', 'threads'); |
| 68 | $obj->ds_names = array( | 68 | $obj->legend = array( |
| 69 | 'processes' => 'Processes', | 69 | 'processes' => 'Processes', |
| 70 | 'threads' => 'Threads', | 70 | 'threads' => 'Threads', |
| 71 | ); | 71 | ); |
| @@ -79,7 +79,7 @@ switch($obj->args['type']) | |||
| 79 | 79 | ||
| 80 | case 'ps_cputime': | 80 | case 'ps_cputime': |
| 81 | $obj->data_sources = array('user', 'syst'); | 81 | $obj->data_sources = array('user', 'syst'); |
| 82 | $obj->ds_names = array( | 82 | $obj->legend = array( |
| 83 | 'user' => 'User', | 83 | 'user' => 'User', |
| 84 | 'syst' => 'System', | 84 | 'syst' => 'System', |
| 85 | ); | 85 | ); |
| @@ -93,7 +93,7 @@ switch($obj->args['type']) | |||
| 93 | 93 | ||
| 94 | case 'ps_disk_octets': | 94 | case 'ps_disk_octets': |
| 95 | $obj->data_sources = array('read', 'write'); | 95 | $obj->data_sources = array('read', 'write'); |
| 96 | $obj->ds_names = array( | 96 | $obj->legend = array( |
| 97 | 'read' => 'Read', | 97 | 'read' => 'Read', |
| 98 | 'write' => 'Write', | 98 | 'write' => 'Write', |
| 99 | ); | 99 | ); |
| @@ -107,7 +107,7 @@ switch($obj->args['type']) | |||
| 107 | 107 | ||
| 108 | case 'ps_disk_ops': | 108 | case 'ps_disk_ops': |
| 109 | $obj->data_sources = array('read', 'write'); | 109 | $obj->data_sources = array('read', 'write'); |
| 110 | $obj->ds_names = array( | 110 | $obj->legend = array( |
| 111 | 'read' => 'Read', | 111 | 'read' => 'Read', |
| 112 | 'write' => 'Write', | 112 | 'write' => 'Write', |
| 113 | ); | 113 | ); |
| @@ -120,7 +120,7 @@ switch($obj->args['type']) | |||
| 120 | break; | 120 | break; |
| 121 | 121 | ||
| 122 | case 'ps_data': | 122 | case 'ps_data': |
| 123 | $obj->ds_names = array( | 123 | $obj->legend = array( |
| 124 | 'value' => 'DRS', | 124 | 'value' => 'DRS', |
| 125 | ); | 125 | ); |
| 126 | $obj->colors = array( | 126 | $obj->colors = array( |
| @@ -132,7 +132,7 @@ switch($obj->args['type']) | |||
| 132 | 132 | ||
| 133 | case 'ps_pagefaults': | 133 | case 'ps_pagefaults': |
| 134 | $obj->data_sources = array('minflt', 'majflt'); | 134 | $obj->data_sources = array('minflt', 'majflt'); |
| 135 | $obj->ds_names = array( | 135 | $obj->legend = array( |
| 136 | 'minflt' => 'Minor', | 136 | 'minflt' => 'Minor', |
| 137 | 'majflt' => 'Major', | 137 | 'majflt' => 'Major', |
| 138 | ); | 138 | ); |
| @@ -145,7 +145,7 @@ switch($obj->args['type']) | |||
| 145 | break; | 145 | break; |
| 146 | 146 | ||
| 147 | case 'ps_rss': | 147 | case 'ps_rss': |
| 148 | $obj->ds_names = array( | 148 | $obj->legend = array( |
| 149 | 'value' => 'RSS', | 149 | 'value' => 'RSS', |
| 150 | ); | 150 | ); |
| 151 | $obj->colors = array( | 151 | $obj->colors = array( |
| @@ -156,7 +156,7 @@ switch($obj->args['type']) | |||
| 156 | break; | 156 | break; |
| 157 | 157 | ||
| 158 | case 'ps_stacksize': | 158 | case 'ps_stacksize': |
| 159 | $obj->ds_names = array( | 159 | $obj->legend = array( |
| 160 | 'value' => 'Stacksize', | 160 | 'value' => 'Stacksize', |
| 161 | ); | 161 | ); |
| 162 | $obj->colors = array( | 162 | $obj->colors = array( |
| @@ -167,7 +167,7 @@ switch($obj->args['type']) | |||
| 167 | break; | 167 | break; |
| 168 | 168 | ||
| 169 | case 'ps_vm': | 169 | case 'ps_vm': |
| 170 | $obj->ds_names = array( | 170 | $obj->legend = array( |
| 171 | 'value' => 'Memory', | 171 | 'value' => 'Memory', |
| 172 | ); | 172 | ); |
| 173 | $obj->colors = array( | 173 | $obj->colors = array( |
