Pneumonia is an infection of the lungs caused by bacteria, viruses, fungi, or parasites. Read on for more about the risk groups and treatments available. Learn the best strategies for pneumonia diagnosis, treatment, and management with this comprehensive care plan for faster recovery. Treatment for pneumonia depends on the cause — bacterial, viral or fungal — and how serious your case is. In many cases, the cause can’t be determined and treatment is focused on managing symptoms and making sure your condition doesn’t get worse. Pneumonia is an infection of the lungs caused by fungi, bacteria, or viruses. General symptoms include chest pain, fever, cough, and trouble breathing.