File: alert_entities.lua

package info (click to toggle)
ntopng 5.2.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 121,832 kB
  • sloc: javascript: 143,431; cpp: 71,175; ansic: 11,108; sh: 4,687; makefile: 911; python: 587; sql: 512; pascal: 234; perl: 118; ruby: 52; exp: 4
file content (86 lines) | stat: -rw-r--r-- 2,809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
--
-- (C) 2020-22 - ntop.org
--

-- ##############################################

-- Keep in sync with ntop_typedefs.h:AlertEntity and alert_store_schema.sql
local alert_entities = {
   interface = {
      entity_id = 0,
      i18n_label = "alert_entities.interface",
      pools = "interface_pools", -- modules/pools/interface_pools.lua
      alert_store_name = "interface",
   }, host = {
      entity_id = 1,
      i18n_label = "alert_entities.host",
      pools = "host_pools", -- modules/pools/host_pools.lua
      alert_store_name = "host",
   }, network = {
      entity_id = 2,
      i18n_label = "alert_entities.network",
      pools = "local_network_pools", -- modules/pools/local_network_pools.lua
      alert_store_name = "network",
   }, snmp_device = {
      entity_id = 3,
      i18n_label = "alert_entities.snmp_device",
      pools = "snmp_device_pools", -- modules/pools/snmp_device_pools.lua
      alert_store_name = "snmp_device",
   }, flow = {
      entity_id = 4,
      i18n_label = "alert_entities.flow",
      pools = "flow_pools", -- modules/pools/flow_pools.lua
      alert_store_name = "flow",
   }, mac = {
      entity_id = 5,
      i18n_label = "alert_entities.mac",
      pools = "mac_pools", -- modules/pools/mac_pools.lua
      alert_store_name = "mac",
   }, host_pool = {
      entity_id = 6,
      i18n_label = "alert_entities.host_pool",
      pools = "host_pool_pools", -- modules/pools/host_pool_pools.lua
      alert_store_name = "system",
   }, user = {
      entity_id = 7,
      i18n_label = "alert_entities.user",
      pools = "system_pools", -- modules/pools/system_pools.lua
      alert_store_name = "user",
   }, am_host = {
      entity_id = 8,
      i18n_label = "alert_entities.am_host",
      pools = "active_monitoring_pools", -- modules/pools/active_monitoring_pools.lua
      alert_store_name = "am",
   }, system = {
      entity_id = 9,
      i18n_label = "alert_entities.system",
      pools = "system_pools", -- modules/pools/system_pools.lua
      alert_store_name = "system",
   }, test = {
      entity_id =10,
      i18n_label = "alert_entities.test",
      pools = "system_pools", -- modules/pools/system_pools.lua
      alert_store_name = "system",
   }, asn = {
      entity_id = 11,
      i18n_label = "alert_entities.asn",
      pools = nil, -- no pool for other
   }, l7 = {
      entity_id = 12,
      i18n_label = "alert_entities.l7",
      pools = nil, -- no pool for other
   }, domain = {
      entity_id = 12,
      i18n_label = "alert_entities.domain",
      pools = nil, -- no pool for other
   }, other = {
      entity_id = 15,
      i18n_label = "alert_entities.other",
      pools = nil, -- no pool for other
      alert_store_name = "system",
   }
}

-- ##############################################

return alert_entities