Description of Adding Customized Alarms
To add customized alarms, perform the following steps:
- Enable the function of adding customized alarms.
- Implement the initialization API for customized alarm detection.
- Implement the registration API of the customized alarm callback function.
- Modify the alarm-related configuration files.
- Copy the alarm_info_solution_en.json and alarm_info_solution_zh.json files and write the new alarm configuration to the copies for displaying alarm information on the frontend page.
- Copy the all_alarm_for_manager_web.json file and write the new alarm masking rule configuration to the copy for displaying the alarm masking rule on the frontend.
- Copy the alarm_info_en.json file and write the new alarm configuration to the copy for reporting alarms to FusionDirector.
- Copy the all_alarm_for_manager.json file and write the new alarm masking rule to the copy to check whether the new alarm masking rule is valid when you create an alarm masking rule.
Add related alarm configuration information according to the existing format of the configuration file.
- Invoke the verification script validate_alarm_config.py to check whether the modified alarm configuration file is correctly configured.
- Compile the customized alarm module into the custom_define_alarm.so file and save the file to /usr/local/mindx/MindXOM/lib. Replace the original configuration file of the OM SDK with the modified configuration file in step 4.
Parent topic: Customized Alarms