Rerunning Bacula jobs from Mutt

I've got Nagios set to alert me if Bacula jobs go too long without running. Then I re-run them. This is a pain, so I made a better way to do this. I've got a Mutt macro that looks like this:

macro index ,b "|rerun_from_nagios_or_bacula.sh\n\n" "Rerun bacula job."

And in turn, the shell script looks like this:

#!/bin/bash

awk '/PROBLEM.*backup is/ {print "run job=" $6 " level=" $7 " yes"}' |
    sed -e's/level=backup//; s#=.*/#=#' |
    ssh backup-server -t bconsole

Of course, a better way of having all this work would be an actually-working scheduler in Bacula. But this makes the pain bearable for one more day.