Last change
on this file since 2403 was
2152,
checked in by adehnert, 12 years ago
|
Split out AFS nagios checks
|
-
Property svn:executable set to
*
|
File size:
373 bytes
|
Rev | Line | |
---|
[757] | 1 | #!/bin/sh |
---|
| 2 | . /usr/lib64/nagios/plugins/utils.sh |
---|
| 3 | |
---|
[2152] | 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 | |
---|
[757] | 10 | STATUS=$? |
---|
| 11 | |
---|
| 12 | $ECHO "$CHECKS" |
---|
| 13 | |
---|
| 14 | if [ $STATUS -gt 0 ]; then |
---|
[2023] | 15 | if $ECHO "$CHECKS" | grep -i COCYTUS >/dev/null; then |
---|
[757] | 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.