Home |
Previous Page | Next Page Appendix C. Event Alarms > Using ALARMPROGRAM to Capture Events >
Follow
these steps to customize the alarmprogram.[sh|bat] script.
You can use alarmprogram.[sh|bat] instead
of log_full.[sh|bat] to automate log backups.
To customize the ALARMPROGRAM scripts
- Change the value of ADMINMAIL to the
email address of the database server administrator.
- Change the value of PAGERMAIL to the
pager service email address.
- Set the value of the parameter MAILUTILITY with /usr/bin/mail for UNIX and $INFORMIXDIR/bin/ntmail.exe for Windows.
- To automatically back up logical logs as they fill, change BACKUP to yes.
To stop automatic log backups, change BACKUP to
any value other than yes.
- In
the ONCONFIG file, set ALARMPROGRAM to
the full pathname of alarmprogram.[sh|bat].
- Reboot the database server.
Alarms with a severity of 1 or 2 do not write any messages to
the message log nor send email. Alarms with severity of 3 or greater
send email to the database administrator. Alarms with severity of
4 and 5 also notify a pager via email.
Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]