Sun Management Center 3.6.1 User's Guide

ProcedureTo Define and Use an Alarm Action Script

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

  1. Create the script using the following 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 Host Details Browser tab.

  5. Set the alarm threshold.

    For more information, see To Define an Alarm Condition.

  6. Click the System Load Statistics icon.

    The properties table for System Load Statistics is displayed in the contents view of the Host Details Browser page.

  7. Select the Value column for Load Average Over Last Five Minutes.

    The Attribute Editor Info page is displayed.

  8. Click the Attribute Editor Actions tab.

    The Actions page appears.

  9. Click the Action button for the Critical Actions field.

    The Alarm Action Modification dialog box appears.

  10. Click the Other button.

  11. Select custom-alarm-script from the Available Scripts menu.

  12. Type the following string in the Arguments field:

    %statusstringfmt

  13. Click OK to apply your changes and close this page.

    The script file name is displayed in the Critical Action field on the Actions page.