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