Results 1 to 3 of 3

Thread: check_amanda.pl - monitor backups with Nagios

  1. #1
    Join Date
    Jan 2015
    Location
    Melbourne, Australia
    Posts
    2

    Lightbulb check_amanda.pl - monitor backups with Nagios

    Hi,

    I've just completed a new Nagios check - check_amanda.pl

    See:
    * github.com/infoxchange/check_amanda
    or find it on Nagios Exchange
    * exchange.nagios.org/directory/Plugins/Backup-and-Recovery/Amanda/check_amanda-2Epl--2D-Disk-2Dto-2DDisk/details

    Why?

    There were a couple of situations we encountered recently that resulted in backups failing, but this was not obvious from the generated reports.

    1. A backup fails to complete, and the subsequent backups do not start. No report e-mail is sent, neither for the hanging backup, nor for the backups that were never started.

    2. A backup completes successfully, but it is empty, or mostly empty. Technically, this is a misconfiguration, but we needed something to catch this situation if/when it happens.

    The result is check_amanda.pl (a Perl script), that:
    * Looks though all the disklist.conf files in /etc/amanda/*
    * Looks though all the backup files (dump files) in the 'storage media' directory-tree.
    * Checks the age and size of the backups, to ensure that a recent, reasonably-sized backup exists for each configured DLE

    Our backups all go to disk, rather than tape, so only dumps which go to the 'big disk' are checked ie. media Device Type: Disk/NAS/SAN

    The script can be run standalone (without Nagios), and provide some valuable insights into the current status of the backups, including the total size of the latest backup-set(s)

    See the README.md file on github for some sample outputs from the check_amanda.pl script.

  2. #2

    Default

    There were a couple of situations we encountered recently that resulted in backups failing, but this was not obvious from the generated reports.



    MALIK66

  3. #3
    Join Date
    Jan 2015
    Location
    Melbourne, Australia
    Posts
    2

    Default

    The check_amanda.pl script does not rely on log scraping or report scraping.

    It compares the backups configured in the disklist.conf files against the actual backups found on the disk store.
    It examines the headers of the backup-files to determine the most recent.
    It does not verify the contents of the backup-files, so it does not pick up every possible problem, but it does catch a number of situations that would be missed if you rely soley on the reports.

    If you are running Nagios or any of it's work-alikes (Icinga, Sensu, Op5, et al) you can use this script to monitor your backups.

Tags for this Thread

Posting Permissions

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