Last change
on this file since 2640 was
2152,
checked in by adehnert, 13 years ago
|
Split out AFS nagios checks
|
-
Property svn:executable set to
*
|
File size:
373 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | . /usr/lib64/nagios/plugins/utils.sh |
---|
3 | |
---|
4 | if [ $# -ge 1 ]; then |
---|
5 | CHECKS=`/usr/bin/fs checks -cell "$1" -fast` |
---|
6 | else |
---|
7 | CHECKS=`/usr/bin/fs checks -all -fast` |
---|
8 | fi |
---|
9 | |
---|
10 | STATUS=$? |
---|
11 | |
---|
12 | $ECHO "$CHECKS" |
---|
13 | |
---|
14 | if [ $STATUS -gt 0 ]; then |
---|
15 | if $ECHO "$CHECKS" | grep -i COCYTUS >/dev/null; then |
---|
16 | exit $STATE_CRITICAL; |
---|
17 | else |
---|
18 | exit $STATE_WARNING; |
---|
19 | fi |
---|
20 | else |
---|
21 | exit $STATE_OK; |
---|
22 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.