Allows alerts to be configured on view interfaces

This commit is contained in:
Simone Mainardi 2019-07-19 12:43:31 +02:00
parent 893073dcd6
commit 5270d09490
4 changed files with 5 additions and 6 deletions

View file

@ -399,7 +399,7 @@ if(not(isLoopback(ifname))) then
end
end
if (host["ip"] ~= nil) and areAlertsEnabled() and not ifstats.isView then
if (host["ip"] ~= nil) and areAlertsEnabled() then
if(page == "alerts") then
print("\n<li class=\"active\"><a href=\"#\"><i class=\"fa fa-warning fa-lg\"></i></a></li>\n")
elseif interface.isPcapDumpInterface() == false then
@ -409,7 +409,7 @@ end
end -- not only_historical
if((page == "historical") or ts_utils.exists("host:traffic", {ifid=ifId, host=tskey})) or hasNindexSupport() then
if((page == "historical") or ts_utils.exists("host:traffic", {ifid = ifId, host = tskey})) or hasNindexSupport() then
if(page == "historical") then
print("\n<li class=\"active\"><a href=\"#\"><i class='fa fa-area-chart fa-lg'></i></a></li>\n")
else