Commit | Line | Data |
---|---|---|
6c9e7d36 VK |
1 | /* |
2 | ** Default configuration parameters | |
b51c8c91 AK |
3 | ** |
4 | ** ex: syntax=sql | |
6c9e7d36 | 5 | */ |
c1142e46 | 6 | |
333ece94 VK |
7 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
8 | VALUES ('DBFormatVersion',DB_FORMAT_VERSION,0,1); | |
9 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
10 | VALUES ('SyncInterval','60',1,1); | |
11 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
12 | VALUES ('NewNodePollingInterval','60',1,1); | |
13 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
14 | VALUES ('DiscoveryPollingInterval','900',1,1); | |
15 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
16 | VALUES ('StatusPollingInterval','30',1,1); | |
17 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
18 | VALUES ('ConfigurationPollingInterval','3600',1,1); | |
19 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
20 | VALUES ('ResolveNodeNames','0',1,0); | |
21 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
22 | VALUES ('NumberOfEventProcessors','1',1,1); | |
23 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
24 | VALUES ('ClientListenerPort','4701',1,1); | |
25 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
26 | VALUES ('NumberOfDataCollectors','10',1,1); | |
27 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
28 | VALUES ('IDataTableCreationCommand','CREATE TABLE idata_%d (item_id integer not null,idata_timestamp integer,idata_value varchar(255))',0,1); | |
29 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
30 | VALUES ('RunNetworkDiscovery','0',1,1); | |
31 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
32 | VALUES ('EnableAdminInterface','1',1,1); | |
33 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
34 | VALUES ('EnableAccessControl','1',1,0); | |
35 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
36 | VALUES ('EnableEventsAccessControl','0',1,0); | |
37 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
38 | VALUES ('EventLogRetentionTime','5184000',1,0); // Default retention time is 60 days == 5184000 seconds | |
39 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
40 | VALUES ('HouseKeepingInterval','3600',1,1); | |
41 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
42 | VALUES ('DeleteEmptySubnets','1',1,1); | |
43 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
44 | VALUES ('EnableSNMPTraps','1',1,1); | |
9b057805 VK |
45 | |
46 | ||
6c9e7d36 VK |
47 | /* |
48 | ** Default users | |
49 | */ | |
9b057805 | 50 | |
00c79c7b | 51 | INSERT INTO users (id,name,password,access,flags,full_name,description) |
057f9dfb VK |
52 | VALUES (0,'admin', |
53 | '3A445C0072CD69D9030CC6644020E5C4576051B1', // Default password: netxms | |
00c79c7b | 54 | 65535,8,'','Built-in system administrator account' |
057f9dfb | 55 | ); |
00c79c7b | 56 | INSERT INTO users (id,name,password,access,flags,full_name,description) |
057f9dfb | 57 | VALUES (1,'guest','DA39A3EE5E6B4B0D3255BFEF95601890AFD80709', // Default password is empty |
00c79c7b | 58 | 0,0,'','Default guest user' |
057f9dfb VK |
59 | ); |
60 | ||
61 | ||
62 | /* | |
63 | ** Special "Everyone" user group | |
64 | */ | |
65 | ||
00c79c7b VK |
66 | INSERT INTO user_groups (id,name,access,flags,description) |
67 | VALUES (-2147483648, 'Everyone', 16, 0, 'Built-in everyone group'); | |
b6a77d6d VK |
68 | |
69 | ||
70 | /* | |
71 | ** Component lock table | |
72 | */ | |
73 | ||
74 | INSERT INTO locks (component_id,component_name,lock_status,owner_info) | |
3c468b80 | 75 | VALUES (CID_NETXMS_INSTANCE,'NetXMS Server Instance',-1,''); |
b6a77d6d | 76 | INSERT INTO locks (component_id,component_name,lock_status,owner_info) |
3c468b80 | 77 | VALUES (CID_EPP,'Event Processing Policy',-1,''); |
b6a77d6d | 78 | INSERT INTO locks (component_id,component_name,lock_status,owner_info) |
1b3e2cfe | 79 | VALUES (CID_USER_DB,'User Database',-1,''); |
3c468b80 | 80 | INSERT INTO locks (component_id,component_name,lock_status,owner_info) |
9fd5ec9e | 81 | VALUES (CID_EVENT_DB,'Event Configuration Database',-1,''); |
c9363772 VK |
82 | INSERT INTO locks (component_id,component_name,lock_status,owner_info) |
83 | VALUES (CID_ACTION_DB,'Action Configuration Database',-1,''); | |
3c468b80 VK |
84 | |
85 | ||
86 | /* | |
87 | ** Default event groups | |
88 | */ | |
89 | ||
c6576857 VK |
90 | #define ID_GROUP_1 -2147483647 |
91 | #define ID_GROUP_2 -2147483646 | |
3c468b80 | 92 | |
feea53fd | 93 | INSERT INTO event_groups (id,name,description) |
3c468b80 | 94 | VALUES (ID_GROUP_1,'NodeStatus','All events reporting about node status change'); |
feea53fd | 95 | INSERT INTO event_groups (id,name,description) |
3c468b80 VK |
96 | VALUES (ID_GROUP_2,'NewObjects','All events reporting about new objects creation'); |
97 | ||
feea53fd VK |
98 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_1,EVENT_NODE_NORMAL); |
99 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_1,EVENT_NODE_MINOR); | |
100 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_1,EVENT_NODE_WARNING); | |
101 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_1,EVENT_NODE_MAJOR); | |
102 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_1,EVENT_NODE_CRITICAL); | |
103 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_1,EVENT_NODE_UNKNOWN); | |
104 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_1,EVENT_NODE_UNMANAGED); | |
3c468b80 | 105 | |
feea53fd VK |
106 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_2,EVENT_NODE_ADDED); |
107 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_2,EVENT_SUBNET_ADDED); | |
108 | INSERT INTO event_group_members (group_id,event_id) VALUES (ID_GROUP_2,EVENT_INTERFACE_ADDED); | |
ef44d5ea VK |
109 | |
110 | ||
111 | /* | |
112 | ** Default container categories | |
113 | */ | |
114 | ||
115 | INSERT INTO container_categories (category,name,image_id,description) | |
116 | VALUES (1,'Group',0,'Generic object group'); | |
117 | INSERT INTO container_categories (category,name,image_id,description) | |
118 | VALUES (2,'Location',0,'Geografic location'); | |
119 | INSERT INTO container_categories (category,name,image_id,description) | |
120 | VALUES (3,'Service',0,'Logical service'); |