source: branches/fc17-dev/server/fedora/config/etc/nagios/check_afs @ 2195

Last change on this file since 2195 was 2195, checked in by ezyang, 10 years ago
Merge changes from trunk.
  • Property svn:executable set to *
File size: 373 bytes
RevLine 
[757]1#!/bin/sh
2. /usr/lib64/nagios/plugins/utils.sh
3
[2195]4if [ $# -ge 1 ]; then
5    CHECKS=`/usr/bin/fs checks -cell "$1" -fast`
6else
7    CHECKS=`/usr/bin/fs checks -all -fast`
8fi
9
[757]10STATUS=$?
11
12$ECHO "$CHECKS"
13
14if [ $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
20else
21    exit $STATE_OK;
22fi
Note: See TracBrowser for help on using the repository browser.