You're referring to a trench drain, they can be made by sizing metal grates to fit into a formed concrete trench, but these days are more commonly prefabricated such as the one pictured below. Something like that could be installed and not tied in to a sewer, but merely cleaned out with a shop-vac on occasion.