Add interfaces stats api and refactor the others health api. (#7141)

This commit is contained in:
Nicolo Maio 2023-01-27 09:18:03 +00:00
parent 193927107e
commit ba9bfd3d1a
9 changed files with 205 additions and 49 deletions

View file

@ -83,7 +83,7 @@ if(page == "overview") then
};
function refreshRedisStats() {
$.get("]] print(ntop.getHttpPrefix()) print[[/lua/rest/v2/get/redis/redis_info.lua", function(info) {
$.get("]] print(ntop.getHttpPrefix()) print[[/lua/rest/v2/get/system/health/redis.lua", function(info) {
$(".redis-info-load").hide();
info = info.rsp;