Pneumonia is an infection of the lungs that can be caused by bacteria, viruses, or fungi. Common symptoms include cough, fever, shortness of breath, and chest pain. It is typically diagnosed based on symptoms and chest x-ray or CT scan. Treatment involves antibiotics for bacterial pneumonia, and rest. Complications can include respiratory failure, lung abscesses, or sepsis. Prevention involves vaccination against influenza and streptococcus pneumoniae.