Last change
on this file since 2347 was
2195,
checked in by ezyang, 12 years ago
|
Merge changes from trunk.
|
-
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.