Try using a leg hold trap in the mouth of the hole.
Groundhogs hate human odor so you need to set the
trap first then smoke the trap. Meaning put the trap
on a stick holding it over a burning paper box ,bag
etc.(hold it in the smoke only don't get the trap hot) Stake the traps chain down securly and place
trap in the hole.Hope this helps.