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

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