Chapter 2. Writing the Action Scripts and Adding Monitoring Agents

Table of Contents
2.1. Set of Action Scripts
2.2. Understanding the Execution of Action Scripts
2.2.1. Multiple Instances of Script Executed at the Same Time
2.2.2. Differences between the exclusive and monitor Scripts
2.2.3. Successful Execution of Action Scripts
2.2.4. Failure of Action Scripts
2.2.5. Implementing Timeouts and Retrying a Command
2.2.6. Sending UNIX Signals
2.3. Preparation
2.3.1. Is Monitoring Necessary?
2.3.2. Types of Monitoring
2.3.3. What are the Symptoms of Monitoring Failure?
2.3.4. How Often Should Monitoring Occur?
2.3.5. Examples of Testing for Monitoring Failure
2.4. Script Format
2.4.1. Header Information
2.4.2. Set Local Variables
2.4.3. Read Resource Information
2.4.4. Exit Status
2.4.5. Basic Action
2.4.6. Set Global Variables
2.4.7. Verify Arguments
2.4.8. Read Input File
2.4.9. Complete the Action
2.5. Steps in Writing a Script
2.6. Examples of Action Scripts
2.6.1. start Script
2.6.2. stop Script
2.6.3. monitor Script
2.6.4. exclusive Script
2.6.5. restart Script
2.7. Monitoring Agents

This chapter provides information about writing the action scripts required to make an application highly available and how to add monitoring agents. It discusses the following topics: