Changeset 1170 for dasscm/trunk/usr/bin/dasscm_remote_check.sh
- Timestamp:
- Feb 4, 2014, 6:39:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dasscm/trunk/usr/bin/dasscm_remote_check.sh
r1169 r1170 49 49 fi 50 50 51 LOCALCHANGES=`svn status "$DIR"` 52 if [ $? -ne 0 ]; then 53 myexit $NAGIOS_CRIT "failed to retrieve local subversion info of directory $DIR" 54 fi 55 51 56 DASSCM_RSYNC_OPTIONS=${DASSCM_RSYNC_OPTIONS:-""} 52 DASSCM_RSYNC_OPTIONS="$DASSCM_RSYNC_OPTIONS --dry-run --checksum --out-format CHANGED:%n%L"57 export DASSCM_RSYNC_OPTIONS="$DASSCM_RSYNC_OPTIONS --dry-run --checksum --out-format CHANGED:%n%L" 53 58 CHANGES=`dasscm_remote_update.sh "$@" | sed -n 's/CHANGED://p'` 54 if [ -z"$CHANGES" ]; then55 myexit $NAGIOS_ OK59 if [ "$CHANGES" ]; then 60 myexit $NAGIOS_WARN $CHANGES 56 61 else 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 58 68 fi
Note:
See TracChangeset
for help on using the changeset viewer.