- 论坛徽章:
- 0
|
都有加,log_full如下:
PATH=$PATH:/opt/networker/bin:
export PATH
NSR_SERVER=bksvr1p_srv
export NSR_SERVER
NSR_LOG_VOLUME_POOL=SLBPSDBLog
export NSR_LOG_VOLUME_POOL
NSR_SAVESET_BROWSE=Month
export NSR_SAVESET_BROWSE
NSR_SAVESET_RETENTION=Month
export NSR_SAVESET_RETENTION
PROG=`basename $0`
USER_LIST=informix
BACKUP_CMD="onbar -b -l"
EXIT_STATUS=0
EVENT_SEVERITY=$1
EVENT_CLASS=$2
EVENT_MSG="$3"
EVENT_ADD_TEXT="$4"
EVENT_FILE="$5"
case "$EVENT_CLASS" in
23)
# onbar assumes no operator is present,
# so all messages are written to the activity
# log and there shouldn't be any output, but
# send everything to /dev/null just in case
$BACKUP_CMD 2>&1 >> /dev/null
EXIT_STATUS=$?
;;
# One program is shared by all event alarms. If this ever gets expanded to
# handle more than just archive events, uncomment the following:
*)
# EXIT_STATUS=1
;;
esac
exit $EXIT_STATUS |
|