Definitely talk to your doc or pdoc about it. Sweating can be a side effect of some meds, or a sign of a regular doc type illness. If it were me, I'd start with my pdoc, as it is more likely to be a med effect.
Sorry to hear about your pneumonia, that really is a pain. Take good care of yourself, and let us know what the sweating turns out to be, please.