diff --git a/plugins/haproxy/js/haproxy.js b/plugins/haproxy/js/haproxy.js
index 37448384c..facf1e0b4 100755
--- a/plugins/haproxy/js/haproxy.js
+++ b/plugins/haproxy/js/haproxy.js
@@ -30,20 +30,6 @@ function spPost(method, args, callback){
});
}
-function rebuild(){
- var con = '重建索引 ';
- $(".soft-man-con").html(con);
-}
-
-function rebuildIndex(){
- spPost('rebuild', '', function(data){
- if (data.data == 'ok'){
- layer.msg('在重建中..',{icon:1,time:2000,shade: [0.3, '#000']});
- } else {
- layer.msg(data.data,{icon:2,time:2000,shade: [0.3, '#000']});
- }
- });
-}
function secToTime(s) {
var t;
@@ -65,71 +51,3 @@ function secToTime(s) {
return t;
}
-
-function runStatus(){
- spPost('run_status', '', function(data){
- var rdata = $.parseJSON(data.data);
- if (!rdata['status']){
- layer.msg(rdata['msg'],{icon:2,time:2000,shade: [0.3, '#000']});
- return;
- }
- var idata = rdata.data;
- // console.log(idata);
- var con = '
\
- \
- 运行时间 ' + secToTime(idata.uptime) + ' 每秒查询 ' + parseInt(parseInt(idata.queries) / parseInt(idata.uptime)) + ' \
- 总连接次数 ' + idata.connections + ' work_queue_length ' +idata.work_queue_length + ' \
- agent_connect ' + idata.agent_connect+ ' workers_active ' + idata.workers_active + ' \
- agent_retry ' + idata.agent_retry + ' workers_total ' + idata.workers_total + ' \
- \
-
\
-
\
- \
- \
- command_delete ' + idata.command_delete + ' command_delete \
- command_excerpt ' + idata.command_excerpt + ' command_excerpt \
- command_flushattrs ' + idata.command_flushattrs + ' command_flushattrs \
- command_keywords ' + idata.command_keywords + ' command_keywords \
- command_persist ' + idata.command_persist + ' command_persist \
- command_search ' + idata.command_search + ' command_search \
- command_status ' + idata.command_status + ' command_status \
- command_update ' + idata.command_update + ' command_update \
- \
-
';
-
- $(".soft-man-con").html(con);
- });
-}
-
-function readme(){
- spPost('sphinx_cmd', '', function(data){
-
- var rdata = $.parseJSON(data.data);
- if (!rdata['status']){
- layer.msg(rdata['msg'],{icon:2,time:2000,shade: [0.3, '#000']});
- return;
- }
-
- var con = '';
-
- con += '如果数据量比较大,第一次启动会失败!(可通过手动建立索引) ';
- //主索引
- for (var i = 0; i < rdata['data']['index'].length; i++) {
- var index_t = rdata['data']['index'][i];
- con += '主索引:' + rdata['data']['cmd'] + ' '+ index_t +' --rotate ';
- }
-
- for (var i = 0; i < rdata['data']['delta'].length; i++) {
- var delta_t = rdata['data']['delta'][i];
- var list = delta_t.split(':');
- // console.log(list);
- con += '增量索引:' + rdata['data']['cmd'] + ' '+ list[0] +' --rotate ';
- con += '合并索引:' + rdata['data']['cmd'] + ' --merge '+ list[1] + ' ' + list[0] +' --rotate ';
- }
- con += ' ';
-
- $(".soft-man-con").html(con);
- });
-
-}
-