Pneumonia is the generic name of inflammation of the lungs. Besides bacterial pneumonias, there are pneumonias caused by virus, fungi, toxic pneumonias, etc.