mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Allows alerts to be configured on view interfaces
This commit is contained in:
parent
893073dcd6
commit
5270d09490
4 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue