What should I do about this collar tie, all the nails seem to be coming out of the rafter or were not in correctly to begin with?
Added photo showing nails
What should I do about this collar tie, all the nails seem to be coming out of the rafter or were not in correctly to begin with?
Added photo showing nails
Looks like what you're asking about is a collar tie nailing to a rafter. I don't think your roof is going to collapse from one of those being loose.
Can't tell from the pictures what's making it come off like that but if there's nothing else wrong I would either hammer them back or pull them back together with a clamp. You could also extract the nails neatly with a cat's paw and drive 3" construction screws through the nail holes. Do this one nail at a time to keep things aligned.
Might want to wait for some 2nd opinions or at least some upvotes for this answer before you follow that advice. I'm not a structural engineer or a carpenter.