email from informix in alarmprogram.sh & new version of informix
Posted in 2004
Topics: Backup & Restore, Installation, Setup & Upgrades, Server Administration
hello,
currently we send an email when there is an af file from a crash but
it sends the whole file in the body of the email and these files are
too large. I would like to receive a mail that is only informational.
and when i make this change, does the engine need to be bounced to
take affect?
here is the start of alarmprogram.sh - i am not sure if i need to show
more...
# ########################################
#
# PUBLIC SECTION : CONFIGURATION VARIABLES
#
# ########################################
export OB2APPNAME=ol_db1
export OB2BARLIST=ol_db1_level_0
BACKUPLOGS=Y
ALARMADMIN=3
ALARMPAGER=4
ADMINEMAIL=dbahelp@company.com
PAGEREMAIL=402579xxxx@myairmail.com
MAILUTILITY=/usr/bin/mail
# ########################################
#
# PRIVATE SECTION : EVENT HANDLERS
#
# ########################################
ALRM_NOTWORTHY=1
ALRM_INFO=2
ALRM_ATTENTION=3
ALRM_EMERGENCY=4
ALRM_FATAL=5
EVENT_SEVERITY=$1
EVENT_CLASS=$2
EVENT_MSG="$3"
EVENT_ADD_TEXT="$4"
EVENT_FILE="$5"
BACKUP_CMD="onbar -b -l"
RM="rm -f"
ONSTATCMD="onstat"
MAILBODY=/tmp/__MAILBODY_$$
MAILHEAD=/tmp/__MAILHEAD_$$
TMPFILE=/tmp/__TMPFILE_$$
ALARMTESTFILE=
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
the second question is regarding going from 9.4 FC2 to FC3 - what all
needs changing to complete the upgrade?
thanks!
If you are just altering what the alarmprogram.sh does the you
don't need to bounce the engine.
tomL wrote:
>
> hello,
> currently we send an email when there is an af file from a crash but
> it sends the whole file in the body of the email and these files are
> too large. I would like to receive a mail that is only informational.
> and when i make this change, does the engine need to be bounced to
> take affect?
>
> here is the start of alarmprogram.sh - i am not sure if i need to show
> more...
>
> # ########################################
> #
> # PUBLIC SECTION : CONFIGURATION VARIABLES
> #
> # ########################################
>
> export OB2APPNAME=ol_db1
> export OB2BARLIST=ol_db1_level_0
> BACKUPLOGS=Y
>
> ALARMADMIN=3
> ALARMPAGER=4
> ADMINEMAIL=dbahelp@company.com
> PAGEREMAIL=402579xxxx@myairmail.com
>
> MAILUTILITY=/usr/bin/mail
>
> # ########################################
> #
> # PRIVATE SECTION : EVENT HANDLERS
> #
> # ########################################
>
> ALRM_NOTWORTHY=1
> ALRM_INFO=2
> ALRM_ATTENTION=3
> ALRM_EMERGENCY=4
> ALRM_FATAL=5
>
> EVENT_SEVERITY=$1
> EVENT_CLASS=$2
> EVENT_MSG="$3"
> EVENT_ADD_TEXT="$4"
> EVENT_FILE="$5"
>
> BACKUP_CMD="onbar -b -l"
> RM="rm -f"
> ONSTATCMD="onstat"
> MAILBODY=/tmp/__MAILBODY_$$
> MAILHEAD=/tmp/__MAILHEAD_$$
> TMPFILE=/tmp/__TMPFILE_$$
> ALARMTESTFILE=
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> the second question is regarding going from 9.4 FC2 to FC3 - what all
> needs changing to complete the upgrade?
>
> thanks!
--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #