Changeset 1170 for dasscm/trunk/usr/bin


Ignore:
Timestamp:
Feb 4, 2014, 6:39:59 PM (11 years ago)
Author:
joergs
Message:

local changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dasscm/trunk/usr/bin/dasscm_remote_check.sh

    r1169 r1170  
    4949fi
    5050
     51LOCALCHANGES=`svn status "$DIR"`
     52if [ $? -ne 0 ]; then
     53    myexit $NAGIOS_CRIT "failed to retrieve local subversion info of directory  $DIR"
     54fi
     55
    5156DASSCM_RSYNC_OPTIONS=${DASSCM_RSYNC_OPTIONS:-""}
    52 DASSCM_RSYNC_OPTIONS="$DASSCM_RSYNC_OPTIONS --dry-run --checksum --out-format CHANGED:%n%L"
     57export DASSCM_RSYNC_OPTIONS="$DASSCM_RSYNC_OPTIONS --dry-run --checksum --out-format CHANGED:%n%L"
    5358CHANGES=`dasscm_remote_update.sh "$@" | sed -n 's/CHANGED://p'`
    54 if [ -z "$CHANGES" ]; then
    55     myexit $NAGIOS_OK
     59if [ "$CHANGES" ]; then
     60    myexit $NAGIOS_WARN $CHANGES
    5661else
    57     myexit $NAGIOS_WARN $CHANGES
     62    LOCALCHANGES=`svn status "$DIR"`
     63    if [ "$LOCALCHANGES" ]; then
     64        myexit $NAGIOS_WARN " (local) " $LOCALCHANGES
     65    else
     66        myexit $NAGIOS_OK
     67    fi
    5868fi
Note: See TracChangeset for help on using the changeset viewer.