Warning chime

I've been having a problem with my warning chime in the car going off when it shouldn't. With the car running and the headlights on...of you open the door the chime goes off like you left the lights on and parked the car. Sometimes it will also go off when the car is parked, headlights are off, and the key is out of the ignition. Anyone ever run in to this?