mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Trigger an informative alert when an host pool is activated/deactivated
Closes #1363
This commit is contained in:
parent
85298201c7
commit
0f198dd638
10 changed files with 133 additions and 4 deletions
|
|
@ -229,7 +229,7 @@ function printAlerts()
|
|||
|
||||
print('<tr id="row_alerts_informative_header" ')
|
||||
if (showElements == false) then print(' style="display:none;"') end
|
||||
print('><th colspan=2 class="info">'..i18n("prefs.devices_alerts")..'</th></tr>')
|
||||
print('><th colspan=2 class="info">'..i18n("prefs.status_alerts")..'</th></tr>')
|
||||
|
||||
prefsToggleButton({
|
||||
field = "toggle_device_first_seen_alert",
|
||||
|
|
@ -247,6 +247,14 @@ function printAlerts()
|
|||
redis_prefix = "ntopng.prefs.alerts.",
|
||||
})
|
||||
|
||||
prefsToggleButton({
|
||||
field = "toggle_pool_activation_alert",
|
||||
pref = "pool_connection_alert",
|
||||
default = "0",
|
||||
hidden = not showElements,
|
||||
redis_prefix = "ntopng.prefs.alerts.",
|
||||
})
|
||||
|
||||
print('<tr id="row_alerts_retention_header" ')
|
||||
if (showElements == false) then print(' style="display:none;"') end
|
||||
print('><th colspan=2 class="info">'..i18n("prefs.alerts_retention")..'</th></tr>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue