Sun Management Center 3.6.1 User's Guide

ProcedureTo Define an Alarm Action Script

The following procedure describes how to customize an alarm action to notify a user when an alarm condition occurs.

  1. Create your custom alarm action script, using the following optional arguments:

    %statusfmt

    The alarm severity, such as Warning, Critical, and so on.

    %statusstringfmt

    The complete alarm string, including severity. For example: Critical: Machine A Kernel Reader Number of User Sessions > 10.

  2. At the command-line level, become superuser.


    # su -
    
  3. Install the script in the home Sun Management Center directory.

    The default is the /var/opt/SUNWsymon/bin/ directory. For example:


    # cp custom-alarm-script /var/opt/SUNWsymon/bin/
    
  4. Click the Module Browser tab in the Details window.

  5. Set the alarm threshold.

    For more information, see Example: To Define and Respond to an Alarm.

  6. Open the Attribute Editor for the property to which you want this script to apply.

  7. Click the Actions tab.

    The action rows are displayed.

  8. Type custom-alarm-script %statusstringfmt in the Critical Action field of the Actions panel.

  9. Ensure that the Automatic check box on the Critical Action line is selected.

    By default, your script will execute automatically.

  10. To apply this action script and close the Attribute Editor window, click the OK button.