Patients may need a ventilator when they are very ill or during and after surgery. Ventilators can be life-saving, but they can also increase a patient's chance of getting pneumonia by making it easier for germs to get into the patient's lungs.