Return 0 when alarm is disabled.