lazy way out
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-bacula-lastbackup-wrap
1 #!/bin/sh
2
3 check=/usr/lib/nagios/plugins/dsa-check-bacula-lastbackup
4 usage() {
5         echo >&2 "Usage: $0 <full|any> <host>"
6         exit 1
7 }
8
9 if [ "$#" != 2 ]; then
10         usage
11 fi
12
13 if [ "$1" = "full" ]; then
14         exec "$check" -level=F -warningAge=840 -criticalAge=1560 -client="$2.debian.org"
15 elif [ "$1" = "any" ]; then
16         exec "$check" -level="*" -client="$2.debian.org"
17 else
18         usage
19 fi
20