Results 1 to 2 of 2

Thread: Do post-dle-backup/post-host-backup scripts have access to backup status?

  1. #1

    Default Do post-dle-backup/post-host-backup scripts have access to backup status?

    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?

  2. #2

    Default

    Sorry to pester, but does anyone know the answer? It's been a week with no reply. If the answer is no, I'll find another way to do what I want.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •