Customized Alarm Description

The OM SDK allows users to perform secondary development and add customized alarm information. When initializing the fault detection component, the edge management system calls the customized fault detection API (drv_fault_check_init) and callback function registration API (drv_fault_check_register_callback) in the /usr/local/mindx/MindXOM/lib/libcustomized_alarm.so file to start the customized alarm detection component. When an alarm is detected, the registered callback function writes the alarm information to the alarm file provided by the OM SDK.

  • The drv_fault_check_init API is used to initialize and start customized alarms. The detection logic is implemented by users.
  • The drv_fault_check_register_callback API is used to register the callback function of the OM SDK with the customized alarm component. When an alarm is generated, the registered callback function is invoked to write the alarm information to the alarm file.

Initialization process of customized alarm detection

Figure 1 Detection process

Alarm Reporting Process

  • Reported to the edge management system WebUI:
    Figure 2 Alarm reporting process
  • Reported to FusionDirector:
    Figure 3 Alarm reporting process