1 Atypical pneumonia, often called walking pneumonia, is caused by other bacteria. 2  A fungus called Pneumocystis jiroveci can cause pneumonia in people whose immune system is not working well, especially people with advanced HIV infection.  Viruses, such as the flu virus, are also a common cause of pneumonia.