How to alarm on Cisco power supply status with Live Health

Document ID : KB000032811
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:  

How do I alarm on power supply status for Cisco devices?

 

Answer: 

If you want to get an alarm for all non-good states, you will need to create 2 rules, as a status of "1" means "good"

 

  1. Create a Live Exceptions rule, including the correct element type, "Router/Switch Environment CPU" and variable "Power Supply Status"
  2. Set your first rule to "above 1", as a gauge value
  3. Create a second rule, just like the first, but set the value to "below 1" 

 

Additional Information: 

Cisco has the following status codes for power supply

1:normal 

2:warning 

3:critical 

4:shutdown 

5:notPresent 

6:notFunctioning 

 

eHealth uses the following calculation to deal with these 6 codes

(constArrayMap (ciscoEnvMonSupplyStatus, 0,1,2,3,3,0,0)) 

  • When the value of ciscoEnvMonSupplyStatus is either 0, 5 or 6 -- we mark it with a value of 0 
  • When the value of ciscoEnvMonSupplyStatus is 3 or 4 -- we mark it with a value of 3 
  • When the value of ciscoEnvMonSupplyStatus is 2 -- we mark it with a value of 2 
  • When the value of ciscoEnvMonSupplyStatus is 1 -- we mark it with a value of 1 

Because of the way that eHealth handles the error codes, there is a possibility of a "0" status, thus the extra rule