mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Add syslog stats to the interface page
This commit is contained in:
parent
3cf25e6e9c
commit
a64095f244
3 changed files with 66 additions and 18 deletions
|
|
@ -208,6 +208,17 @@ function dumpInterfaceStats(ifid)
|
|||
res["tcpPacketStats"]["out_of_order"] = ifstats.tcpPacketStats.out_of_order
|
||||
res["tcpPacketStats"]["lost"] = ifstats.tcpPacketStats.lost
|
||||
|
||||
if interface.isSyslogInterface() then
|
||||
res["syslog"] = {}
|
||||
res["syslog"]["tot_events"] = ifstats.syslog.tot_events
|
||||
res["syslog"]["malformed"] = ifstats.syslog.malformed
|
||||
res["syslog"]["dispatched"] = ifstats.syslog.dispatched
|
||||
res["syslog"]["unhandled"] = ifstats.syslog.unhandled
|
||||
res["syslog"]["alerts"] = ifstats.syslog.alerts
|
||||
res["syslog"]["host_correlations"] = ifstats.syslog.host_correlations
|
||||
res["syslog"]["flows"] = ifstats.syslog.flows
|
||||
end
|
||||
|
||||
if(ifstats["profiles"] ~= nil) then
|
||||
res["profiles"] = ifstats["profiles"]
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue