Rerunning Bacula jobs from Mutt
07 Aug 2012I'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.
Add a comment:
Name and email required; email is not displayed.
Related Posts
QRP weekend 08 Oct 2018
Open Source Cubesat Workshop 2018 03 Oct 2018
mpd crash? try removing files in /var/lib/mpd/ 11 Aug 2018