xref: /illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/event_mess.h (revision 4f364e7c95ee7fd9d5bbeddc1940e92405bb0e72)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_EVENT_MESS_H
28 #define	_EVENT_MESS_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * event_mess.h
38  *
39  *  RSC Event Messages Header File.
40  *
41  * Caution: This file was generated by
42  * ../../src/util/createRSCMessages and event_messages.txt.
43  *
44  */
45 
46 static char *ps_event_alerts[] = {
47 	"Power Supply 1 Failure.",			/* PS1_FAIL */
48 	"Power Supply 1 OK.",				/* PS1_OK */
49 	"Power Supply 2 Failure.",			/* PS2_FAIL */
50 	"Power Supply 2 OK.",				/* PS2_OK */
51 	"Power Supply General Failure.",		/* PS_GENERAL_FAIL */
52 	"Power Supply 3 Failure.",			/* PS3_FAIL */
53 	"Power Supply 3 OK.",				/* PS3_OK */
54 	"Power Supply 0 Failure.",			/* PS0_FAIL */
55 	"Power Supply 0 OK.",				/* PS0_OK */
56 	"Power Supply 0 AC Power Unavailable.",		/* PS0_UNPLUGGED */
57 	"Power Supply 1 AC Power Unavailable.",		/* PS1_UNPLUGGED */
58 	"Power Supply 2 AC Power Unavailable.",		/* PS2_UNPLUGGED */
59 	"Power Supply 3 AC Power Unavailable.",		/* PS3_UNPLUGGED */
60 	"Power Supply 1 Fault.",			/* PS1_FAULT */
61 	"Power Supply 2 Fault.",			/* PS2_FAULT */
62 	"Power Supply 3 Fault.",			/* PS3_FAULT */
63 	"Power Supply 0 Fault.",			/* PS0_FAULT */
64 	"PS%s was removed from system.",		/* PS_REMOVED */
65 	NULL
66 };
67 
68 
69 
70 static char *disk_event_alerts[] = {
71 	"Disk 0 Failure.",			/* DISK0_FAILURE */
72 	"Disk 0 OK.",				/* DISK0_OK */
73 	"Disk 1 Failure.",			/* DISK1_FAILURE */
74 	"Disk 1 OK.",				/* DISK1_OK */
75 	"Disk 2 Failure.",			/* DISK2_FAILURE */
76 	"Disk 2 OK.",				/* DISK2_OK */
77 	"Disk 3 Failure.",			/* DISK3_FAILURE */
78 	"Disk 3 OK.",				/* DISK3_OK */
79 	"Disk 4 Failure.",			/* DISK4_FAILURE */
80 	"Disk 4 OK.",				/* DISK4_OK */
81 	"Disk 5 Failure.",			/* DISK5_FAILURE */
82 	"Disk 5 OK.",				/* DISK5_OK */
83 	"Disk 6 Failure.",			/* DISK6_FAILURE */
84 	"Disk 6 OK.",				/* DISK6_OK */
85 	"Disk 7 Failure.",			/* DISK7_FAILURE */
86 	"Disk 7 OK.",				/* DISK7_OK */
87 	"Disk 8 Failure.",			/* DISK8_FAILURE */
88 	"Disk 8 OK.",				/* DISK8_OK */
89 	"Disk 9 Failure.",			/* DISK9_FAILURE */
90 	"Disk 9 OK.",				/* DISK9_OK */
91 	"Disk 10 Failure.",			/* DISK10_FAILURE */
92 	"Disk 10 OK.",				/* DISK10_OK */
93 	"Disk 11 Failure.",			/* DISK11_FAILURE */
94 	"Disk 11 OK.",				/* DISK11_OK */
95 	"HDD%s was removed from system.",	/* DISK_REMOVED */
96 	"HDD%s was inserted into system.",	/* DISK_INSERTED */
97 	NULL
98 };
99 
100 
101 
102 static char *temp_event_alerts[] = {
103 	"CPU0 Thermal Minimum Temperature Alert. Temperature equals %s "
104 	    "Celsius.",		/* CPU0_MIN_TEMP */
105 	"CPU0 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
106 	    /* CPU0_WARNING */
107 	"CPU0 exceeds shutdown temperature. Temperature equals %s Celsius.",
108 	    /* CPU0_SHUTDOWN */
109 	"CPU0 Temperature Normal.",		/* CPU0_OK */
110 	"CPU1 Thermal Minimum Temperature Alert. Temperature equals %s "
111 	    "Celsius.",		/* CPU1_MIN_TEMP */
112 	"CPU1 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
113 	    /* CPU1_WARNING */
114 	"CPU1 exceeds shutdown temperature. Temperature equals %s Celsius.",
115 	    /* CPU1_SHUTDOWN */
116 	"CPU1 Temperature Normal.",		/* CPU1_OK */
117 	"MB0 Thermal Minimum Temperature Alert. Temperature equals %s Celsius.",
118 	    /* MB0_MIN_TEMP */
119 	"MB0 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
120 	    /* MB0_WARNING */
121 	"MB0 exceeds shutdown temperature. Temperature equals %s Celsius.",
122 	    /* MB0_SHUTDOWN */
123 	"MB0 Temperature Normal.",		/* MB0_OK */
124 	"MB1 Thermal Minimum Temperature Alert. Temperature equals %s Celsius.",
125 	    /* MB1_MIN_TEMP */
126 	"MB1 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
127 	    /* MB1_WARNING */
128 	"MB1 exceeds shutdown temperature. Temperature equals %s Celsius.",
129 	    /* MB1_SHUTDOWN */
130 	"MB1 Temperature Normal.",		/* MB1_OK */
131 	"PDB Thermal Minimum Temperature Alert. Temperature equals %s Celsius.",
132 	    /* PDB_MIN_TEMP */
133 	"PDB Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
134 	    /* PDB_WARNING */
135 	"PDB exceeds shutdown temperature. Temperature equals %s Celsius.",
136 	    /* PDB_SHUTDOWN */
137 	"PDB Temperature Normal.",		/* PDB_OK */
138 	"SCSI Thermal Minimum Temperature Alert. Temperature equals %s "
139 	    "Celsius.",				/* SCSI_MIN_TEMP */
140 	"SCSI Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
141 	    /* SCSI_WARNING */
142 	"SCSI exceeds shutdown temperature. Temperature equals %s Celsius.",
143 	    /* SCSI_SHUTDOWN */
144 	"SCSI Temperature Normal.",		/* SCSI_OK */
145 	"SC Ambient Minimum Temperature Alert. Temperature equals %s Celsius.",
146 	    /* RSC_MIN_TEMP */
147 	"SC Ambient Warning Threshold Alert. Temperature equals %s Celsius.",
148 	    /* RSC_WARNING */
149 	"SC exceeds shutdown temperature. Temperature equals %s Celsius.",
150 	    /* RSC_SHUTDOWN */
151 	"SC Temperature Normal.",		/* RSC_OK */
152 	"CPU2 Thermal Minimum Temperature Alert. Temperature equals %s "
153 	    "Celsius.",				/* CPU2_MIN_TEMP */
154 	"CPU2 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
155 	    /* CPU2_WARNING */
156 	"CPU2 exceeds shutdown temperature. Temperature equals %s Celsius.",
157 	    /* CPU2_SHUTDOWN */
158 	"CPU2 Temperature Normal.",		/* CPU2_OK */
159 	"CPU3 Thermal Minimum Temperature Alert. Temperature equals %s "
160 	    "Celsius.",				/* CPU3_MIN_TEMP */
161 	"CPU3 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
162 	    /* CPU3_WARNING */
163 	"CPU3 exceeds shutdown temperature. Temperature equals %s Celsius.",
164 	    /* CPU3_SHUTDOWN */
165 	"CPU3 Temperature Normal.",		/* CPU3_OK */
166 	"CPU4 Thermal Minimum Temperature Alert. Temperature equals %s "
167 	    "Celsius.",				/* CPU4_MIN_TEMP */
168 	"CPU4 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
169 	    /* CPU4_WARNING */
170 	"CPU4 exceeds shutdown temperature. Temperature equals %s Celsius.",
171 	    /* CPU4_SHUTDOWN */
172 	"CPU4 Temperature Normal.",		/* CPU4_OK */
173 	"CPU5 Thermal Minimum Temperature Alert. Temperature equals %s "
174 	    "Celsius.",				/* CPU5_MIN_TEMP */
175 	"CPU5 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
176 	    /* CPU5_WARNING */
177 	"CPU5 exceeds shutdown temperature. Temperature equals %s Celsius.",
178 	    /* CPU5_SHUTDOWN */
179 	"CPU5 Temperature Normal.",		/* CPU5_OK */
180 	"CPU6 Thermal Minimum Temperature Alert. Temperature equals %s "
181 	    "Celsius.",				/* CPU6_MIN_TEMP */
182 	"CPU6 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
183 	    /* CPU6_WARNING */
184 	"CPU6 exceeds shutdown temperature. Temperature equals %s Celsius.",
185 	    /* CPU6_SHUTDOWN */
186 	"CPU6 Temperature Normal.",		/* CPU6_OK */
187 	"CPU7 Thermal Minimum Temperature Alert. Temperature equals %s "
188 	    "Celsius.",				/* CPU7_MIN_TEMP */
189 	"CPU7 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
190 	    /* CPU7_WARNING */
191 	"CPU7 exceeds shutdown temperature. Temperature equals %s Celsius.",
192 	    /* CPU7_SHUTDOWN */
193 	"CPU7 Temperature Normal.",		/* CPU7_OK */
194 	"IO Thermal Minimum Temperature Alert. Temperature equals %s Celsius.",
195 	    /* IO_MIN_TEMP */
196 	"IO Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
197 	    /* IO_WARNING */
198 	"IO exceeds shutdown temperature. Temperature equals %s Celsius.",
199 	    /* IO_SHUTDOWN */
200 	"IO Temperature Normal.",		/* IO_OK */
201 	"BP0 Thermal Minimum Temperature Alert. Temperature equals %s Celsius.",
202 	    /* BP0_MIN_TEMP */
203 	"BP0 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
204 	    /* BP0_WARNING */
205 	"BP0 exceeds shutdown temperature. Temperature equals %s Celsius.",
206 	    /* BP0_SHUTDOWN */
207 	"BP0 Temperature Normal.",		/* BP0_OK */
208 	"BP1 Thermal Minimum Temperature Alert. Temperature equals %s Celsius.",
209 	    /* BP1_MIN_TEMP */
210 	"BP1 Thermal Warning Threshold Alert. Temperature equals %s Celsius.",
211 	    /* BP1_WARNING */
212 	"BP1 exceeds shutdown temperature. Temperature equals %s Celsius.",
213 	    /* BP1_SHUTDOWN */
214 	"BP1 Temperature Normal.",		/* BP1_OK */
215 	NULL
216 };
217 
218 
219 
220 static char *user_event_alerts[] = {
221 	"%s",				/* USER_WARNING */
222 	"%s",				/* USER_CRITICAL */
223 	"SC Test Pager Alert",		/* USER_TEST_PAGE */
224 	"TEST PROGRAM BEGINNING",	/* USER_TEST_START */
225 	"TEST PROGRAM EXITING",		/* USER_TEST_END */
226 	NULL
227 };
228 
229 
230 
231 static char *system_event_alerts[] = {
232 	"SC Request to Power Off Host.",	/* POWER_OFF */
233 	"SC Request to Power On Host.",		/* POWER_ON */
234 	"Host System has Reset",		/* SYSTEM_RESET */
235 	"%s",					/* SYSTEM_GEN_ERROR */
236 	"System Fan OK",			/* SYSTEM_FAN_OK */
237 	"System Fan Failure",			/* SYSTEM_FAN_FAILURE */
238 	"SC set bootmode to normal.",		/* SYSTEM_SET_BOOTMODE_NORMAL */
239 	"SC set bootmode to forth, will expire %s.",
240 	    /* SYSTEM_SET_BOOTMODE_FORTH */
241 	"SC set bootmode to reset_nvram, will expire %s.",
242 	    /* SYSTEM_SET_BOOTMODE_RESET_NVRAM */
243 	"SC set bootmode to diag, will expire %s.",
244 	    /* SYSTEM_SET_BOOTMODE_DIAG */
245 	"SC set bootmode to skip_diag, will expire %s.",
246 	    /* SYSTEM_SET_BOOTMODE_SKIP_DIAG */
247 	"Host System has read and cleared bootmode.",
248 	    /* SYSTEM_SET_BOOTMODE_CLEAR */
249 	"SC Environment Poller: Cannot open i2c device",
250 	    /* SYSTEM_I2C_ERROR */
251 	"SC Environment Poller disabled",	/* SYSTEM_POLLER_OFF */
252 	"SC Request to Power Off Host Immediately.",
253 	    /* POWER_OFF_NOW */
254 	"CPU Primary Fan OK",			/* SYSTEM_CPU_P_FAN_OK */
255 	"CPU Primary Fan Failure",		/* SYSTEM_CPU_P_FAN_FAILURE */
256 	"CPU Secondary Fan OK",			/* SYSTEM_CPU_S_FAN_OK */
257 	"CPU Secondary Fan Failure",		/* SYSTEM_CPU_S_FAN_FAILURE */
258 	"IO Primary Fan OK",			/* SYSTEM_IO_P_FAN_OK */
259 	"IO Primary Fan Failure",		/* SYSTEM_IO_P_FAN_FAILURE */
260 	"IO Secondary Fan OK",			/* SYSTEM_IO_S_FAN_OK */
261 	"IO Secondary Fan Failure",		/* SYSTEM_IO_S_FAN_FAILURE */
262 	"IO Bridge Primary Fan OK",		/* SYSTEM_IO_BRIDGE_P_FAN_OK */
263 	"IO Bridge Primary Fan Failure",
264 	    /* SYSTEM_IO_BRIDGE_P_FAN_FAILURE */
265 	"IO Bridge Secondary Fan OK",		/* SYSTEM_IO_BRIDGE_S_FAN_OK */
266 	"IO Bridge Secondary Fan Failure",
267 	    /* SYSTEM_IO_BRIDGE_S_FAN_FAILURE */
268 	"CPU Fan OK",				/* SYSTEM_CPU_FAN_OK */
269 	"Fan Tray 0 CPU Fan 1 OK",		/* SYSTEM_CPU0_FAN_OK */
270 	"Fan Tray 0 CPU Fan 2 OK",		/* SYSTEM_CPU1_FAN_OK */
271 	"CPU Fan Failure",			/* SYSTEM_CPU_FAN_FAILURE */
272 	"Fan Tray 0 CPU Fan 1 Failure",		/* SYSTEM_CPU0_FAN_FAILURE */
273 	"Fan Tray 0 CPU Fan 2 Failure",		/* SYSTEM_CPU1_FAN_FAILURE */
274 	"IO Fan OK",				/* SYSTEM_IO_FAN_OK */
275 	"Fan Tray 1 IO Fan 0 OK",		/* SYSTEM_IO0_FAN_OK */
276 	"Fan Tray 1 IO Fan 1 OK",		/* SYSTEM_IO1_FAN_OK */
277 	"IO Fan Failure",			/* SYSTEM_IO_FAN_FAILURE */
278 	"Fan Tray 1 IO Fan 0 Failure",		/* SYSTEM_IO0_FAN_FAILURE */
279 	"Fan Tray 1 IO Fan 1 Failure",		/* SYSTEM_IO1_FAN_FAILURE */
280 	"Fan Tray 0 CPU Fan 0 OK",		/* SYSTEM_MB_FAN_OK */
281 	"Fan Tray 0 CPU Fan 0 Failure",		/* SYSTEM_MB_FAN_FAILURE */
282 	"Host system has shut down.",		/* SYSTEM_DOWN */
283 	"CPU 0 Fan 0 OK",			/* SYSTEM_EN_CPU0_FAN0_OK */
284 	"CPU 0 Fan 1 OK",			/* SYSTEM_EN_CPU0_FAN1_OK */
285 	"CPU 1 Fan 0 OK",			/* SYSTEM_EN_CPU1_FAN0_OK */
286 	"CPU 1 Fan 1 OK",			/* SYSTEM_EN_CPU1_FAN1_OK */
287 	"CPU 0 Fan 0 Failure",
288 	    /* SYSTEM_EN_CPU0_FAN0_FAILURE */
289 	"CPU 0 Fan 1 Failure",
290 	    /* SYSTEM_EN_CPU0_FAN1_FAILURE */
291 	"CPU 1 Fan 0 Failure",
292 	    /* SYSTEM_EN_CPU1_FAN0_FAILURE */
293 	"CPU 1 Fan 1 Failure",
294 	    /* SYSTEM_EN_CPU1_FAN1_FAILURE */
295 	"Enclosure Fan 0 OK",			/* SYSTEM_EN_FAN0_OK */
296 	"Enclosure Fan 1 OK",			/* SYSTEM_EN_FAN1_OK */
297 	"Enclosure Fan 2 OK",			/* SYSTEM_EN_FAN2_OK */
298 	"Enclosure Fan 3 OK",			/* SYSTEM_EN_FAN3_OK */
299 	"Enclosure Fan 0 Failure",		/* SYSTEM_EN_FAN0_FAILURE */
300 	"Enclosure Fan 1 Failure",		/* SYSTEM_EN_FAN1_FAILURE */
301 	"Enclosure Fan 2 Failure",		/* SYSTEM_EN_FAN2_FAILURE */
302 	"Enclosure Fan 3 Failure",		/* SYSTEM_EN_FAN3_FAILURE */
303 	"SCC has been inserted.",		/* SYSTEM_SCC_INSERT */
304 	"SCC has been removed.",		/* SYSTEM_SCC_REMOVE */
305 	"SCC is not valid.",			/* SYSTEM_SCC_INVALID */
306 	NULL
307 };
308 
309 
310 
311 static char *keyswitch_event_alerts[] = {
312 	"KeySwitch Position has changed to Locked State.",
313 	    /* KEYSWITCH_LOCKED */
314 	"KeySwitch Position has changed to Off State.",	/* KEYSWITCH_OFF */
315 	"KeySwitch Position has changed to On State.",	/* KEYSWITCH_ON */
316 	"KeySwitch Position has changed to Diagnostics State.",
317 	    /* KEYSWITCH_DIAG */
318 	"Keyswitch Broken?",				/* KEYSWITCH_BROKEN */
319 	NULL
320 };
321 
322 
323 
324 static char *rsc_event_alerts[] = {
325 	"SC Login: User %s Logged on.",			/* RSC_LOGIN */
326 	"SC Login Failure for user %s.",		/* RSC_LOGIN_FAILURE */
327 	"SC Login: User %s Logged out.",		/* RSC_LOGOUT */
328 	"SC System booted.",				/* RSC_BOOT */
329 	"SC Request to Reset Host.",
330 	    /* RSC_RESET_HOST_COMMAND */
331 	"SC NVRAM Update: %s has been modified.",	/* RSC_NVRAM_UPDATE */
332 	"Failed to send page alert for recent event.",	/* RSC_PAGER_FAILURE */
333 	"Failed to send email alert for recent event.",	/* RSC_EMAIL_FAILURE */
334 	"DHCP network configuration initiated.",	/* RSC_DHCP_INIT */
335 	"DHCP configuration complete (from server %s).",
336 	    /* RSC_DHCP_COMPLETE */
337 	"DHCP lease lost.",				/* RSC_DHCP_LEASELOST */
338 	"SC Request to send Break to host.",		/* RSC_BREAK_COMMAND */
339 	"SC date/time has been set to %s.",		/* RSC_DATE_CHANGED */
340 	"SC Battery Voltage is low.",			/* RSC_BATTERY_LOW */
341 	"SC No modem card detected!",			/* RSC_CARD_DETECT */
342 	"SC Modem could not get phone line.",
343 	    /* RSC_MODEM_LINE_ERROR */
344 	"SC Could not communicate with modem.",		/* RSC_MODEM_ERROR */
345 	"SC Could not communicate with paging service.",
346 	    /* RSC_PAGE_SVC_ERROR */
347 	"SC Operating on battery Power.",		/* RSC_BATTERY_POWER */
348 	"Failed to send email alert to the primary mailserver.",
349 	    /* RSC_MAILSERVER_FAILURE */
350 	"SC Request to Reset Host due to Watchdog",
351 	    /* RMC_RESET_HOST_WDOG */
352 	"Preceding SC reset due to watchdog",
353 	    /* RMC_RESET_SELF_WDOG */
354 	"SC Request to execute XIR Reset on the Host.",
355 	    /* RMC_XIR_HOST_COMMAND */
356 	"SC Request to XIR Host due to Watchdog",	/* RMC_XIR_HOST_WDOG */
357 	"SC Request to Reset Host due to no Reset since Watchdog XIR",
358 	    /* RMC_XIR_RESET_HOST_WDOG */
359 	NULL
360 };
361 
362 
363 
364 static char *debug_event_alerts[] = {
365 	"I2C Ioctl Enter",			/* I2C_IOCTL_ENTER */
366 	"%s",					/* DRIVER_MESSAGE */
367 	"%s",					/* DRIVER_ERROR */
368 	"i2cIoctl: NAK ERROR",			/* DRIVER_NAK_ERROR */
369 	"i2cIoctl: UNDERRUN ERROR",		/* DRIVER_UNDERRUN_ERROR */
370 	"i2cIoctl: COLLISION ERROR",		/* DRIVER_COLLISION_ERROR */
371 	"i2cIoctl: OVERRUN ERROR",		/* DRIVER_OVERRUN_ERROR */
372 	"%s",					/* DRIVER_RXBD_ERROR */
373 	"i2cIoctl: BUSY ERROR",			/* DRIVER_RXBD_BUSY */
374 	"%s",					/* M68360_IOCTL */
375 	"I2C ERROR Reading NVRAM",		/* NVRAM_READ_ERROR */
376 	"I2C ERROR Writing NVRAM",		/* NVRAM_WRITE_ERROR */
377 	"%s",					/* I2C_LIB_DEBUG */
378 	"%s",					/* EVENT_SUBSYSTEM_ERROR */
379 	"%s",					/* NETCONFIG_ERROR */
380 	"%s",					/* FRU_DEBUG */
381 	"%s",					/* CPU_SIG_DEBUG */
382 	"%s",					/* VTS_LED_TEST */
383 	NULL
384 };
385 
386 
387 
388 
389 static char **rsc_alerts[] = {
390 	ps_event_alerts,
391 	disk_event_alerts,
392 	temp_event_alerts,
393 	user_event_alerts,
394 	system_event_alerts,
395 	keyswitch_event_alerts,
396 	rsc_event_alerts,
397 	debug_event_alerts
398 };
399 
400 
401 
402 enum event_severities {
403 	EVENT_SEVERITY_MINOR,
404 	EVENT_SEVERITY_MAJOR,
405 	EVENT_SEVERITY_CRITICAL
406 };
407 
408 static int ps_events_severity[] = {
409 	EVENT_SEVERITY_MAJOR,
410 	EVENT_SEVERITY_MINOR,
411 	EVENT_SEVERITY_MAJOR,
412 	EVENT_SEVERITY_MINOR,
413 	EVENT_SEVERITY_MAJOR,
414 	EVENT_SEVERITY_MAJOR,
415 	EVENT_SEVERITY_MINOR,
416 	EVENT_SEVERITY_MAJOR,
417 	EVENT_SEVERITY_MINOR,
418 	EVENT_SEVERITY_MAJOR,
419 	EVENT_SEVERITY_MAJOR,
420 	EVENT_SEVERITY_MAJOR,
421 	EVENT_SEVERITY_MAJOR,
422 	EVENT_SEVERITY_MAJOR,
423 	EVENT_SEVERITY_MAJOR,
424 	EVENT_SEVERITY_MAJOR,
425 	EVENT_SEVERITY_MAJOR,
426 	EVENT_SEVERITY_MAJOR
427 };
428 
429 
430 
431 static int disk_events_severity[] = {
432 	EVENT_SEVERITY_MAJOR,
433 	EVENT_SEVERITY_MINOR,
434 	EVENT_SEVERITY_MAJOR,
435 	EVENT_SEVERITY_MINOR,
436 	EVENT_SEVERITY_MAJOR,
437 	EVENT_SEVERITY_MINOR,
438 	EVENT_SEVERITY_MAJOR,
439 	EVENT_SEVERITY_MINOR,
440 	EVENT_SEVERITY_MAJOR,
441 	EVENT_SEVERITY_MINOR,
442 	EVENT_SEVERITY_MAJOR,
443 	EVENT_SEVERITY_MINOR,
444 	EVENT_SEVERITY_MAJOR,
445 	EVENT_SEVERITY_MINOR,
446 	EVENT_SEVERITY_MAJOR,
447 	EVENT_SEVERITY_MINOR,
448 	EVENT_SEVERITY_MAJOR,
449 	EVENT_SEVERITY_MINOR,
450 	EVENT_SEVERITY_MAJOR,
451 	EVENT_SEVERITY_MINOR,
452 	EVENT_SEVERITY_MAJOR,
453 	EVENT_SEVERITY_MINOR,
454 	EVENT_SEVERITY_MAJOR,
455 	EVENT_SEVERITY_MINOR,
456 	EVENT_SEVERITY_MAJOR,
457 	EVENT_SEVERITY_MINOR
458 };
459 
460 
461 
462 static int temp_events_severity[] = {
463 	EVENT_SEVERITY_MAJOR,
464 	EVENT_SEVERITY_MAJOR,
465 	EVENT_SEVERITY_CRITICAL,
466 	EVENT_SEVERITY_MINOR,
467 	EVENT_SEVERITY_MAJOR,
468 	EVENT_SEVERITY_MAJOR,
469 	EVENT_SEVERITY_CRITICAL,
470 	EVENT_SEVERITY_MINOR,
471 	EVENT_SEVERITY_MAJOR,
472 	EVENT_SEVERITY_MAJOR,
473 	EVENT_SEVERITY_CRITICAL,
474 	EVENT_SEVERITY_MINOR,
475 	EVENT_SEVERITY_MAJOR,
476 	EVENT_SEVERITY_MAJOR,
477 	EVENT_SEVERITY_CRITICAL,
478 	EVENT_SEVERITY_MINOR,
479 	EVENT_SEVERITY_MAJOR,
480 	EVENT_SEVERITY_MAJOR,
481 	EVENT_SEVERITY_CRITICAL,
482 	EVENT_SEVERITY_MINOR,
483 	EVENT_SEVERITY_MAJOR,
484 	EVENT_SEVERITY_MAJOR,
485 	EVENT_SEVERITY_CRITICAL,
486 	EVENT_SEVERITY_MINOR,
487 	EVENT_SEVERITY_MAJOR,
488 	EVENT_SEVERITY_MAJOR,
489 	EVENT_SEVERITY_CRITICAL,
490 	EVENT_SEVERITY_MINOR,
491 	EVENT_SEVERITY_MAJOR,
492 	EVENT_SEVERITY_MAJOR,
493 	EVENT_SEVERITY_CRITICAL,
494 	EVENT_SEVERITY_MINOR,
495 	EVENT_SEVERITY_MAJOR,
496 	EVENT_SEVERITY_MAJOR,
497 	EVENT_SEVERITY_CRITICAL,
498 	EVENT_SEVERITY_MINOR,
499 	EVENT_SEVERITY_MAJOR,
500 	EVENT_SEVERITY_MAJOR,
501 	EVENT_SEVERITY_CRITICAL,
502 	EVENT_SEVERITY_MINOR,
503 	EVENT_SEVERITY_MAJOR,
504 	EVENT_SEVERITY_MAJOR,
505 	EVENT_SEVERITY_CRITICAL,
506 	EVENT_SEVERITY_MINOR,
507 	EVENT_SEVERITY_MAJOR,
508 	EVENT_SEVERITY_MAJOR,
509 	EVENT_SEVERITY_CRITICAL,
510 	EVENT_SEVERITY_MINOR,
511 	EVENT_SEVERITY_MAJOR,
512 	EVENT_SEVERITY_MAJOR,
513 	EVENT_SEVERITY_CRITICAL,
514 	EVENT_SEVERITY_MINOR,
515 	EVENT_SEVERITY_MAJOR,
516 	EVENT_SEVERITY_MAJOR,
517 	EVENT_SEVERITY_CRITICAL,
518 	EVENT_SEVERITY_MINOR,
519 	EVENT_SEVERITY_MAJOR,
520 	EVENT_SEVERITY_MAJOR,
521 	EVENT_SEVERITY_CRITICAL,
522 	EVENT_SEVERITY_MINOR,
523 	EVENT_SEVERITY_MAJOR,
524 	EVENT_SEVERITY_MAJOR,
525 	EVENT_SEVERITY_CRITICAL,
526 	EVENT_SEVERITY_MINOR
527 };
528 
529 
530 
531 static int user_events_severity[] = {
532 	EVENT_SEVERITY_MAJOR,
533 	EVENT_SEVERITY_CRITICAL,
534 	EVENT_SEVERITY_MINOR,
535 	EVENT_SEVERITY_MINOR,
536 	EVENT_SEVERITY_MINOR
537 };
538 
539 
540 
541 static int system_events_severity[] = {
542 	EVENT_SEVERITY_MAJOR,
543 	EVENT_SEVERITY_MINOR,
544 	EVENT_SEVERITY_CRITICAL,
545 	EVENT_SEVERITY_MINOR,
546 	EVENT_SEVERITY_MINOR,
547 	EVENT_SEVERITY_MAJOR,
548 	EVENT_SEVERITY_MINOR,
549 	EVENT_SEVERITY_MINOR,
550 	EVENT_SEVERITY_MINOR,
551 	EVENT_SEVERITY_MINOR,
552 	EVENT_SEVERITY_MINOR,
553 	EVENT_SEVERITY_MINOR,
554 	EVENT_SEVERITY_MINOR,
555 	EVENT_SEVERITY_MAJOR,
556 	EVENT_SEVERITY_MAJOR,
557 	EVENT_SEVERITY_MINOR,
558 	EVENT_SEVERITY_MAJOR,
559 	EVENT_SEVERITY_MINOR,
560 	EVENT_SEVERITY_MAJOR,
561 	EVENT_SEVERITY_MINOR,
562 	EVENT_SEVERITY_MAJOR,
563 	EVENT_SEVERITY_MINOR,
564 	EVENT_SEVERITY_MAJOR,
565 	EVENT_SEVERITY_MINOR,
566 	EVENT_SEVERITY_MAJOR,
567 	EVENT_SEVERITY_MINOR,
568 	EVENT_SEVERITY_MAJOR,
569 	EVENT_SEVERITY_MINOR,
570 	EVENT_SEVERITY_MINOR,
571 	EVENT_SEVERITY_MINOR,
572 	EVENT_SEVERITY_MAJOR,
573 	EVENT_SEVERITY_MAJOR,
574 	EVENT_SEVERITY_MAJOR,
575 	EVENT_SEVERITY_MINOR,
576 	EVENT_SEVERITY_MINOR,
577 	EVENT_SEVERITY_MINOR,
578 	EVENT_SEVERITY_MAJOR,
579 	EVENT_SEVERITY_MAJOR,
580 	EVENT_SEVERITY_MAJOR,
581 	EVENT_SEVERITY_MINOR,
582 	EVENT_SEVERITY_MAJOR,
583 	EVENT_SEVERITY_CRITICAL,
584 	EVENT_SEVERITY_MINOR,
585 	EVENT_SEVERITY_MINOR,
586 	EVENT_SEVERITY_MINOR,
587 	EVENT_SEVERITY_MINOR,
588 	EVENT_SEVERITY_MAJOR,
589 	EVENT_SEVERITY_MAJOR,
590 	EVENT_SEVERITY_MAJOR,
591 	EVENT_SEVERITY_MAJOR,
592 	EVENT_SEVERITY_MINOR,
593 	EVENT_SEVERITY_MINOR,
594 	EVENT_SEVERITY_MINOR,
595 	EVENT_SEVERITY_MINOR,
596 	EVENT_SEVERITY_MAJOR,
597 	EVENT_SEVERITY_MAJOR,
598 	EVENT_SEVERITY_MAJOR,
599 	EVENT_SEVERITY_MAJOR,
600 	EVENT_SEVERITY_MAJOR,
601 	EVENT_SEVERITY_MAJOR,
602 	EVENT_SEVERITY_MAJOR
603 };
604 
605 
606 
607 static int keyswitch_events_severity[] = {
608 	EVENT_SEVERITY_MINOR,
609 	EVENT_SEVERITY_MINOR,
610 	EVENT_SEVERITY_MINOR,
611 	EVENT_SEVERITY_MINOR,
612 	EVENT_SEVERITY_MINOR
613 };
614 
615 
616 
617 static int rsc_events_severity[] = {
618 	EVENT_SEVERITY_MINOR,
619 	EVENT_SEVERITY_MAJOR,
620 	EVENT_SEVERITY_MINOR,
621 	EVENT_SEVERITY_MINOR,
622 	EVENT_SEVERITY_MAJOR,
623 	EVENT_SEVERITY_MINOR,
624 	EVENT_SEVERITY_MAJOR,
625 	EVENT_SEVERITY_MAJOR,
626 	EVENT_SEVERITY_MINOR,
627 	EVENT_SEVERITY_MINOR,
628 	EVENT_SEVERITY_MINOR,
629 	EVENT_SEVERITY_MAJOR,
630 	EVENT_SEVERITY_MINOR,
631 	EVENT_SEVERITY_MAJOR,
632 	EVENT_SEVERITY_MAJOR,
633 	EVENT_SEVERITY_MAJOR,
634 	EVENT_SEVERITY_MAJOR,
635 	EVENT_SEVERITY_MAJOR,
636 	EVENT_SEVERITY_MAJOR,
637 	EVENT_SEVERITY_MAJOR,
638 	EVENT_SEVERITY_CRITICAL,
639 	EVENT_SEVERITY_MINOR,
640 	EVENT_SEVERITY_CRITICAL,
641 	EVENT_SEVERITY_CRITICAL,
642 	EVENT_SEVERITY_MINOR
643 };
644 
645 
646 
647 static int debug_events_severity[] = {
648 	EVENT_SEVERITY_MINOR,
649 	EVENT_SEVERITY_MINOR,
650 	EVENT_SEVERITY_MAJOR,
651 	EVENT_SEVERITY_MAJOR,
652 	EVENT_SEVERITY_MAJOR,
653 	EVENT_SEVERITY_MAJOR,
654 	EVENT_SEVERITY_MAJOR,
655 	EVENT_SEVERITY_MAJOR,
656 	EVENT_SEVERITY_MAJOR,
657 	EVENT_SEVERITY_MINOR,
658 	EVENT_SEVERITY_MAJOR,
659 	EVENT_SEVERITY_MAJOR,
660 	EVENT_SEVERITY_MINOR,
661 	EVENT_SEVERITY_MAJOR,
662 	EVENT_SEVERITY_MAJOR,
663 	EVENT_SEVERITY_MINOR,
664 	EVENT_SEVERITY_MINOR
665 };
666 
667 
668 static int *severity[] = {
669 	ps_events_severity,
670 	disk_events_severity,
671 	temp_events_severity,
672 	user_events_severity,
673 	system_events_severity,
674 	keyswitch_events_severity,
675 	rsc_events_severity,
676 	debug_events_severity
677 };
678 
679 #ifdef	__cplusplus
680 }
681 #endif
682 
683 #endif /* _EVENT_MESS_H */
684