Simone Mainardi
73ac8af04f
Fixes recipients for SNMP device interfaces notifications
2020-07-30 16:06:46 +02:00
Simone Mainardi
d89d97e59b
Migrates snmp user scripts to the new snmp device pools configuration
2020-07-10 19:46:34 +02:00
Simone Mainardi
09c69edb22
Major rework of user_scripts.lua to use new pools
2020-07-10 13:01:29 +02:00
Simone Mainardi
46c5439549
Removes SNMP interfaces_status no longer used
2020-06-15 18:09:47 +02:00
Simone Mainardi
cd4a513b0f
Implements snmp_consts.lua with SNMP consts
2020-06-10 15:40:47 +02:00
Simone Mainardi
0bbb30e13e
Refactors snmp_utils global methods into module functions
2020-06-10 13:09:30 +02:00
Simone Mainardi
8a3e65ac50
Requires snmp_utils as local module
2020-06-10 12:17:25 +02:00
Simone Mainardi
54dd2e5c8a
Adds a safety check on cached_device
2020-06-09 19:05:13 +02:00
Simone Mainardi
8609e0bc2e
Avoids adding URLs for SNMP device interfaces no longer existing
2020-06-09 11:48:28 +02:00
Simone Mainardi
c2847398c2
Adjusts SNMP device interface scripts to use snmp_cached_dev.lua
2020-06-09 10:57:54 +02:00
Simone Mainardi
220359981f
Adjusts SNMP device scripts to use snmp_cached_dev.lua
2020-06-09 09:47:33 +02:00
Simone Mainardi
e487427aab
Refactors alert_utils and enterprise_alert_utils
...
Addresses #3720
Alerts Refactor: alert_utils as module
Alerts Refactor: notify_ntopng_start and notify_ntopng_stop
Alerts Refactor: processAlertNotifications
Alerts Refactor: checkStoreAlertsFromC
Alerts Refactor: formatAlertNotification
Alerts Refactor: notification_timestamp_rev
Alerts Refactor: formatAlertMessage
Alerts Refactor: getConfigsetAlertLink
Alerts Refactor: alertNotificationActionToLabel
Alerts Refactor: flushAlertsData
Alerts Refactor: disableAlertsGeneration
Alerts Refactor: newAlertsWorkingStatus and other
Alerts Refactor: drawAlerts
Alerts Refactor: drawAlertTables
Alerts Refactor: printAlertTables
Alerts Refactor: checkDeleteStoredAlerts
Alerts Refactor: getUnpagedAlertOptions
Alerts Refactor: getTabParameters
Alerts Refactor: getAlerts
Alerts Refactor: getNumAlerts
Alerts Refactor: performAlertsQuery
Alerts Refactor: sec2granularity
Alerts Refactor: granularity2id
Alerts Refactor: granularity2sec
Alerts Refactor: alertEngineLabel
Alerts Refactor: alertEngine
Alerts Refactor: alertEngineRaw
Alerts Refactor: alertTypeDescription
Alerts Refactor: alertType
Alerts Refactor: alertTypeLabel
Alerts Refactor: alertTypeRaw
Alerts Refactor: alertSeverity
Alerts Refactor: alertSeverityLabel
Alerts Refactor: alertSeverityRaw
Alerts Refactor: get_make_room_keys
Alerts Refactor: enterprise_alert_utils
2020-04-10 14:03:20 +02:00
emanuele-f
983fea5701
Fix bad SNMP interface formatter
...
Fixes #3659
2020-03-27 17:40:51 +01:00
emanuele-f
7e6909b561
Add now timestamp in SNMP
2020-02-11 17:33:19 +01:00
emanuele-f
242a9c8632
Fix SNMP scripts invoked also when disabled
2020-01-22 18:33:49 +01:00
emanuele-f
eafa80da09
Fixes for the 'all' hook
2020-01-22 16:54:33 +01:00
emanuele-f
aca088ea13
Add hyperlink to jump to the alert configuration
...
Closes #2936
2020-01-17 19:11:15 +01:00
Luca Deri
170bc60f19
Updated (C)
2020-01-08 23:52:51 +01:00
emanuele-f
d037f9a9a4
Use new user scripts config and gui
...
The user scripts configuration can now be configured from the "User Scripts" entry under the cog
icon. It allows the creation of multiple configuration presets to be applied to hosts, networks and
interfaces.
2020-01-03 13:03:34 +01:00
emanuele-f
c665bc78d7
Make configsets global
2019-12-23 13:25:35 +01:00
emanuele-f
c6c6c46132
Implement configsets target hosts CIDR match
2019-12-20 14:27:38 +01:00
emanuele-f
c95473d659
Add snmpDevice hook and improve SNMP user scripts API
...
Closes #3097
2019-12-16 15:30:15 +01:00
emanuele-f
b10520e264
Rename checkAlerts callback to runScripts
2019-12-16 09:31:24 +01:00
emanuele-f
0d48bff069
Implement more flexible user_scripts api
...
NOTE: The existing alerts configuration of the users will be discarded.
Some code has been added to make the current gui on/off toggle work.
It is marked with the following comment:
-- TODO remove after implementing the new gui
2019-11-28 11:06:14 +01:00
Simone Mainardi
188ec66c25
Implements scriptable SNMP devices alerts
2019-11-22 18:00:31 +01:00