- Implemented interface for SMS drivers
[public/netxms.git] / sql / events.in
CommitLineData
6c9e7d36
VK
1/*
2** System-defined events
b51c8c91
AK
3**
4** ex: syntax=sql
6c9e7d36 5*/
c1142e46 6
b900a78b 7#define THRESHOLD_EVENT_PARAMS \
6ad5eb6d 8 ' 1) Parameter name#0D#0A 2) Item description#0D#0A 3) Threshold value#0D#0A 4) Actual value#0D#0A 5) Data collection item ID#0D#0A 6) Instance'
b900a78b
VK
9
10
11/*
12** System events
13*/
14
c19b2871 15INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
c1142e46 16 (
333ece94
VK
17 EVENT_NODE_ADDED, 'SYS_NODE_ADDED',
18 EVENT_SEVERITY_NORMAL, 1,
c1142e46 19 'Node added',
e42108f0
VK
20 'Generated when new node object added to the database.#0D#0A' CONCAT
21 'Parameters:#0D#0A' CONCAT
c1142e46
VK
22 ' No message-specific parameters'
23 );
c19b2871 24INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
c1142e46 25 (
333ece94
VK
26 EVENT_SUBNET_ADDED, 'SYS_SUBNET_ADDED',
27 EVENT_SEVERITY_NORMAL, 0,
c1142e46 28 'Subnet added',
e42108f0
VK
29 'Generated when new subnet object added to the database.#0D#0A' CONCAT
30 'Parameters:#0D#0A' CONCAT
c1142e46
VK
31 ' No message-specific parameters'
32 );
c19b2871 33INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
c1142e46 34 (
333ece94
VK
35 EVENT_INTERFACE_ADDED, 'SYS_IF_ADDED',
36 EVENT_SEVERITY_NORMAL, 1,
6a402fbc 37 'Interface "%2" added (IP Addr: %3/%4, IfIndex: %5)',
e42108f0
VK
38 'Generated when new interface object added to the database.#0D#0A' CONCAT
39 'Please note that source of event is node, not an interface itself.#0D#0A' CONCAT
40 'Parameters:#0D#0A' CONCAT
41 ' 1) Interface object ID#0D#0A' CONCAT
42 ' 2) Interface name#0D#0A' CONCAT
43 ' 3) Interface IP address#0D#0A' CONCAT
44 ' 4) Interface netmask#0D#0A' CONCAT
c1142e46
VK
45 ' 5) Interface index'
46 );
c19b2871 47INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 48 (
333ece94
VK
49 EVENT_INTERFACE_UP, 'SYS_IF_UP',
50 EVENT_SEVERITY_NORMAL, 1,
6a402fbc 51 'Interface "%2" changed state to UP (IP Addr: %3/%4, IfIndex: %5)',
e42108f0
VK
52 'Generated when interface goes up.#0D#0A' CONCAT
53 'Please note that source of event is node, not an interface itself.#0D#0A' CONCAT
54 'Parameters:#0D#0A' CONCAT
55 ' 1) Interface object ID#0D#0A' CONCAT
56 ' 2) Interface name#0D#0A' CONCAT
57 ' 3) Interface IP address#0D#0A' CONCAT
58 ' 4) Interface netmask#0D#0A' CONCAT
071a9d0a
VK
59 ' 5) Interface index'
60 );
c19b2871 61INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 62 (
333ece94 63 EVENT_INTERFACE_DOWN, 'SYS_IF_DOWN',
3c468b80 64 EVENT_SEVERITY_WARNING, 1,
6a402fbc 65 'Interface "%2" changed state to DOWN (IP Addr: %3/%4, IfIndex: %5)',
e42108f0
VK
66 'Generated when interface goes down.#0D#0A' CONCAT
67 'Please note that source of event is node, not an interface itself.#0D#0A' CONCAT
68 'Parameters:#0D#0A' CONCAT
69 ' 1) Interface object ID#0D#0A' CONCAT
70 ' 2) Interface name#0D#0A' CONCAT
71 ' 3) Interface IP address#0D#0A' CONCAT
72 ' 4) Interface netmask#0D#0A' CONCAT
071a9d0a
VK
73 ' 5) Interface index'
74 );
c19b2871 75INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 76 (
333ece94
VK
77 EVENT_NODE_NORMAL, 'SYS_NODE_NORMAL',
78 EVENT_SEVERITY_NORMAL, 1,
071a9d0a 79 'Node status changed to NORMAL',
e42108f0
VK
80 'Generated when node status changed to normal.#0D#0A' CONCAT
81 'Parameters:#0D#0A' CONCAT
071a9d0a
VK
82 ' 1) Previous node status'
83 );
c19b2871 84INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 85 (
333ece94 86 EVENT_NODE_WARNING, 'SYS_NODE_WARNING',
9eb7685c
VK
87 EVENT_SEVERITY_WARNING, 1,
88 'Node status changed to WARNING',
e42108f0
VK
89 'Generated when node status changed to "Warning".#0D#0A' CONCAT
90 'Parameters:#0D#0A' CONCAT
071a9d0a
VK
91 ' 1) Previous node status'
92 );
c19b2871 93INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 94 (
333ece94 95 EVENT_NODE_MINOR, 'SYS_NODE_MINOR',
9eb7685c
VK
96 EVENT_SEVERITY_MINOR, 1,
97 'Node status changed to MINOR',
e42108f0
VK
98 'Generated when node status changed to "Minor Problem" (informational).#0D#0A' CONCAT
99 'Parameters:#0D#0A' CONCAT
071a9d0a
VK
100 ' 1) Previous node status'
101 );
c19b2871 102INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 103 (
333ece94 104 EVENT_NODE_MAJOR, 'SYS_NODE_MAJOR',
3c468b80 105 EVENT_SEVERITY_MAJOR, 1,
8bf20f8c 106 'Node status changed to MAJOR',
e42108f0
VK
107 'Generated when node status changed to "Major Problem".#0D#0A' CONCAT
108 'Parameters:#0D#0A' CONCAT
071a9d0a
VK
109 ' 1) Previous node status'
110 );
c19b2871 111INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
c1142e46 112 (
333ece94 113 EVENT_NODE_CRITICAL, 'SYS_NODE_CRITICAL',
3c468b80 114 EVENT_SEVERITY_CRITICAL, 1,
071a9d0a 115 'Node status changed to CRITICAL',
e42108f0
VK
116 'Generated when node status changed to critical.#0D#0A' CONCAT
117 'Parameters:#0D#0A' CONCAT
071a9d0a
VK
118 ' 1) Previous node status'
119 );
c19b2871 120INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 121 (
333ece94
VK
122 EVENT_NODE_UNKNOWN, 'SYS_NODE_UNKNOWN',
123 EVENT_SEVERITY_NORMAL, 1,
071a9d0a 124 'Node status changed to UNKNOWN',
e42108f0
VK
125 'Generated when node status changed to unknown.#0D#0A' CONCAT
126 'Parameters:#0D#0A' CONCAT
071a9d0a
VK
127 ' 1) Previous node status'
128 );
c19b2871 129INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
071a9d0a 130 (
333ece94
VK
131 EVENT_NODE_UNMANAGED, 'SYS_NODE_UNMANAGED',
132 EVENT_SEVERITY_NORMAL, 1,
071a9d0a 133 'Node status changed to UNMANAGED',
e42108f0
VK
134 'Generated when node status changed to unmanaged.#0D#0A' CONCAT
135 'Parameters:#0D#0A' CONCAT
071a9d0a 136 ' 1) Previous node status'
c1142e46 137 );
c19b2871 138INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
ba1ececc 139 (
333ece94
VK
140 EVENT_NODE_FLAGS_CHANGED, 'SYS_NODE_CAP_CHANGED',
141 EVENT_SEVERITY_NORMAL, 0,
ba1ececc 142 'Node capabilities changed (Old: %1; New: %2)',
e42108f0
VK
143 'Generated when node capabilities changed.#0D#0A' CONCAT
144 'Parameters:#0D#0A' CONCAT
145 ' 1) Old capabilities#0D#0A' CONCAT
ba1ececc
VK
146 ' 2) New capabilities'
147 );
c19b2871 148INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
ba1ececc 149 (
333ece94 150 EVENT_SNMP_FAIL, 'SYS_SNMP_UNREACHEABLE',
89ff781d 151 EVENT_SEVERITY_WARNING, 0,
ba1ececc 152 'SNMP agent is not responding',
e42108f0
VK
153 'Generated when node#27s SNMP agent is not responding.#0D#0A' CONCAT
154 'Parameters:#0D#0A' CONCAT
ba1ececc
VK
155 ' No message-specific parameters'
156 );
c19b2871 157INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
ba1ececc 158 (
333ece94 159 EVENT_AGENT_FAIL, 'SYS_AGENT_UNREACHEABLE',
89ff781d 160 EVENT_SEVERITY_WARNING, 0,
ba1ececc 161 'Native agent is not responding',
e42108f0
VK
162 'Generated when node#27s native agent is not responding.#0D#0A' CONCAT
163 'Parameters:#0D#0A' CONCAT
ba1ececc
VK
164 ' No message-specific parameters'
165 );
c19b2871 166INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
dfd34016 167 (
333ece94
VK
168 EVENT_INTERFACE_DELETED, 'SYS_IF_DELETED',
169 EVENT_SEVERITY_NORMAL, 1,
6a402fbc 170 'Interface "%2" deleted (IP Addr: %3/%4, IfIndex: %1)',
e42108f0
VK
171 'Generated when interface object deleted from the database.#0D#0A' CONCAT
172 'Please note that source of event is node, not an interface itself.#0D#0A' CONCAT
173 'Parameters:#0D#0A' CONCAT
174 ' 1) Interface index#0D#0A' CONCAT
175 ' 2) Interface name#0D#0A' CONCAT
176 ' 3) Interface IP address#0D#0A' CONCAT
ac13a9dd 177 ' 4) Interface netmask'
dfd34016 178 );
c19b2871 179INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
2fa71464 180 (
333ece94 181 EVENT_THRESHOLD_REACHED, 'SYS_THRESHOLD_REACHED',
2fa71464 182 EVENT_SEVERITY_WARNING, 1,
b900a78b 183 'Threshold reached for data collection item #22%2#22 (Parameter: %1; Threshold value: %3; Actual value: %4)',
e42108f0
VK
184 'Generated when threshold value reached for specific data collection item.#0D#0A' CONCAT
185 'Parameters:#0D#0A' CONCAT
b900a78b 186 THRESHOLD_EVENT_PARAMS
2fa71464 187 );
c19b2871 188INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
2fa71464 189 (
333ece94 190 EVENT_THRESHOLD_REARMED, 'SYS_THRESHOLD_REARMED',
f445e9a3 191 EVENT_SEVERITY_NORMAL, 1,
b900a78b 192 'Threshold rearmed for data collection item %2 (Parameter: %1)',
e42108f0
VK
193 'Generated when threshold check is rearmed for specific data collection item.#0D#0A' CONCAT
194 'Parameters:#0D#0A' CONCAT
b900a78b 195 ' 1) Parameter name#0D#0A' CONCAT
e9ab1622
VK
196 ' 2) Item description#0D#0A' CONCAT
197 ' 3) Data collection item ID'
2fa71464 198 );
c19b2871 199INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
2fa71464 200 (
333ece94
VK
201 EVENT_SUBNET_DELETED, 'SYS_SUBNET_DELETED',
202 EVENT_SEVERITY_NORMAL, 0,
2fa71464 203 'Subnet deleted',
e42108f0
VK
204 'Generated when subnet object deleted from the database.#0D#0A' CONCAT
205 'Parameters:#0D#0A' CONCAT
2fa71464
VK
206 ' No message-specific parameters'
207 );
c19b2871 208INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
6a402fbc 209 (
333ece94 210 EVENT_THREAD_HANGS, 'SYS_THREAD_HANG',
3c468b80 211 EVENT_SEVERITY_CRITICAL, 1,
6a402fbc 212 'Thread "%1" is not responding',
e42108f0
VK
213 'Generated when one of the system threads hangs or stops unexpectedly.#0D#0A' CONCAT
214 'Parameters:#0D#0A' CONCAT
6a402fbc
VK
215 ' 1) Thread name'
216 );
c19b2871 217INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
a97797f8 218 (
333ece94
VK
219 EVENT_THREAD_RUNNING, 'SYS_THREAD_RUNNING',
220 EVENT_SEVERITY_NORMAL, 1,
a97797f8
VK
221 'Thread "%1" was returned to running state',
222 'Generated when one of the system threads which previously hangs or stops unexpectedly was returned to running state.#0D#0A' CONCAT
223 'Parameters:#0D#0A' CONCAT
224 ' 1) Thread name'
225 );
c19b2871 226INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
b86ba1c0 227 (
333ece94 228 EVENT_SMTP_FAILURE, 'SYS_SMTP_FAILURE',
b86ba1c0
VK
229 EVENT_SEVERITY_WARNING, 1,
230 'Unable to send e-mail to <%3>: %2',
231 'Generated when server is unable to send e-mail.#0D#0A' CONCAT
232 'Parameters:#0D#0A' CONCAT
233 ' 1) Error code#0D#0A' CONCAT
234 ' 2) Error text#0D#0A' CONCAT
235 ' 3) Recipient address#0D#0A' CONCAT
236 ' 4) Mail subject'
237 );
c19b2871 238INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
b50f1100
VK
239 (
240 EVENT_MAC_ADDR_CHANGED, 'SYS_MAC_ADDR_CHANGED',
241 EVENT_SEVERITY_WARNING, 1,
242 'MAC address for interface %3 changed from %4 to %5',
243 'Generated when server detects change of interface#27s MAC address.#0D#0A' CONCAT
244 'Parameters:#0D#0A' CONCAT
245 ' 1) Interface object ID#0D#0A' CONCAT
246 ' 2) Interface index#0D#0A' CONCAT
247 ' 3) Interface name#0D#0A' CONCAT
248 ' 4) Old MAC address#0D#0A' CONCAT
249 ' 5) New MAC address'
250 );
c19b2871 251INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
28fbe2be
VK
252 (
253 EVENT_INCORRECT_NETMASK, 'SYS_INCORRECT_NETMASK',
254 EVENT_SEVERITY_MINOR, 1,
205acaf4 255 'Invalid network mask %4 on interface "%3", should be %5',
28fbe2be
VK
256 'Generated when server detects invalid network mask on an interface.#0D#0A' CONCAT
257 'Parameters:#0D#0A' CONCAT
258 ' 1) Interface object ID#0D#0A' CONCAT
259 ' 2) Interface index#0D#0A' CONCAT
260 ' 3) Interface name#0D#0A' CONCAT
261 ' 4) Actual network mask on interface#0D#0A' CONCAT
262 ' 5) Correct network mask'
263 );
bebf4833
VK
264INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
265 (
266 EVENT_NODE_DOWN, 'SYS_NODE_DOWN',
267 EVENT_SEVERITY_CRITICAL, 1,
268 'Node down',
269 'Generated when node is not responding to management server.#0D#0A' CONCAT
270 'Parameters:#0D#0A' CONCAT
271 ' No event-specific parameters'
272 );
273INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
274 (
275 EVENT_NODE_UP, 'SYS_NODE_UP',
276 EVENT_SEVERITY_NORMAL, 1,
277 'Node up',
278 'Generated when communication with the node re-established.#0D#0A' CONCAT
279 'Parameters:#0D#0A' CONCAT
280 ' No event-specific parameters'
281 );
282INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
283 (
284 EVENT_SERVICE_DOWN, 'SYS_SERVICE_DOWN',
285 EVENT_SEVERITY_MAJOR, 1,
286 'Network service "%1" is not responding',
287 'Generated when network service is not responding to management server as expected.#0D#0A' CONCAT
288 'Parameters:#0D#0A' CONCAT
289 ' 1) Service name#0D0A' CONCAT
290 ' 2) Service object ID#0D0A' CONCAT
291 ' 3) Service type'
292 );
293INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
294 (
295 EVENT_SERVICE_UP, 'SYS_SERVICE_UP',
296 EVENT_SEVERITY_NORMAL, 1,
297 'Network service "%1" returned to operational state',
298 'Generated when network service responds as expected after failure.#0D#0A' CONCAT
299 'Parameters:#0D#0A' CONCAT
300 ' 1) Service name#0D0A' CONCAT
301 ' 2) Service object ID#0D0A' CONCAT
302 ' 3) Service type'
303 );
df98c7ac
VK
304INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
305 (
306 EVENT_SERVICE_UNKNOWN, 'SYS_SERVICE_UNKNOWN',
307 EVENT_SEVERITY_WARNING, 1,
308 'Status of network service "%1" is unknown',
309 'Generated when management server is unable to determine state of the network service due to agent or server-to-agent communication failure.#0D#0A' CONCAT
310 'Parameters:#0D#0A' CONCAT
311 ' 1) Service name#0D0A' CONCAT
312 ' 2) Service object ID#0D0A' CONCAT
313 ' 3) Service type'
314 );
a3f23550
VK
315INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
316 (
317 EVENT_SMS_FAILURE, 'SYS_SMS_FAILURE',
318 EVENT_SEVERITY_WARNING, 1,
319 'Unable to send SMS to phone %1',
320 'Generated when server is unable to send SMS.#0D#0A' CONCAT
321 'Parameters:#0D#0A' CONCAT
322 ' 1) Phone number'
323 );
333ece94
VK
324
325
3aeed82c
VK
326/*
327** SNMP traps
328*/
329
c19b2871 330INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
3aeed82c
VK
331 (
332 EVENT_SNMP_UNMATCHED_TRAP, 'SNMP_UNMATCHED_TRAP',
333 EVENT_SEVERITY_NORMAL, 1,
334 'SNMP trap received: %1 (Parameters: %2)',
335 'Generated when system receives an SNMP trap without match in trap configuration table#0D#0A' CONCAT
336 'Parameters:#0D#0A' CONCAT
337 ' 1) SNMP trap OID#0D#0A' CONCAT
338 ' 2) Trap parameters'
339 );
c19b2871 340INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
6ed0d23d
VK
341 (
342 EVENT_SNMP_COLD_START, 'SNMP_COLD_START',
343 EVENT_SEVERITY_NORMAL, 1,
344 'System was cold-started',
345 'Generated when system receives a coldStart SNMP trap#0D#0A' CONCAT
346 'Parameters:#0D#0A' CONCAT
707c17d7 347 ' 1) SNMP trap OID'
6ed0d23d 348 );
c19b2871 349INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
6ed0d23d
VK
350 (
351 EVENT_SNMP_WARM_START, 'SNMP_WARM_START',
352 EVENT_SEVERITY_NORMAL, 1,
353 'System was warm-started',
354 'Generated when system receives a warmStart SNMP trap#0D#0A' CONCAT
355 'Parameters:#0D#0A' CONCAT
707c17d7 356 ' 1) SNMP trap OID'
6ed0d23d 357 );
c19b2871 358INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
6ed0d23d
VK
359 (
360 EVENT_SNMP_LINK_DOWN, 'SNMP_LINK_DOWN',
361 EVENT_SEVERITY_MAJOR, 1,
707c17d7 362 'Link is down (interface index %2)',
6ed0d23d
VK
363 'Generated when system receives a linkDown SNMP trap#0D#0A' CONCAT
364 'Parameters:#0D#0A' CONCAT
707c17d7
VK
365 ' 1) SNMP trap OID#0D#0A' CONCAT
366 ' 2) Interface index'
6ed0d23d 367 );
c19b2871 368INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
6ed0d23d
VK
369 (
370 EVENT_SNMP_LINK_UP, 'SNMP_LINK_UP',
371 EVENT_SEVERITY_NORMAL, 1,
707c17d7 372 'Link is up (interface index %2)',
6ed0d23d
VK
373 'Generated when system receives a linkUp SNMP trap#0D#0A' CONCAT
374 'Parameters:#0D#0A' CONCAT
707c17d7
VK
375 ' 1) SNMP trap OID#0D#0A' CONCAT
376 ' 2) Interface index'
6ed0d23d 377 );
c19b2871 378INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
6ed0d23d
VK
379 (
380 EVENT_SNMP_AUTH_FAILURE, 'SNMP_AUTH_FAILURE',
381 EVENT_SEVERITY_WARNING, 1,
382 'SNMP authentication failure',
383 'Generated when system receives an authenticationFailure SNMP trap#0D#0A' CONCAT
384 'Parameters:#0D#0A' CONCAT
707c17d7 385 ' 1) SNMP trap OID'
6ed0d23d 386 );
c19b2871 387INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
6ed0d23d
VK
388 (
389 EVENT_SNMP_EGP_NL, 'SNMP_EGP_NEIGHBOR_LOSS',
390 EVENT_SEVERITY_WARNING, 1,
391 'EGP neighbor loss',
392 'Generated when system receives an egpNeighborLoss SNMP trap#0D#0A' CONCAT
393 'Parameters:#0D#0A' CONCAT
707c17d7 394 ' 1) SNMP trap OID'
6ed0d23d 395 );
3aeed82c
VK
396
397
333ece94
VK
398/*
399** Following is a set of predefined events for thresholds
400** These events can occupy ID space 4000 ... 4999
401*/
402
c19b2871 403INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
333ece94
VK
404 (
405 4000, 'DC_HIGH_CPU_UTIL',
406 EVENT_SEVERITY_MINOR, 1,
b900a78b 407 'CPU utilization exceeds allowed maximum of %3 (Current: %4)',
333ece94
VK
408 'Custom data collection threshold event.#0D#0A' CONCAT
409 'Parameters:#0D#0A' CONCAT
b900a78b 410 THRESHOLD_EVENT_PARAMS
333ece94 411 );
c19b2871 412INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
333ece94
VK
413 (
414 4001, 'DC_HIGH_PROCLOAD',
415 EVENT_SEVERITY_MINOR, 1,
b900a78b 416 'Processor load average exceeds allowed maximum of %3 (Current: %4)',
333ece94
VK
417 'Custom data collection threshold event.#0D#0A' CONCAT
418 'Parameters:#0D#0A' CONCAT
b900a78b 419 THRESHOLD_EVENT_PARAMS
333ece94 420 );
c19b2871 421INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
333ece94
VK
422 (
423 4002, 'DC_HOST_RESTARTED',
424 EVENT_SEVERITY_NORMAL, 1,
38f733bb
VK
425 'Host was restarted within last 5 minutes',
426 'Custom data collection threshold event.#0D#0A' CONCAT
427 'Parameters:#0D#0A' CONCAT
428 THRESHOLD_EVENT_PARAMS
429 );
c19b2871 430INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
38f733bb
VK
431 (
432 4003, 'DC_AGENT_RESTARTED',
433 EVENT_SEVERITY_NORMAL, 1,
434 'NetXMS agent was restarted within last 5 minutes',
435 'Custom data collection threshold event.#0D#0A' CONCAT
436 'Parameters:#0D#0A' CONCAT
437 THRESHOLD_EVENT_PARAMS
438 );
c19b2871 439INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
38f733bb
VK
440 (
441 4004, 'DC_SERVICE_NOT_RUNNING',
442 EVENT_SEVERITY_MAJOR, 1,
5bcc8003 443 'Service #22%6#22 is not running',
333ece94
VK
444 'Custom data collection threshold event.#0D#0A' CONCAT
445 'Parameters:#0D#0A' CONCAT
b900a78b 446 THRESHOLD_EVENT_PARAMS
333ece94 447 );
c19b2871 448INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
5307ccfb
VK
449 (
450 4005, 'DC_MAILBOX_TOO_LARGE',
451 EVENT_SEVERITY_WARNING, 1,
5bcc8003 452 'Mailbox #22%6#22 exceeds size limit (allowed size: %3; actual size: %4)',
5307ccfb
VK
453 'Custom data collection threshold event.#0D#0A' CONCAT
454 'Parameters:#0D#0A' CONCAT
455 THRESHOLD_EVENT_PARAMS
456 );
c19b2871 457INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
5307ccfb
VK
458 (
459 4006, 'DC_AGENT_VERSION_CHANGE',
05309849 460 EVENT_SEVERITY_NORMAL, 1,
5307ccfb
VK
461 'NetXMS agent version was changed from %3 to %4',
462 'Custom data collection threshold event.#0D#0A' CONCAT
463 'Parameters:#0D#0A' CONCAT
464 THRESHOLD_EVENT_PARAMS
465 );
c19b2871 466INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
5307ccfb
VK
467 (
468 4007, 'DC_HOSTNAME_CHANGE',
469 EVENT_SEVERITY_WARNING, 1,
470 'Host name was changed from %3 to %4',
471 'Custom data collection threshold event.#0D#0A' CONCAT
472 'Parameters:#0D#0A' CONCAT
473 THRESHOLD_EVENT_PARAMS
474 );
c19b2871 475INSERT INTO event_cfg (event_code,event_name,severity,flags,message,description) VALUES
5307ccfb
VK
476 (
477 4008, 'DC_FILE_CHANGE',
478 EVENT_SEVERITY_WARNING, 1,
479 'File #22%6#22 was changed',
480 'Custom data collection threshold event.#0D#0A' CONCAT
481 'Parameters:#0D#0A' CONCAT
482 THRESHOLD_EVENT_PARAMS
483 );