Hi Sergei,
This is what I have set up:
In the .alarmrc I have the following line added to get the AlarmTitle:
EXTRA_ATTRS_AS_ENVVARS=0x12b4c
In the SetScript I have the following additional lines:
ALARMTITLE=$SANM_0X12B4C
PCAUSE_FILE=`echo ${CAUSE} | awk '{print "Prob"
substr("00000000",1,8-length($1)) $1}'`
PCTITLE=`head -1 ${SPECROOT}/SG-Support/CsPCause/${PCAUSE_FILE}`
-s is the subject in the email
$MAIL -s "$SEV Alarm, $MNAME, $DTYPE, $IPADDRESS, $ALARMTITLE, $PCTITLE"
$RCVRS < /tmp/set_alarm.$PID
Karen Kedda
Enterprise Monitoring Solutions
Berkley Technology Services LLC
405 Silverside Rd., Suite 205
Wilmington, DE 19809
302.746.2113
[email protected]
From:
"Karpovitch, Sergei" <[email protected]>
To:
"spectrum" <[email protected]>
Date:
02/11/2011 11:19 AM
Subject:
[spectrum] Spectrum Notifier script PCAUSE in subject line
Folks,
does anyone know what is the syntax to get PCAUSE in subject line?
thanks in advance
Sergei Karpovitch
Senior Data Security Engineer
Morgan, Lewis & Bockius LLP
1701 Market Street | Philadelphia, PA 19103-2921
Direct: 215.963.5197 | Main: 215.963.5000 | Fax: 215.963.5001
[email protected] | www.morganlewis.com
DISCLAIMER
This e-mail message is intended only for the personal use
of the recipient(s) named above. This message may be an
attorney-client communication and as such privileged and
confidential and/or it may include attorney work product.
If you are not an intended recipient, you may not review,
copy or distribute this message. If you have received this
communication in error, please notify us immediately by
e-mail and delete the original message.
---
To unsubscribe from spectrum, send email to [email protected] with the
body: unsubscribe spectrum [email protected]
*************
CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain
private, privileged and confidential information belonging to the sender. The
information therein is solely for the use of the addressee. If your receipt of
this transmission has occurred as the result of an error, please immediately
notify us so we can arrange for the return of the documents. In such
circumstances, you are advised that you may not disclose, copy, distribute or
take any other action in reliance on the information transmitted.
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]