source: trunk/server/fedora/config/etc/nagios/check_afs @ 2023

Last change on this file since 2023 was 2023, checked in by mitchb, 13 years ago
We've vos moved - come visit us at our new location!
  • Property svn:executable set to *
File size: 289 bytes
Line 
1#!/bin/sh
2. /usr/lib64/nagios/plugins/utils.sh
3
4CHECKS=`/usr/bin/fs checks -all -fast`
5STATUS=$?
6
7$ECHO "$CHECKS"
8
9if [ $STATUS -gt 0 ]; then
10    if $ECHO "$CHECKS" | grep -i COCYTUS >/dev/null; then
11        exit $STATE_CRITICAL;
12    else
13        exit $STATE_WARNING;
14    fi
15else
16    exit $STATE_OK;
17fi
Note: See TracBrowser for help on using the repository browser.