Officials say a dam near the town of Nashville in southern Illinois is in imminent danger of failure after heavy rain.