diff options
| author | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
| commit | 1c888304d33a8c1405b8716356ae300fad39521c (patch) | |
| tree | ce0f5ef1946da9fd006a333f49233007fa574ae4 /plugin/memcached.php | |
| parent | inc: mv graphs_from_plugin, build_url functions to html.inc.php (diff) | |
| download | apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.zip apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.gz apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.bz2 apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.xz | |
type/Default: don't depend on external function GET
Diffstat (limited to 'plugin/memcached.php')
| -rw-r--r-- | plugin/memcached.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugin/memcached.php b/plugin/memcached.php index ee80caf..3424769 100644 --- a/plugin/memcached.php +++ b/plugin/memcached.php | |||
| @@ -25,7 +25,7 @@ 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, $_GET); |
| 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( |
| @@ -43,7 +43,7 @@ switch(GET('t')) { | |||
| 43 | # memcached_command-(flush|get|set).rrd | 43 | # memcached_command-(flush|get|set).rrd |
| 44 | case 'memcached_command': | 44 | case 'memcached_command': |
| 45 | require_once 'type/GenericStacked.class.php'; | 45 | require_once 'type/GenericStacked.class.php'; |
| 46 | $obj = new Type_GenericStacked($CONFIG); | 46 | $obj = new Type_GenericStacked($CONFIG, $_GET); |
| 47 | $obj->order = array('flush', 'get', 'set'); | 47 | $obj->order = array('flush', 'get', 'set'); |
| 48 | $obj->ds_names = array( | 48 | $obj->ds_names = array( |
| 49 | 'flush' => 'Flush', | 49 | 'flush' => 'Flush', |
| @@ -62,7 +62,7 @@ switch(GET('t')) { | |||
| 62 | # memcached_connections-current.rrd | 62 | # memcached_connections-current.rrd |
| 63 | case 'memcached_connections': | 63 | case 'memcached_connections': |
| 64 | require_once 'type/Default.class.php'; | 64 | require_once 'type/Default.class.php'; |
| 65 | $obj = new Type_Default($CONFIG); | 65 | $obj = new Type_Default($CONFIG, $_GET); |
| 66 | $obj->data_sources = array('value'); | 66 | $obj->data_sources = array('value'); |
| 67 | $obj->ds_names = array( | 67 | $obj->ds_names = array( |
| 68 | 'value' => 'Connections', | 68 | 'value' => 'Connections', |
| @@ -77,7 +77,7 @@ switch(GET('t')) { | |||
| 77 | # memcached_items-current.rrd | 77 | # memcached_items-current.rrd |
| 78 | case 'memcached_items': | 78 | case 'memcached_items': |
| 79 | require_once 'type/Default.class.php'; | 79 | require_once 'type/Default.class.php'; |
| 80 | $obj = new Type_Default($CONFIG); | 80 | $obj = new Type_Default($CONFIG, $_GET); |
| 81 | $obj->data_sources = array('value'); | 81 | $obj->data_sources = array('value'); |
| 82 | $obj->ds_names = array( | 82 | $obj->ds_names = array( |
| 83 | 'value ' => 'Items', | 83 | 'value ' => 'Items', |
| @@ -92,7 +92,7 @@ switch(GET('t')) { | |||
| 92 | # memcached_octets.rrd | 92 | # memcached_octets.rrd |
| 93 | case 'memcached_octets': | 93 | case 'memcached_octets': |
| 94 | require_once 'type/Default.class.php'; | 94 | require_once 'type/Default.class.php'; |
| 95 | $obj = new Type_Default($CONFIG); | 95 | $obj = new Type_Default($CONFIG, $_GET); |
| 96 | $obj->data_sources = array('rx', 'tx'); | 96 | $obj->data_sources = array('rx', 'tx'); |
| 97 | $obj->order = array('rx', 'tx'); | 97 | $obj->order = array('rx', 'tx'); |
| 98 | $obj->ds_names = array( | 98 | $obj->ds_names = array( |
| @@ -110,7 +110,7 @@ switch(GET('t')) { | |||
| 110 | # memcached_ops-(evictions|hits|misses).rrd | 110 | # memcached_ops-(evictions|hits|misses).rrd |
| 111 | case 'memcached_ops': | 111 | case 'memcached_ops': |
| 112 | require_once 'type/GenericStacked.class.php'; | 112 | require_once 'type/GenericStacked.class.php'; |
| 113 | $obj = new Type_GenericStacked($CONFIG); | 113 | $obj = new Type_GenericStacked($CONFIG, $_GET); |
| 114 | $obj->order = array('evictions', 'hits', 'misses'); | 114 | $obj->order = array('evictions', 'hits', 'misses'); |
| 115 | $obj->ds_names = array( | 115 | $obj->ds_names = array( |
| 116 | 'evictions' => 'Evictions', | 116 | 'evictions' => 'Evictions', |
| @@ -129,7 +129,7 @@ switch(GET('t')) { | |||
| 129 | # percent-hitratio.rrd | 129 | # percent-hitratio.rrd |
| 130 | case 'percent': | 130 | case 'percent': |
| 131 | require_once 'type/Default.class.php'; | 131 | require_once 'type/Default.class.php'; |
| 132 | $obj = new Type_Default($CONFIG); | 132 | $obj = new Type_Default($CONFIG, $_GET); |
| 133 | $obj->data_sources = array('percent'); | 133 | $obj->data_sources = array('percent'); |
| 134 | $obj->ds_names = array( | 134 | $obj->ds_names = array( |
| 135 | 'percent ' => 'Percentage', | 135 | 'percent ' => 'Percentage', |
| @@ -143,7 +143,7 @@ switch(GET('t')) { | |||
| 143 | # ps_count.rrd | 143 | # ps_count.rrd |
| 144 | case 'ps_count': | 144 | case 'ps_count': |
| 145 | require_once 'type/Default.class.php'; | 145 | require_once 'type/Default.class.php'; |
| 146 | $obj = new Type_Default($CONFIG); | 146 | $obj = new Type_Default($CONFIG, $_GET); |
| 147 | $obj->data_sources = array('threads'); | 147 | $obj->data_sources = array('threads'); |
| 148 | $obj->order = array('threads'); | 148 | $obj->order = array('threads'); |
| 149 | $obj->ds_names = array( | 149 | $obj->ds_names = array( |
| @@ -159,7 +159,7 @@ switch(GET('t')) { | |||
| 159 | # ps_cputime.rrd | 159 | # ps_cputime.rrd |
| 160 | case 'ps_cputime': | 160 | case 'ps_cputime': |
| 161 | require_once 'type/Default.class.php'; | 161 | require_once 'type/Default.class.php'; |
| 162 | $obj = new Type_Default($CONFIG); | 162 | $obj = new Type_Default($CONFIG, $_GET); |
| 163 | $obj->data_sources = array('user', 'syst'); | 163 | $obj->data_sources = array('user', 'syst'); |
| 164 | $obj->order = array('user', 'syst'); | 164 | $obj->order = array('user', 'syst'); |
| 165 | $obj->ds_names = array( | 165 | $obj->ds_names = array( |
