Sample configuration for custom processes

This section describes steps to configure custom processes for high availability by using Symantec ApplicationHA.

Let us assume the following:

See Agent attributes.

To configure application monitoring for an init process

  1. In the Symantec High Availability view of the Veritas Operations Manager Management Server console, click Configure Application Monitoring. This launches the Symantec ApplicationHA Configuration Wizard.
  2. Review the information on the Welcome screen and then click Next.

    The wizard lists all the supported applications for the system.

  3. Select Custom Application, and then click Next.

    The Program Selection screen appears.

  4. To specify the httpd application details to monitor, click Add Component.

    The Application Component Parameters dialog box appears.

    Note:

    init processes such as httpd, do not require special monitor scripts. ApplicationHA uses the status option of the init script for monitoring. However you can also use your own program scripts to monitor such processes.

  5. Enter the following values in the respective fields and then click OK:

    Program to start the application

    /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k start

    Program to stop the application

    /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k stop

    Program to monitor the application

    /usr/local/apache2/bin/monitor_httpd

  6. To specify the application components to monitor, click Add Component.

    The Application Component Parameters dialog box appears.

  7. Enter the following values in the respective fields:

    Program to start the application

    /home/user1/myapplication/bin/startMyComponent1

    Program to stop the application

    /home/user1/myapplication/bin/stopMyComponent1

    Program to monitor the application

    /home/user1/myapplication/bin/monitorMyComponent1

    Program to forcibly stop the application

    /home/user1/myapplication/bin/forcestopMyComponent1

    User name to use when administering the application

    username

    The default user name is 'root'

  8. Click OK.

    The specified component appears on the Program Selection screen.

  9. If you want to specify more application components for monitoring, repeat step 4 to step 8.

    If you want to define the relationship between httpd and MyApplication components, click Next. The Define Start Stop Order screen appears. The screen lists the previously selected components.

  10. To bring the httpd program online first and then the MyApplication program, in the Parent Component list, click on startMyComponent1_Program.
  11. In the Component list, click to check httpd_Program and then click Configure.

    The wizard performs the application monitoring configuration tasks. The ApplicationHA Configuration screen displays the status of each task. After all the tasks are complete, click Next.

  12. Click Finish to complete the wizard. This completes the application monitoring configuration.