It seems that my ovaries have been causing me pain for several months. I am 47 yrs old. What might this be?

Endometriosis. Unfortunately the nervous supply of the abdomen and pelvis is not like other areas and just because you feel discomfort in the general area of the ovaries doesnt specifically mean that is where the pain is coming from. There is a network of nerves in this area and the brain can't pinpoint where the source is. Various maladies could account for this including endometriosis. See a gynecologist.
Not the ovaries. They are accused of pain by many docs, but rarely are the source of pain. Bladder and bowel are more likely the source, as could be a fibroid as you are perimenopausal they can act up related to hormonal changes. See a gyn http://pelvicpain. Org/.