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); | |
70573ffe VK |
9 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
10 | VALUES ('DBSyntax',DB_SYNTAX,0,1); | |
b4895bbe VK |
11 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
12 | VALUES ('DBLockStatus','UNLOCKED',0,1); | |
13 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
14 | VALUES ('DBLockInfo','',0,0); | |
b1c6ea4a VK |
15 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
16 | VALUES ('ServerID','',0,1); | |
333ece94 VK |
17 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
18 | VALUES ('SyncInterval','60',1,1); | |
19 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
20 | VALUES ('NewNodePollingInterval','60',1,1); | |
21 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
22 | VALUES ('DiscoveryPollingInterval','900',1,1); | |
23 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
56d41577 | 24 | VALUES ('StatusPollingInterval','60',1,1); |
333ece94 VK |
25 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
26 | VALUES ('ConfigurationPollingInterval','3600',1,1); | |
27 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
28 | VALUES ('ResolveNodeNames','0',1,0); | |
29 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
30 | VALUES ('NumberOfEventProcessors','1',1,1); | |
31 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
32 | VALUES ('ClientListenerPort','4701',1,1); | |
33 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
34 | VALUES ('NumberOfDataCollectors','10',1,1); | |
d39ca961 IK |
35 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
36 | VALUES ('NumberOfStatusPollers','10',1,1); | |
37 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
38 | VALUES ('NumberOfConfigurationPollers','4',1,1); | |
333ece94 | 39 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
cb7ec554 | 40 | #ifdef DB_MYSQL |
f2692e04 | 41 | VALUES ('IDataTableCreationCommand','CREATE TABLE idata_%ld (item_id integer not null,idata_timestamp integer,idata_value varchar(255)) TYPE=InnoDB',0,1); |
cb7ec554 | 42 | #else |
f2692e04 | 43 | VALUES ('IDataTableCreationCommand','CREATE TABLE idata_%ld (item_id integer not null,idata_timestamp integer,idata_value varchar(255))',0,1); |
cb7ec554 | 44 | #endif |
f2692e04 | 45 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
52fe5aa2 | 46 | VALUES ('IDataIndexCreationCommand_0','CREATE INDEX idx_item_id ON idata_%ld(item_id)',0,1); |
dfd24edd | 47 | #ifndef DB_MYSQL |
52fe5aa2 VK |
48 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
49 | VALUES ('IDataIndexCreationCommand_1','CREATE INDEX idx_timestamp ON idata_%ld(idata_timestamp)',0,1); | |
dfd24edd | 50 | #endif |
333ece94 VK |
51 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
52 | VALUES ('RunNetworkDiscovery','0',1,1); | |
53 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
54 | VALUES ('EnableAdminInterface','1',1,1); | |
55 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
56 | VALUES ('EnableAccessControl','1',1,0); | |
57 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
58 | VALUES ('EnableEventsAccessControl','0',1,0); | |
59 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
60 | VALUES ('EventLogRetentionTime','5184000',1,0); // Default retention time is 60 days == 5184000 seconds | |
61 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
62 | VALUES ('HouseKeepingInterval','3600',1,1); | |
63 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
dfd24edd | 64 | VALUES ('DeleteEmptySubnets','0',1,1); |
333ece94 VK |
65 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
66 | VALUES ('EnableSNMPTraps','1',1,1); | |
7cbe553e VK |
67 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
68 | VALUES ('SMSDriver','<none>',1,1); | |
083abe62 VK |
69 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
70 | VALUES ('SMTPServer','localhost',1,0); | |
71 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) | |
72 | VALUES ('SMTPFromAddr','netxms@localhost',1,0); | |
751f4600 VK |
73 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
74 | VALUES ('AgentUpgradeWaitTime','600',1,0); | |
a9052846 VK |
75 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
76 | VALUES ('NumberOfUpgradeThreads','10',1,0); | |
dfd24edd VK |
77 | INSERT INTO config (var_name,var_value,is_visible,need_server_restart) |
78 | VALUES ('KeepAliveInterval','60',1,1); | |
9b057805 VK |
79 | |
80 | ||
6c9e7d36 VK |
81 | /* |
82 | ** Default users | |
83 | */ | |
9b057805 | 84 | |
00c79c7b | 85 | INSERT INTO users (id,name,password,access,flags,full_name,description) |
057f9dfb VK |
86 | VALUES (0,'admin', |
87 | '3A445C0072CD69D9030CC6644020E5C4576051B1', // Default password: netxms | |
00c79c7b | 88 | 65535,8,'','Built-in system administrator account' |
057f9dfb | 89 | ); |
00c79c7b | 90 | INSERT INTO users (id,name,password,access,flags,full_name,description) |
057f9dfb | 91 | VALUES (1,'guest','DA39A3EE5E6B4B0D3255BFEF95601890AFD80709', // Default password is empty |
00c79c7b | 92 | 0,0,'','Default guest user' |
057f9dfb VK |
93 | ); |
94 | ||
95 | ||
96 | /* | |
97 | ** Special "Everyone" user group | |
98 | */ | |
99 | ||
00c79c7b VK |
100 | INSERT INTO user_groups (id,name,access,flags,description) |
101 | VALUES (-2147483648, 'Everyone', 16, 0, 'Built-in everyone group'); | |
b6a77d6d VK |
102 | |
103 | ||
3c468b80 VK |
104 | /* |
105 | ** Default event groups | |
106 | */ | |
107 | ||
c6576857 VK |
108 | #define ID_GROUP_1 -2147483647 |
109 | #define ID_GROUP_2 -2147483646 | |
3c468b80 | 110 | |
feea53fd | 111 | INSERT INTO event_groups (id,name,description) |
3c468b80 | 112 | VALUES (ID_GROUP_1,'NodeStatus','All events reporting about node status change'); |
feea53fd | 113 | INSERT INTO event_groups (id,name,description) |
3c468b80 VK |
114 | VALUES (ID_GROUP_2,'NewObjects','All events reporting about new objects creation'); |
115 | ||
c19b2871 VK |
116 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_NORMAL); |
117 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_MINOR); | |
118 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_WARNING); | |
119 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_MAJOR); | |
120 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_CRITICAL); | |
121 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_UNKNOWN); | |
122 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_UNMANAGED); | |
123 | ||
124 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_2,EVENT_NODE_ADDED); | |
125 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_2,EVENT_SUBNET_ADDED); | |
126 | INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_2,EVENT_INTERFACE_ADDED); | |
ef44d5ea VK |
127 | |
128 | ||
129 | /* | |
130 | ** Default container categories | |
131 | */ | |
132 | ||
133 | INSERT INTO container_categories (category,name,image_id,description) | |
134 | VALUES (1,'Group',0,'Generic object group'); | |
135 | INSERT INTO container_categories (category,name,image_id,description) | |
136 | VALUES (2,'Location',0,'Geografic location'); | |
137 | INSERT INTO container_categories (category,name,image_id,description) | |
138 | VALUES (3,'Service',0,'Logical service'); | |
5e918a37 VK |
139 | |
140 | ||
141 | /* | |
142 | ** SNMP OID to node type mappings | |
143 | */ | |
144 | ||
145 | INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags) | |
146 | VALUES (0,'.1.3.6.1.4.1.2272.*',NODE_TYPE_NORTEL_ACCELAR,0); |