The health care provider also may be able to get a sample of pus to examine closer. This will help find the exact cause of the pneumonia.