I'm looking for a short story (possibly a story set within a larger novel, but I doubt it) where the new commander of a space station is an impossible martinet, who knows nothing about how the crew needs to work to get things done in space.
Eventually he is touring the station alone and finds the air plant is completely uncleaned and has green crap growing everywhere, so he gets some robots to help and completely cleans it out.
Of course the "air plant" is actually a plant, not machinery, and what he has done is destroy the finely-tuned oxygen-reclaiming greenery and left nothing but sterile vents, which means everyone aboard the station is asphyxiating. They get into suits and wait for oxygen to be brought up to the station, but it's clear the martinet will be fired. Good riddance!
Probably a short story in an early anthology, 60s-70s.