How to configure Spectrum Alarm Notifier to send email notifications


Article ID: 21373


Updated On:


CA Spectrum


How to configure Spectrum AlarmNotifier to send email notifications.

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




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:

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

8. Verify AlarmNotifier is now a running process


CA includes Simple mail for use in sending emails. This will also need to 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 <HOSTNAME> is the hostname of the smtp mail server, <USERNAME> is the return e-mail address, and <DOMAIN> is the domain name


As an example mail -h -u spectrum -m

Once this command is run you can run regedit and search for smail. In the 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.