mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Adds name resolutions to alerts stats
This commit is contained in:
parent
88ad118f47
commit
619f2f1ac4
2 changed files with 14 additions and 14 deletions
|
|
@ -731,10 +731,10 @@ function drawAlertStatsCharts()
|
|||
|
||||
var sparkline = $("#count-sparkline").peity("line", { width: 180, height: 40, max: null });
|
||||
|
||||
var formatHost = function(host){
|
||||
var formatHost = function(item){
|
||||
var url = "]] print (ntop.getHttpPrefix()) print[[/lua/host_details.lua";
|
||||
url += "?page=alerts&host=" + host;
|
||||
return "<a href='" + url + "'>" + host.replace("@0","") + "</a>"
|
||||
url += "?page=alerts&host=" + item.host;
|
||||
return "<a href='" + url + "'>" + item.hostname + "</a>"
|
||||
}
|
||||
|
||||
var url = "]] print (ntop.getHttpPrefix()) print[[/lua/get_alerts_stats_data.lua";
|
||||
|
|
@ -777,7 +777,7 @@ function drawAlertStatsCharts()
|
|||
$("#]] print(top_what) print[[ tr").remove();
|
||||
var content = jQuery.parseJSON(rsp);
|
||||
$.each(content, function(index, item){
|
||||
$("#]] print(top_what) print[[").append('<tr><td>' + formatHost(item.host) + '</td><td>' + fint(item.value) + '</td></tr>');
|
||||
$("#]] print(top_what) print[[").append('<tr><td>' + formatHost(item) + '</td><td>' + fint(item.value) + '</td></tr>');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue