scripts: add listing for Communities

This commit adds code both to the Lua bindings and scripts to
allow to list Communities and hosts belonging to the communities.
This allows to list hosts of just a community and get the related
info in real time.
This commit is contained in:
Arianna Avanzini 2015-08-01 00:21:55 +02:00
parent 3230294c37
commit 5a76f4bdd4
11 changed files with 322 additions and 4 deletions

View file

@ -101,7 +101,11 @@ print [[/lua/hosts_stats.lua">Hosts</a></li>
if(ntop.hasVLANs()) then
print('<li><a href="'..ntop.getHttpPrefix()..'/lua/vlan_stats.lua">VLANs</a></li>')
end
if (ntop.hasCommunities()) then
print('<li><a href="'..ntop.getHttpPrefix()..'/lua/community_stats.lua">Communities</a></li>')
end
if(_ifstats.iface_sprobe) then
print('<li><a href="'..ntop.getHttpPrefix()..'/lua/processes_stats.lua">Processes</a></li>')
end