This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash -e | |
# This script searches HyperBackup or ActiveBackup logs to determine | |
# the last time a specified backup task completed successfully | |
# That timestamp is then submitted to Icinga along with an OK | |
# if the task was completed within the last number of hours | |
# specified by the -w value, WARNING if between the values of | |
# -w and -c, and CRITICAL for values over that. | |
# If no value is given for -w it will be set to -c. | |
# For that submission to work, the following have to be true: |