Home | Previous Page | Next Page   Appendix C. Event Alarms > Using ALARMPROGRAM to Capture Events >

Customizing the ALARMPROGRAM scripts

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
  1. Change the value of ADMINMAIL to the email address of the database server administrator.
  2. Change the value of PAGERMAIL to the pager service email address.
  3. Set the value of the parameter MAILUTILITY with /usr/bin/mail for UNIX and $INFORMIXDIR/bin/ntmail.exe for Windows.
  4. 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.

  5. In the ONCONFIG file, set ALARMPROGRAM to the full pathname of alarmprogram.[sh|bat].
  6. 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 ]