Last change
on this file since 763 was
758,
checked in by quentin, 16 years ago
|
Avoid spew in cases of serious error
|
-
Property svn:executable set to
*
|
File size:
291 bytes
|
Rev | Line | |
---|
[757] | 1 | #!/bin/sh |
---|
| 2 | . /usr/lib64/nagios/plugins/utils.sh |
---|
| 3 | |
---|
| 4 | CHECKS=`/usr/bin/fs checks -all -fast` |
---|
| 5 | STATUS=$? |
---|
| 6 | |
---|
| 7 | $ECHO "$CHECKS" |
---|
| 8 | |
---|
| 9 | if [ $STATUS -gt 0 ]; then |
---|
[758] | 10 | if $ECHO "$CHECKS" | grep -i AEGISTHUS >/dev/null; then |
---|
[757] | 11 | exit $STATE_CRITICAL; |
---|
| 12 | else |
---|
| 13 | exit $STATE_WARNING; |
---|
| 14 | fi |
---|
| 15 | else |
---|
| 16 | exit $STATE_OK; |
---|
| 17 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.