The circuit court, before certifying any allowance pursuant to § 53.1-93, shall inquire into the condition of the jail. If it appears that a guard was necessary because of the insecurity of the jail, it shall order the allowance to be certified to the governing body of the county or city. If otherwise, and the guard was necessary, the allowance shall be paid out of the budget of the sheriff as approved by the Compensation Board.
Va. Code § 53.1-94