Pneumonia is a common lung infection that affects the air sacs in your lungs. It develops when these air sacs swell up, making it challenging to take in oxygen. Several types of bacteria, microorganisms and fungi can result in pneumonia. Symptoms typically include a dry cough, fever, chills, shortness of breath and chest pain. Determining the cond