You said he's 5 months old, hasn't pooped in months and has only gained 15g in the last 4 weeks?
Two questions:
How many rat pinkies are you feeding him each week?
What does he currently weigh at the moment?
Rat pinkies are very small. It sounds like you may just not be feeding him enough.