After final judgment in a civil action or proceeding in which security for disbursements has been given as required by law, the circuit court, upon motion of the defendant or other person having a right to all or part of the disbursements, may enter a judgment against the surety and against his personal representatives, for the amount of the disbursements or as much as may be unpaid.
SDCL 15-17-47