Finished Implementation of agent traps and added trap sending API for subagents
[public/netxms.git] / sql / setup.in
CommitLineData
6c9e7d36
VK
1/*
2** Default configuration parameters
b51c8c91
AK
3**
4** ex: syntax=sql
6c9e7d36 5*/
c1142e46 6
333ece94
VK
7INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
8 VALUES ('DBFormatVersion',DB_FORMAT_VERSION,0,1);
70573ffe
VK
9INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
10 VALUES ('DBSyntax',DB_SYNTAX,0,1);
b4895bbe
VK
11INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
12 VALUES ('DBLockStatus','UNLOCKED',0,1);
13INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
14 VALUES ('DBLockInfo','',0,0);
48ad2f8d
VK
15INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
16 VALUES ('DBLockPID','0',0,0);
b1c6ea4a
VK
17INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
18 VALUES ('ServerID','',0,1);
9587eba3
VK
19INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
20 VALUES ('EnableZoning','0',1,1);
333ece94
VK
21INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
22 VALUES ('SyncInterval','60',1,1);
333ece94
VK
23INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
24 VALUES ('DiscoveryPollingInterval','900',1,1);
25INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
56d41577 26 VALUES ('StatusPollingInterval','60',1,1);
333ece94
VK
27INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
28 VALUES ('ConfigurationPollingInterval','3600',1,1);
66485623
VK
29INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
30 VALUES ('RoutingTableUpdateInterval','300',1,1);
a717e56a
VK
31INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
32 VALUES ('ConditionPollingInterval','60',1,1);
333ece94 33INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
9587eba3 34 VALUES ('ResolveNodeNames','1',1,0);
333ece94
VK
35INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
36 VALUES ('NumberOfEventProcessors','1',1,1);
37INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
38 VALUES ('ClientListenerPort','4701',1,1);
39INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
625ad507 40 VALUES ('NumberOfDataCollectors','25',1,1);
d39ca961
IK
41INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
42 VALUES ('NumberOfStatusPollers','10',1,1);
43INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
625ad507 44 VALUES ('NumberOfConfigurationPollers','5',1,1);
bb0a5754
VK
45INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
46 VALUES ('NumberOfDiscoveryPollers','1',1,1);
66485623
VK
47INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
48 VALUES ('NumberOfRoutingTablePollers','5',1,1);
a717e56a
VK
49INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
50 VALUES ('NumberOfConditionPollers','10',1,1);
333ece94 51INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
4bcb6c3b
VK
52//#ifdef DB_MYSQL
53// VALUES ('IDataTableCreationCommand','CREATE TABLE idata_%d (item_id integer not null,idata_timestamp integer not null,idata_value varchar(255) not null) TYPE=InnoDB',0,1);
54//#else
0212dc5a 55 VALUES ('IDataTableCreationCommand','CREATE TABLE idata_%d (item_id integer not null,idata_timestamp integer not null,idata_value varchar(255) not null)',0,1);
4bcb6c3b 56//#endif
f2692e04 57INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
0212dc5a 58 VALUES ('IDataIndexCreationCommand_0','CREATE INDEX idx_idata_%d_item_id ON idata_%d(item_id)',0,1);
dfd24edd 59#ifndef DB_MYSQL
52fe5aa2 60INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
0212dc5a 61 VALUES ('IDataIndexCreationCommand_1','CREATE INDEX idx_idata_%d_timestamp ON idata_%d(idata_timestamp)',0,1);
dfd24edd 62#endif
333ece94
VK
63INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
64 VALUES ('RunNetworkDiscovery','0',1,1);
65INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
66 VALUES ('EnableAdminInterface','1',1,1);
67INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
68 VALUES ('EnableAccessControl','1',1,0);
69INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
70 VALUES ('EnableEventsAccessControl','0',1,0);
71INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
b7be6692 72 VALUES ('EventLogRetentionTime','5184000',1,0); // Default retention time is 60 days == 5184000 seconds
333ece94
VK
73INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
74 VALUES ('HouseKeepingInterval','3600',1,1);
75INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
dfd24edd 76 VALUES ('DeleteEmptySubnets','0',1,1);
333ece94
VK
77INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
78 VALUES ('EnableSNMPTraps','1',1,1);
7cbe553e
VK
79INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
80 VALUES ('SMSDriver','<none>',1,1);
aa975b7e
VK
81INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
82 VALUES ('SMSDrvConfig','',1,1);
083abe62
VK
83INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
84 VALUES ('SMTPServer','localhost',1,0);
85INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
86 VALUES ('SMTPFromAddr','netxms@localhost',1,0);
751f4600
VK
87INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
88 VALUES ('AgentUpgradeWaitTime','600',1,0);
a9052846
VK
89INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
90 VALUES ('NumberOfUpgradeThreads','10',1,0);
dfd24edd
VK
91INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
92 VALUES ('KeepAliveInterval','60',1,1);
305800bf
VK
93INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
94 VALUES ('DefaultEncryptionPolicy','1',1,1);
95INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
96 VALUES ('AllowedCiphers','15',1,1);
dc17b82b
VK
97INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
98 VALUES ('EnableMultipleDBConnections','1',1,1);
99INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
100 VALUES ('NumberOfDatabaseWriters','1',1,1);
7e7357e8
VK
101INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
102 VALUES ('IcmpPingSize','46',1,1);
77edf0b5 103INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
de6e949b 104 VALUES ('EnableSyslogDaemon','0',1,1);
77edf0b5
VK
105INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
106 VALUES ('SyslogListenPort','514',1,1);
cb53cb15
VK
107INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
108 VALUES ('SyslogRetentionTime','5184000',1,0);
b6ce3970
VK
109INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
110 VALUES ('StatusCalculationAlgorithm','1',1,1);
111INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
112 VALUES ('StatusPropagationAlgorithm','1',1,1);
113INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
114 VALUES ('FixedStatusValue','0',1,1);
115INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
116 VALUES ('StatusShift','0',1,1);
117INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
118 VALUES ('StatusTranslation','01020304',1,1);
119INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
120 VALUES ('StatusSingleThreshold','75',1,1);
121INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
122 VALUES ('StatusThresholds','503C2814',1,1);
8d8cd3f8
VK
123INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
124 VALUES ('CapabilityExpirationTime','604800',1,0); // In seconds
269e3aca
VK
125INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
126 VALUES ('DefaultCommunityString','public',1,0);
127INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
128 VALUES ('DiscoveryFilter','none',1,0);
56b32598
VK
129INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
130 VALUES ('LogAllSNMPTraps','0',1,1);
5d8a7f11
VK
131INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
132 VALUES ('DisableVacuum','0',1,0);
7db87985
VK
133INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
134 VALUES ('LockTimeout','60000',1,1);
f3d12ff6
VK
135INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
136 VALUES ('RADIUSServer','localhost',1,0);
137INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
138 VALUES ('RADIUSSecret','netxms',1,0);
139INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
140 VALUES ('RADIUSPort','1645',1,0);
141INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
142 VALUES ('RADIUSNumRetries','5',1,0);
143INSERT INTO config (var_name,var_value,is_visible,need_server_restart)
144 VALUES ('RADIUSTimeout','3',1,0);
9b057805
VK
145
146
6c9e7d36 147/*
383b42a1 148** Default admin user
6c9e7d36 149*/
9b057805 150
383b42a1
VK
151INSERT INTO users (id,name,password,system_access,flags,full_name,
152 description,grace_logins,auth_method,guid)
057f9dfb
VK
153 VALUES (0,'admin',
154 '3A445C0072CD69D9030CC6644020E5C4576051B1', // Default password: netxms
383b42a1
VK
155 65535,8,'','Built-in system administrator account',5,0,
156 '00000000-0000-0000-0000-000000000000'
057f9dfb
VK
157 );
158
159
160/*
161** Special "Everyone" user group
162*/
163
95b6a1b6 164INSERT INTO user_groups (id,name,system_access,flags,description,guid)
383b42a1
VK
165 VALUES (-2147483648, 'Everyone', 16, 0, 'Built-in everyone group',
166 '00000000-0000-0000-0000-000000000000'
167 );
b6a77d6d
VK
168
169
3c468b80
VK
170/*
171** Default event groups
172*/
173
c6576857
VK
174#define ID_GROUP_1 -2147483647
175#define ID_GROUP_2 -2147483646
3c468b80 176
feea53fd 177INSERT INTO event_groups (id,name,description)
3c468b80 178 VALUES (ID_GROUP_1,'NodeStatus','All events reporting about node status change');
feea53fd 179INSERT INTO event_groups (id,name,description)
3c468b80
VK
180 VALUES (ID_GROUP_2,'NewObjects','All events reporting about new objects creation');
181
c19b2871
VK
182INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_NORMAL);
183INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_MINOR);
184INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_WARNING);
185INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_MAJOR);
186INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_CRITICAL);
187INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_UNKNOWN);
188INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_1,EVENT_NODE_UNMANAGED);
189
190INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_2,EVENT_NODE_ADDED);
191INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_2,EVENT_SUBNET_ADDED);
192INSERT INTO event_group_members (group_id,event_code) VALUES (ID_GROUP_2,EVENT_INTERFACE_ADDED);
ef44d5ea
VK
193
194
195/*
196** Default container categories
197*/
198
199INSERT INTO container_categories (category,name,image_id,description)
200 VALUES (1,'Group',0,'Generic object group');
201INSERT INTO container_categories (category,name,image_id,description)
202 VALUES (2,'Location',0,'Geografic location');
203INSERT INTO container_categories (category,name,image_id,description)
204 VALUES (3,'Service',0,'Logical service');
5e918a37
VK
205
206
207/*
208** SNMP OID to node type mappings
209*/
210
211INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
212 VALUES (0,'.1.3.6.1.4.1.2272.*',NODE_TYPE_NORTEL_ACCELAR,0);
8cbff47b
VK
213INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
214 VALUES (1,'.1.3.6.1.4.1.3224.1.*',NODE_TYPE_NETSCREEN,0);
7e3ae259
VK
215INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
216 VALUES (2,'.1.3.6.1.4.1.45.3.26.*',NODE_TYPE_NORTEL_BAYSTACK,0);
217INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
218 VALUES (3,'.1.3.6.1.4.1.45.3.30.*',NODE_TYPE_NORTEL_BAYSTACK,0);
219INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
220 VALUES (4,'.1.3.6.1.4.1.45.3.31.*',NODE_TYPE_NORTEL_BAYSTACK,0);
221INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
222 VALUES (5,'.1.3.6.1.4.1.45.3.32.*',NODE_TYPE_NORTEL_BAYSTACK,0);
223INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
224 VALUES (6,'.1.3.6.1.4.1.45.3.33.*',NODE_TYPE_NORTEL_BAYSTACK,0);
225INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
226 VALUES (7,'.1.3.6.1.4.1.45.3.34.*',NODE_TYPE_NORTEL_BAYSTACK,0);
227INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
228 VALUES (8,'.1.3.6.1.4.1.45.3.35.*',NODE_TYPE_NORTEL_BAYSTACK,0);
229INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
230 VALUES (9,'.1.3.6.1.4.1.45.3.36.*',NODE_TYPE_NORTEL_BAYSTACK,0);
231INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
232 VALUES (10,'.1.3.6.1.4.1.45.3.40.*',NODE_TYPE_NORTEL_BAYSTACK,0);
233INSERT INTO oid_to_type (pair_id,snmp_oid,node_type,node_flags)
234 VALUES (11,'.1.3.6.1.4.1.45.3.61.*',NODE_TYPE_NORTEL_BAYSTACK,0);