The masonry around the flue looks pretty sound, but maybe rain blowing into the flue is a possibility. A leak on the mains side seems unlikely because it's so intermittent.
I think there's some kind of flexible hose above the drip but I've no idea what it does or why it would leak now and then.