How to configure Spectrum Alarm Notifier to send email notifications
search cancel

How to configure Spectrum Alarm Notifier to send email notifications


Article ID: 21373


Updated On:


CA Spectrum DX NetOps


How to configure Spectrum AlarmNotifier to send email notifications.

NOTE: These instructions assume you are using the default AlarmNotifier process and scripts.


Release: 20.2, 21.2


To configure AlarmNotifier to send an email when an alarm is received.

1. Edit the $SPECROOT/Notifier/SetScript file 

2. Locate the following line:


3. Modify the entry as follows:


4. Locate the following line


5. Modify the entry as follows:


6. Save the changes made to this file

Modify the ClearScript and UpdateScript files using these same instructions.

NOTE: When using editors to modify these files, be sure to save the files in ascii text format only. Ensure the files are not saved with extensions like .txt, .rtf etc.

NOTE2:  During an upgrade the default AlarmNotifier script files will be overwritten and set back to the defaults.   Custom named script files remain untouched.    If you are using the default scripts it is recommended to take a backup of the Notifier and lib/SDPM/partslist folders before upgrading.

Additional Information:
For more information on Alarm Notifier please reference:

Managing Client Applications

Additional Information

To ensure AlarmNotifier is always running, you can configure processd to automatically start AlarmNotifier at processd startup and to restart AlarmNotifier should processd see the AlarmNotifier process has stopped.

To configure processd to do this:

1. $SPECROOT/lib/SDPM/partslist/ALARMNOTIFIER.idb file

2. Locate the following lines:


3. Out of the box you can see AUTORESTART is already set to yes. Change the AUTOBOOTSTART to yes also. The entries should now appear as:


4. Save the changes made to this file

5. On Windows, start a bash shell by running "bash -login". On Linux or Solaris, su to the root user

6. cd to the $SPECROOT/lib/SDPM directory

7. Enter the following command to restart processd and pick up the changes made to the ALARMNOTIFIER.idb file:

./ restart

NOTE: Starting from / 20.2.3, the restart will now also stop the SpectroSERVER and Archive Manager. As an alternative, use the processd executable to restart the service and this will not stop the SS and ArchMgr. Below is an example:

./processd --restart

Starting in Spectrum, script will now also stop the SpectroSERVER and Archive Manager

8. Verify AlarmNotifier is now a running process


CA includes Simple mail for use in sending emails. This will also need to be configured for AlarmNotifier to successfully send an email. To configure Simple mail please do the following:

1. Open a command prompt in Windows and enter the following command where <SMTP HOSTNAME> is the hostname of the smtp mail server, <USERNAME> is the return e-mail address, and <DOMAIN> is the domain name in the $SPECROOT/NT-Tools/SRE/bin directory:


As an example mail -h -u spectrum -m

./mail.exe -h -u spectrum -m

Once this command is run you can run regedit and search for SMail. In the HKEY_CURRENT_USER/Software/SMail folder, these are the entries from the example. You should see the settings you used.

Default REG_SZ (value not set)
hostname REG_SZ
smtphost REG_SZ
username REG_SZ spectrum


AlarmNotifier utilizes the email utility configured for the Operating System, typically this is sendmail. If emails fail to send please see your system admin to ensure sendmail is set up correctly for your environment.

Please reference the "AlarmNotifier" section of the documentation for more information.

If you would like to have a different subject in the email sent to different recipients:

This is configured in the SetScript for the Notifier process ($SPECROOT/Notifier/SetScript) via this line:

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

There's an if/then statement tied around this, that you could modify to use a different $MAIL -s entry:

if [ "$RCVRS" -a "$RCVRS" != " " ]
      echo " "
      echo "*******************************************************************"
      echo "Sending mail to $RECIPIENTS:" 
      echo ""
      echo "($RCVRS)"
      echo "*******************************************************************"
      echo_info | tee -i /tmp/set_alarm.$PID
      $MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID
      rm -f /tmp/set_alarm.$PID
      echo " "
      echo "*****************************************************"
      echo "NO $RECIPIENTS assigned - no mail sent"
      echo "*****************************************************"

You could add in another if/then statement so that if it met other criteria use a different $MAIL -s entry.