What types of monopolies are beneficial? Why are those monopolies good for consumers?

Many people believe that all monopolies are harmful or dangerous for consumers. However, the issue is not that simple.
• What types of monopolies are beneficial? Why are those monopolies good for consumers?
• What types of monopolies are bad or harmful for consumers? Why are they harmful?