Dell announced Monday that it has agreed to buy Quest Software, a company that makes management tools for corporate IT departments.