回复 2# antyison ALARMPROGRAM /home/informix/etc/logfull.sh
STORAGE_FULL_ALARM 600,3
SYSALARMPROGRAM $INFORMIXDIR/etc/evidence.sh
cat logfull.sh
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
informix:/home/informix/etc/backup>onbar -b -l
informix:/home/informix/etc/backup>ls
没有产生日志
informix:/home/informix/etc/backup>onmode -c
informix:/home/informix/etc/backup>onmode -l
informix:/home/informix/etc/backup>onstat -l
IBM Informix Dynamic Server Version 11.50.FC6 -- On-Line -- Up 00:06:46 -- 568608 Kbytes
Physical Logging
Buffer bufused bufsize numpages numwrits pages/io
P-2 10 32 25 2 12.50
phybegin physize phypos phyused %used
3:53 122500 33341 10 0.01
Logical Logging
Buffer bufused bufsize numrecs numpages numwrits recs/pages pages/io
L-2 0 16 137 20 19 6.8 1.1
Subsystem numrecs Log Space used
OLDRSAM 134 15124
HA 3 132
address number flags uniqid begin size used %used
700000010631f98 1 U------ 945 29:53 524288 9 0.00
700000010776f50 2 U------ 946 29:524341 524288 202 0.04
700000010776fb8 3 U-----L 947 29:1048629 524288 10 0.00
70000001075df50 53 U---C-- 948 29:1572917 524288 4 0.00
70000001075dfb8 54 U-B---- 944 29:2097205 524288 27 0.01
5 active, 5 total
ldz:informix:/home/informix/etc/backup>ls
还是没有产生日志