This is a question that I frequently ask myself as a DM. I usually play a (home made) rule that you must first succeed on an intelligence check with a DC that varies depending on the knowledge of the monster, this would mean if they encounter an Aboleth; an unknown monster to most, the DC would be higher than a Goblin.
Is how it should be or should the players know the names of encountered monsters?