Hello,
We would like to tune our alarmprogram.sh script to receive alerts only when something goes wrong.
After our initial configuration, we noticed that we receive alerts for successful events, such as when a backup or a logical log backup succeeds. We actually want the opposite: we only want to be alerted when a backup fails, or when the connection between the primary server and a secondary server (RSS or HDR) drops.
How should we configure the script to achieve this?
Right now, this is what we have:
ALARMADMIN=1
ALARMPAGER=0
ADMINEMAIL=admin@srv.net
PAGEREMAIL=
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"
EVENT_UNIQID="$6"
BACKUP_CMD="ontape -a -d"
RM="rm -f"
ONSTATCMD="onstat"
MAILBODY=/tmp/__MAILBODY_$$
MAILHEAD=/tmp/__MAILHEAD_$$
TMPFILE=/tmp/__TMPFILE_$$
TMPFILE1=/tmp/__TMPFILE1_$$
ALARMTESTFILE=
Thank you for your help!
------------------------------
Samuel To
------------------------------