If your pneumonia is serious, you may be treated in a hospital so you can get antibiotics and fluids through an intravenous (IV) line inserted into your vein. You may also get oxygen therapy to increase the amount of oxygen in your blood. If your pneumonia is very serious, you may need to be put on a ventilator.