mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Reworks active monitoring plugin structure
This commit is contained in:
parent
5317445eda
commit
705807ad9d
44 changed files with 251 additions and 336 deletions
|
|
@ -428,16 +428,19 @@ local poller_entries = {
|
|||
entry = page_utils.menu_entries.infrastructure_dashboard,
|
||||
hidden = (not ntop.isEnterpriseL() and not ntop.isnEdgeEnterprise()) or not is_admin,
|
||||
url = '/lua/pro/enterprise/infrastructure_dashboard.lua'
|
||||
},
|
||||
{
|
||||
entry = page_utils.menu_entries.snmp,
|
||||
hidden = not is_system_interface or (not ntop.isEnterpriseM() and not ntop.isnEdgeEnterprise()),
|
||||
url = "/lua/pro/enterprise/snmpdevices_stats.lua",
|
||||
},
|
||||
{
|
||||
entry = page_utils.menu_entries.active_monitoring,
|
||||
hidden = not is_system_interface,
|
||||
url = "/lua/active_monitoring_stats.lua",
|
||||
}
|
||||
}
|
||||
|
||||
-- Add SNMP to the poller entries
|
||||
poller_entries[#poller_entries + 1] = {
|
||||
entry = page_utils.menu_entries.snmp,
|
||||
hidden = not is_system_interface or (not ntop.isEnterpriseM() and not ntop.isnEdgeEnterprise()),
|
||||
url = "/lua/pro/enterprise/snmpdevices_stats.lua",
|
||||
}
|
||||
|
||||
-- Add plugin entries relative to pollers (e.g., active monitoring) ...
|
||||
for k, entry in pairsByField(page_utils.plugins_menu, "sort_order", rev) do
|
||||
if entry.menu_entry.section == page_utils.menu_sections.pollers.key then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue