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