IMDB’s description:
Stranded on Mars with only a monkey as a companion, an astronaut must figure out how to find oxygen, water, and food on the lifeless planet.
This movie opens in space orbiting Mars. Two astronauts, Mack (Adam West) and Christopher Draper (Paul Mantee) are in orbit with a monkey. Suddenly an asteroid is on an intercept course with them. The thing about space is, it is really big, and so a minor change in course becomes pretty dramatic as you orbit a planet. Anyways, they do a couple of major maneuvers to dodge the asteroid, and they slip into a decaying orbit around Mars. NASA tells them they have to eject.