摘要 |
Embodiments of the present invention relate to an alarm method and apparatus. The method is specifically: acquiring a first receive power of an active unit and a second receive power of a standby unit; calculating a power difference between the first receive power and the second receive power; and triggering an alarm for the standby unit when the power difference is a positive value and not less than a first threshold, or triggering an alarm for the active unit when the power difference is a negative value and not greater than a second threshold. Therefore, a unit for which an alarm needs to be triggered in a network element is determined by using a power comparing method, and an alarm is triggered for the unit, so that a faulty network element can be checked and processed in advance, implementing high timeliness and excellent real-time performance. |