A surety may maintain an action against his principal to obtain indemnity against the debt or liability for which he is bound, before it is due, whenever any of the grounds exist upon which an order may be made for arrest of a debtor, or for an attachment.
R.C. §1341.20