\
@@ -133,21 +115,18 @@ var dashboard_tab_content =
Historical monitoring information
\
\
\
-
Total host count
\
+
Hosts CPU
\
\
'+spinner+'
\
-
Hosts CPU
\
+
Hosts memory
\
\
'+spinner+'
\
-
Hosts memory
\
+
Total VM count
\
\
'+spinner+'
\
-
Total VM count
\
+
VM Network stats
\
\
'+spinner+'
\
-
VM Network stats
\
-
\
-
'+spinner+'
\
\
\
\
@@ -170,10 +149,10 @@ function plot_global_graph(data,info){
var monitoring = data.monitoring;
var serie;
var series = [];
- var width = ($(window).width()-129)*45/100;
+ var width = ($(window).width()-129)*48/100;
var mon_count = 0;
- $('#'+id).html('
');
+ $('#'+id).html('
');
for (var label in monitoring) {
serie = {
@@ -195,12 +174,12 @@ function plot_global_graph(data,info){
return pretty_time_axis(val);
},
},
- yaxis : { labelWidth: 40 }
+ yaxis : { labelWidth: 20 }
}
switch (id){
- case "graph3":
- case "graph5":
+ case "graph2":
+ case "graph4":
options["yaxis"]["tickFormatter"] = function(val,axis) {
return humanize_size(val);
}
@@ -226,9 +205,8 @@ function graph_autorefresh(){
function refresh_graphs(){
Sunstone.runAction("Host.monitor_all", graph1);
Sunstone.runAction("Host.monitor_all", graph2);
- Sunstone.runAction("Host.monitor_all", graph3);
+ Sunstone.runAction("VM.monitor_all", graph3);
Sunstone.runAction("VM.monitor_all", graph4);
- Sunstone.runAction("VM.monitor_all", graph5);
}
$(document).ready(function(){
diff --git a/src/sunstone/public/js/plugins/dashboard-users-tab.js b/src/sunstone/public/js/plugins/dashboard-users-tab.js
index e54ce3f8e0..5126eef4eb 100644
--- a/src/sunstone/public/js/plugins/dashboard-users-tab.js
+++ b/src/sunstone/public/js/plugins/dashboard-users-tab.js
@@ -90,18 +90,6 @@ var dashboard_tab_content =
\
@@ -143,35 +131,39 @@ Sunstone.addMainTab('dashboard_tab',dashboard_tab);
function plot_global_graph(data,info){
var id = info.title;
- var labels_arr = info.monitor_resources.split(',');
+ var monitoring = data.monitoring;
var serie;
var series = [];
- var width = ($(window).width()-129)*45/100;
+ var width = ($(window).width()-129)*48/100;
+ var mon_count = 0;
- $('#'+id).html('
'
@@ -561,6 +561,16 @@ function setHostAutorefresh() {
},INTERVAL+someTime());
}
+function hostMonitorError(req,error_json){
+ var message = error_json.error.message;
+ var info = req.request.data[0].monitor;
+ var labels = info.monitor_resources;
+ var id_suffix = labels.replace(/,/g,'_');
+ var id = '#host_monitor_'+id_suffix;
+ $('#host_monitoring_tab '+id).html('
'+message+'
');
+}
+
+
//This is executed after the sunstone.js ready() is run.
//Here we can basicly init the host datatable, preload it
//and add specific listeners
diff --git a/src/sunstone/public/js/plugins/images-tab.js b/src/sunstone/public/js/plugins/images-tab.js
index 88726fcb37..e0a675456a 100644
--- a/src/sunstone/public/js/plugins/images-tab.js
+++ b/src/sunstone/public/js/plugins/images-tab.js
@@ -518,7 +518,7 @@ function updateImageInfo(request,img){
var info_tab = {
title: "Image information",
content:
- '
\
+ '
\
\
Image "'+img_info.NAME+'" information
\
\
@@ -567,7 +567,7 @@ function updateImageInfo(request,img){
var template_tab = {
title: "Image template",
- content: '
\
+ content: '
\
Image template
'+
prettyPrintJSON(img_info.TEMPLATE)+
'
'
diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js
index 48661607e2..0b5b572cb4 100644
--- a/src/sunstone/public/js/plugins/templates-tab.js
+++ b/src/sunstone/public/js/plugins/templates-tab.js
@@ -267,7 +267,7 @@ var create_template_tmpl = '
\
\
\
\
-
\
@@ -331,7 +331,7 @@ var create_template_tmpl = '
\
\
\
\
- \
+ \
\
\
\
@@ -366,7 +366,7 @@ var create_template_tmpl = '
\
\
\
\
- \
+ \
\
\
\
@@ -433,7 +433,7 @@ var create_template_tmpl = '
\
\
\
\
- \
+ \
\
\
\
@@ -498,7 +498,7 @@ var create_template_tmpl = '
\
\
\
\
- \
+ \
\
\
\
@@ -840,7 +840,7 @@ function updateTemplateInfo(request,template){
var info_tab = {
title: "Information",
content:
- '
\
+ '
\
\
Template "'+template_info.NAME+'" information
\
\
@@ -872,7 +872,7 @@ function updateTemplateInfo(request,template){
};
var template_tab = {
title: "Template",
- content: '
'
@@ -1053,6 +1053,15 @@ function vncIcon(vm){
}
+function vmMonitorError(req,error_json){
+ var message = error_json.error.message;
+ var info = req.request.data[0].monitor;
+ var labels = info.monitor_resources;
+ var id_suffix = labels.replace(/,/g,'_');
+ var id = '#vm_monitor_'+id_suffix;
+ $('#vm_monitoring_tab '+id).html('
'+message+'
');
+}
+
// At this point the DOM is ready and the sunstone.js ready() has been run.
$(document).ready(function(){
diff --git a/src/sunstone/public/js/plugins/vnets-tab.js b/src/sunstone/public/js/plugins/vnets-tab.js
index be5e3f96f2..09c88afc80 100644
--- a/src/sunstone/public/js/plugins/vnets-tab.js
+++ b/src/sunstone/public/js/plugins/vnets-tab.js
@@ -76,7 +76,7 @@ var create_vn_tmpl =
Remove selected\
\
\
- \
+ \
\
\
\
@@ -434,7 +434,7 @@ function updateVNetworkInfo(request,vn){
var template_tab = {
title: "Virtual Network template",
content:
- '