In our Windows environment, the email notifications work when they are manually generated from OneClick console, but do not work automatically when using Alarm Notifier
this message appears in the .OUT file:
Using return address "Administrator Account" <[email protected]@SPECTRUMHOSTNAME>
SPECTRUMHOSTNAME is the hostname for the SpectroSERVER
These settings are obtained from the registry after running the mail command for the first time.
How to configure Spectrum Alarm Notifier to send email notifications
If it was already checked that the domain do not include the spectroSERVER hostname, the suggestion is manually add the -u and -m parameters to the SetScript, ClearScript and UpdateScript with the required values.
Release : 10.4.1
Component : Spectrum Applications
1. Take a backup, and edit the $SPECROOT/Notifier/SetScript script.
2. Almost at the end of the file look for the next line, and change it as follow
$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID
$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" -u <username> -m <domain> $RCVRS < /tmp/set_alarm.$PID
Replace <username>, with the username of the email account used to send the email notifications.
Replace <domain>, with the domain of the email account used to send the email notifications.
For instance, if you require to send the email notifications as [email protected], the modified line would look as follow:
$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" -u spectrum -m broadcom.com $RCVRS < /tmp/set_alarm.$PID
3. Take a backup, and repeat 2 on $SPECROOT/Notifier/UpdateScript and $SPECROOT/Notifier/ClearScript
4. Restart the AlarmNotifier to apply the changes