diff options
| author | Pim van den Berg | 2012-08-10 19:02:29 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2012-08-10 19:07:45 +0200 |
| commit | dae438c070bb02e50c231a9ac6f7ea4b9b90fd2c (patch) | |
| tree | ce45e515b343f236e8cb66c0ed2c55ec70c95ec8 /plugin/memcached.php | |
| parent | introduce config option datasize to show graphs in bits or bytes (diff) | |
| download | apt-panopticon_cgp-dae438c070bb02e50c231a9ac6f7ea4b9b90fd2c.zip apt-panopticon_cgp-dae438c070bb02e50c231a9ac6f7ea4b9b90fd2c.tar.gz apt-panopticon_cgp-dae438c070bb02e50c231a9ac6f7ea4b9b90fd2c.tar.bz2 apt-panopticon_cgp-dae438c070bb02e50c231a9ac6f7ea4b9b90fd2c.tar.xz | |
plugin: convert spaces to tabs
Diffstat (limited to 'plugin/memcached.php')
| -rw-r--r-- | plugin/memcached.php | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/plugin/memcached.php b/plugin/memcached.php index accf6b3..2230f3f 100644 --- a/plugin/memcached.php +++ b/plugin/memcached.php | |||
| @@ -24,9 +24,9 @@ require_once 'inc/collectd.inc.php'; | |||
| 24 | switch(GET('t')) { | 24 | switch(GET('t')) { |
| 25 | # df-cache.rrd | 25 | # df-cache.rrd |
| 26 | case 'df': | 26 | case 'df': |
| 27 | require_once 'type/Default.class.php'; | 27 | require_once 'type/Default.class.php'; |
| 28 | $obj = new Type_Default($CONFIG); | 28 | $obj = new Type_Default($CONFIG); |
| 29 | $obj->data_sources = array('used', 'free'); | 29 | $obj->data_sources = array('used', 'free'); |
| 30 | $obj->order = array('used', 'free'); | 30 | $obj->order = array('used', 'free'); |
| 31 | $obj->ds_names = array( | 31 | $obj->ds_names = array( |
| 32 | 'used' => 'Used', | 32 | 'used' => 'Used', |
| @@ -54,7 +54,7 @@ switch(GET('t')) { | |||
| 54 | $obj->colors = array( | 54 | $obj->colors = array( |
| 55 | 'flush' => '00e000', | 55 | 'flush' => '00e000', |
| 56 | 'get' => '0000ff', | 56 | 'get' => '0000ff', |
| 57 | 'set' => 'ffb000', | 57 | 'set' => 'ffb000', |
| 58 | ); | 58 | ); |
| 59 | $obj->rrd_title = 'Memcached Commands'; | 59 | $obj->rrd_title = 'Memcached Commands'; |
| 60 | $obj->rrd_vertical = 'Commands'; | 60 | $obj->rrd_vertical = 'Commands'; |
| @@ -62,39 +62,39 @@ switch(GET('t')) { | |||
| 62 | 62 | ||
| 63 | # memcached_connections-current.rrd | 63 | # memcached_connections-current.rrd |
| 64 | case 'memcached_connections': | 64 | case 'memcached_connections': |
| 65 | require_once 'type/Default.class.php'; | 65 | require_once 'type/Default.class.php'; |
| 66 | $obj = new Type_Default($CONFIG); | 66 | $obj = new Type_Default($CONFIG); |
| 67 | $obj->data_sources = array('value'); | 67 | $obj->data_sources = array('value'); |
| 68 | $obj->ds_names = array( | 68 | $obj->ds_names = array( |
| 69 | 'value' => 'Connections', | 69 | 'value' => 'Connections', |
| 70 | ); | 70 | ); |
| 71 | $obj->colors = array( | 71 | $obj->colors = array( |
| 72 | 'percent' => '00b000', | 72 | 'percent' => '00b000', |
| 73 | ); | 73 | ); |
| 74 | $obj->rrd_title = 'Memcached Number of Connections'; | 74 | $obj->rrd_title = 'Memcached Number of Connections'; |
| 75 | $obj->rrd_vertical = 'Connections'; | 75 | $obj->rrd_vertical = 'Connections'; |
| 76 | break; | 76 | break; |
| 77 | 77 | ||
| 78 | # memcached_items-current.rrd | 78 | # memcached_items-current.rrd |
| 79 | case 'memcached_items': | 79 | case 'memcached_items': |
| 80 | require_once 'type/Default.class.php'; | 80 | require_once 'type/Default.class.php'; |
| 81 | $obj = new Type_Default($CONFIG); | 81 | $obj = new Type_Default($CONFIG); |
| 82 | $obj->data_sources = array('value'); | 82 | $obj->data_sources = array('value'); |
| 83 | $obj->ds_names = array( | 83 | $obj->ds_names = array( |
| 84 | 'value ' => 'Items', | 84 | 'value ' => 'Items', |
| 85 | ); | 85 | ); |
| 86 | $obj->colors = array( | 86 | $obj->colors = array( |
| 87 | 'value' => '00b000', | 87 | 'value' => '00b000', |
| 88 | ); | 88 | ); |
| 89 | $obj->rrd_title = 'Number of Items in Memcached'; | 89 | $obj->rrd_title = 'Number of Items in Memcached'; |
| 90 | $obj->rrd_vertical = 'Items'; | 90 | $obj->rrd_vertical = 'Items'; |
| 91 | break; | 91 | break; |
| 92 | 92 | ||
| 93 | # memcached_octets.rrd | 93 | # memcached_octets.rrd |
| 94 | case 'memcached_octets': | 94 | case 'memcached_octets': |
| 95 | require_once 'type/Default.class.php'; | 95 | require_once 'type/Default.class.php'; |
| 96 | $obj = new Type_Default($CONFIG); | 96 | $obj = new Type_Default($CONFIG); |
| 97 | $obj->data_sources = array('rx', 'tx'); | 97 | $obj->data_sources = array('rx', 'tx'); |
| 98 | $obj->order = array('rx', 'tx'); | 98 | $obj->order = array('rx', 'tx'); |
| 99 | $obj->ds_names = array( | 99 | $obj->ds_names = array( |
| 100 | 'rx' => 'Receive', | 100 | 'rx' => 'Receive', |
| @@ -115,13 +115,13 @@ switch(GET('t')) { | |||
| 115 | $obj->order = array('evictions', 'hits', 'misses'); | 115 | $obj->order = array('evictions', 'hits', 'misses'); |
| 116 | $obj->ds_names = array( | 116 | $obj->ds_names = array( |
| 117 | 'evictions' => 'Evictions', | 117 | 'evictions' => 'Evictions', |
| 118 | 'hits' => 'Hits', | 118 | 'hits' => 'Hits', |
| 119 | 'misses' => 'Misses', | 119 | 'misses' => 'Misses', |
| 120 | ); | 120 | ); |
| 121 | $obj->colors = array( | 121 | $obj->colors = array( |
| 122 | 'evictions' => '00e000', | 122 | 'evictions' => '00e000', |
| 123 | 'hits' => '0000ff', | 123 | 'hits' => '0000ff', |
| 124 | 'misses' => 'ffb000', | 124 | 'misses' => 'ffb000', |
| 125 | ); | 125 | ); |
| 126 | $obj->rrd_title = 'Memcached Operations'; | 126 | $obj->rrd_title = 'Memcached Operations'; |
| 127 | $obj->rrd_vertical = 'Commands'; | 127 | $obj->rrd_vertical = 'Commands'; |
| @@ -129,23 +129,23 @@ switch(GET('t')) { | |||
| 129 | 129 | ||
| 130 | # percent-hitratio.rrd | 130 | # percent-hitratio.rrd |
| 131 | case 'percent': | 131 | case 'percent': |
| 132 | require_once 'type/Default.class.php'; | 132 | require_once 'type/Default.class.php'; |
| 133 | $obj = new Type_Default($CONFIG); | 133 | $obj = new Type_Default($CONFIG); |
| 134 | $obj->data_sources = array('percent'); | 134 | $obj->data_sources = array('percent'); |
| 135 | $obj->ds_names = array( | 135 | $obj->ds_names = array( |
| 136 | 'percent ' => 'Percentage', | 136 | 'percent ' => 'Percentage', |
| 137 | ); | 137 | ); |
| 138 | $obj->colors = array( | 138 | $obj->colors = array( |
| 139 | 'percent' => '00e000', | 139 | 'percent' => '00e000', |
| 140 | ); | 140 | ); |
| 141 | $obj->rrd_title = 'Memcached Hits/Gets Ratio'; | 141 | $obj->rrd_title = 'Memcached Hits/Gets Ratio'; |
| 142 | $obj->rrd_vertical = 'Percent'; | 142 | $obj->rrd_vertical = 'Percent'; |
| 143 | break; | 143 | break; |
| 144 | # ps_count.rrd | 144 | # ps_count.rrd |
| 145 | case 'ps_count': | 145 | case 'ps_count': |
| 146 | require_once 'type/Default.class.php'; | 146 | require_once 'type/Default.class.php'; |
| 147 | $obj = new Type_Default($CONFIG); | 147 | $obj = new Type_Default($CONFIG); |
| 148 | $obj->data_sources = array('threads'); | 148 | $obj->data_sources = array('threads'); |
| 149 | $obj->order = array('threads'); | 149 | $obj->order = array('threads'); |
| 150 | $obj->ds_names = array( | 150 | $obj->ds_names = array( |
| 151 | 'threads' => 'Threads', | 151 | 'threads' => 'Threads', |
| @@ -159,9 +159,9 @@ switch(GET('t')) { | |||
| 159 | 159 | ||
| 160 | # ps_cputime.rrd | 160 | # ps_cputime.rrd |
| 161 | case 'ps_cputime': | 161 | case 'ps_cputime': |
| 162 | require_once 'type/Default.class.php'; | 162 | require_once 'type/Default.class.php'; |
| 163 | $obj = new Type_Default($CONFIG); | 163 | $obj = new Type_Default($CONFIG); |
| 164 | $obj->data_sources = array('user', 'syst'); | 164 | $obj->data_sources = array('user', 'syst'); |
| 165 | $obj->order = array('user', 'syst'); | 165 | $obj->order = array('user', 'syst'); |
| 166 | $obj->ds_names = array( | 166 | $obj->ds_names = array( |
| 167 | 'user' => 'User', | 167 | 'user' => 'User', |
