Hi all -- I'd like to set up a Nagios check for the hosts we back up with Amanda, and I thought I could use the script API for this. My thought was to have a script run at post-dle-backup or post-host-backup that would report that job's status to Nagios -- something like this:

Code:
#!/bin/bash

# Making up these args for illustration
host=$1
dle=$2
status=$3
# ...etc...or maybe available via environment variables?

# And then build & send Nagios notification
send_nsca "$host-$dle-backup status is $status [.....]"
Does anyone know if this is possible? Do the post-backup-host and/or post-backup-dle functions have access to the status of the job that has just completed?