ShaoLin Microsystems  
Leading Enterprise Linux Utility Computing
Corporate Products Services Support Partners
Downloads  Store  Contact Us   

3. Configuring SMA for Apache

The SMA-apache software package included with a modular web client which communicates with the ShaoLin HA Cluster Manager and monitors the status of a running Apache web server. The SMA-apache will report errors if failure to communicate with the web server, or failure on access one or more URL's. Detected errors will be reported to ShaoLin HA Cluster Manager and failover policy will be executed accordingly.

3.1. Configure the AAC rule

To configure the SMA-apache, first you need to create an AAC rule for the Apache server. Goto ShaoLin HA Cluster Configurator, select the Application Availability Control . At the section Create new AAC rule, select Services From System V Init and at the selection box at the right, choose httpd(some distributions use "apache") and click Create New. If you can't see "httpd" listed in the box, make sure the Apache web server is installed accordingly and is setup to start in the desired running level in the system V init services startup settings.

Figure 1. Configure AAC rule for Apache

Entper a description for the AAC rule (e.g. Onlinestore Web Server), and at the Use selected SMA selection box, choose sma-mysql. Then client Save Changes to continue. If no error occured, the AAC rule for Apache has successfully created.

3.2. Configure the Apache SMA

After setting up AAC, the SMA-apache package has not configured properly. Click on the newly created AAC rule (e.g. In this case, Apache for onlinestop). At the AAC configuration page, click to Configure SMA (sma-apache). You will be directed to page with the detail configurations for the SMA-apache.

Figure 2. Configure the Apache Service Monitoring Agent

You can specift one or more URL's to be requested from the Apache web server on eac AAC cycle. Enter a full URL is required (for example http://www.shaolinmicro.com/) . Notice the http:// and the trailing slash /). Click Save Changes to save changes. The Cluster Configurator will attempt to test the configurations you enterred. You have to make sure the hostname you entered is resolvable and the web server has configured to serve the given URL. If there are errors, please recheck the entered information.

After configuring the sma-apache module, you have reinitalize the clusters to take effect. You can do this by go to the AAC main page or the Cluster Control at the Cluster Configurator Main page.