NMS-6901 clean up incredibly inefficient alarm/node query