Community-acquired pneumonia is pneumonia you get at home and places in the community, such as at school, work or the gym. This type of pneumonia often has different bacteria than one acquired in the hospital.