Authored by zhengyouwei

add node name

... ... @@ -175,6 +175,21 @@
function getInfo(show_row,ip){
var project = $("#projectSelect option:selected").val();
var name;
if(project == "YOHOBLK-WWW"){
name = "yohoblk-node";
}else if(project == "YOHOBLK-WAP"){
name = "yohoblk-wap";
}else if(project == "YOHOBUY-PC-NODE"){
name = "yohobuy-node";
}else if(project == "YOHOBUY-Portal-fe2"){
name = "yohobuy-portal";
}else if(project == "YOHOBUY-Shop-fe2"){
name = "yohobuy-shop";
}else if(project == "YOHOBUY-WAP-NODE"){
name = "yohobuywap-node";
}
$.ajax({
url: contextPath + '/nodeMonitor/getInfo?ip=' + ip,
type: 'POST',
... ... @@ -195,12 +210,11 @@
free_mem = freeMem;
}
if (p.name == project) {
if (p.name == name) {
total++;
}
if ("online" == p.pm2_env.status) {
online++;
if ("online" == p.pm2_env.status) {
online++;
}
}
});
... ...