Skip to content

Commit

Permalink
Moved links to active monitoring page
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Jan 28, 2025
1 parent 963579b commit 508f3a9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/lua/host_details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ else

print([[
<td colspan="2">
<a href=']] .. ntop.getHttpPrefix() .. [[/lua/monitor/active_monitoring_monitor.lua?am_host=]] ..
<a href=']] .. ntop.getHttpPrefix() .. [[/lua/active_monitoring.lua?host=]] ..
host['ip'] .. [[&measurement=]] .. icmp .. [['>]] .. last_rtt .. [[</a>
</td>
]])
Expand Down
4 changes: 2 additions & 2 deletions scripts/lua/inc/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ else
url = "/lua/pro/enterprise/snmpdevices_stats.lua"
}, {
entry = page_utils.menu_entries.active_monitoring,
url = "/lua/monitor/active_monitoring_monitor.lua"
url = "/lua/active_monitoring.lua"
}, {
entry = page_utils.menu_entries.vulnerability_scan,
url = '/lua/vulnerability_scan.lua',
Expand Down Expand Up @@ -556,7 +556,7 @@ local poller_entries = {
}, {
entry = page_utils.menu_entries.active_monitoring,
hidden = not is_system_interface,
url = "/lua/monitor/active_monitoring_monitor.lua"
url = "/lua/active_monitoring.lua"
}
}

Expand Down
6 changes: 3 additions & 3 deletions scripts/lua/modules/alert_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,18 @@ function alert_utils.getConfigsetAlertLink(alert_json, alert --[[ optional --]],
local measurement = alert_json.host.measurement or alert_json.measurement
if measurement then
return
' <a href="' .. ntop.getHttpPrefix() .. '/lua/monitor/active_monitoring_monitor.lua?am_host=' ..
' <a href="' .. ntop.getHttpPrefix() .. '/lua/active_monitoring.lua?host=' ..
host .. '&measurement=' .. measurement .. '&page=overview"><i class="fas fa-cog" title="' ..
i18n("edit_configuration") .. '"></i></a>'
else
return
' <a href="' .. ntop.getHttpPrefix() .. '/lua/monitor/active_monitoring_monitor.lua?am_host=' ..
' <a href="' .. ntop.getHttpPrefix() .. '/lua/active_monitoring.lua?host=' ..
host .. '&page=overview"><i class="fas fa-cog" title="' .. i18n("edit_configuration") ..
'"></i></a>'
end
else
return ' <a href="' .. ntop.getHttpPrefix() ..
'/lua/monitor/active_monitoring_monitor.lua?page=overview"><i class="fas fa-cog" title="' ..
'/lua/active_monitoring.lua?page=overview"><i class="fas fa-cog" title="' ..
i18n("edit_configuration") .. '"></i></a>'
end
elseif info then
Expand Down

0 comments on commit 508f3a9

Please sign in to comment.