NAME
bpc-info - A utility to get backup information from BackupPC in regards to backups.
SYNOPSIS
bpc-info -l -m <machine> bpc-info -a <days> -e <equality> bpc-info -a <days> -e <equality> -n [-w <warn level>] [-c <critical level>] [-i <ignore file>]
USAGE
Either -a or -l need to be given.
With -n, -a may be used as a nagios check and the output will be a simplified version formated as such.
SWITCHES
-a <days>
Deminal days after the last backup to used for searching. The comparison equality is set via -e.
A value of "-1" or the like may be given to display all machines and backup ages.
-c <critical level>
The number of machines needing to match -a when -n is used for it to be considered critical.
-e <equality>
Either the symbol or letter equivalent may be used.
This is evaluated as below.
$backup_age $equality $opts{a}
The understood ones are listed below.
e, =
lt, <
le, <=
gt, >
ge, >=
-i <ignore file>
This is a file that contains the hostnames to be ignored.
Lines starting with # are ignored.
White space at the start or end of a line is removed.
There can be one hostname per line.
Empty lines are ignored.
# a comment
foo.bar
# another comment
foo.bar
-l
Displays the last information for the machine specificied via -m.
-m <machine>
The machine to operate on in terms of backups.
-n
Operate in Nagios mode.
When combined with -a can be used for alerting if to many backups are older than a specific age.
-w <warn level>
The number of machines needing to match -a when -n is used for it to throw a warning.