Directed therapy for pneumonia