Pneumonia is an inflammation or infection of the lungs most commonly caused by a bacteria or virus. Pneumonia can also be caused by inhaling vomit or other foreign substances.
these are viruses that infect bacteria and fungi respectively. that is unless you are talking about something that infects other types of organisms, in that case there is no such thing as bacteria...