ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

AlarmNotifier adding Spectrum hostname to sender address

book

Article ID: 226748

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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

I think it is because the "return address" is not correct, and our SMTP uses the user "[email protected]" and not "[email protected]@SPECTRUMHOSTNAME"

this message appears in the .OUT file:

                                                            

Using return address "Administrator Account" <[email protected]@SPECTRUMHOSTNAME>

                                                            

SPECTRUMHOSTNAME is the hostname for the SpectroSERVER

Cause

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
https://knowledge.broadcom.com/external/article/21373/how-to-configure-spectrum-alarm-notifier.html

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.

Environment

Release : 10.4.1

Component : Spectrum Applications

Resolution

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

FROM:

$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID

TO:

$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