HP Serviceguard Developer's Toolbox Version B.12.00.00 For HP-UX and Linux

3 High Availability (HA) Toolkits
HA Toolkits are a set of scripts that integrate popular applications with HP Serviceguard. Toolkits
are available for both HP-UX and Linux platforms.
ECMT is a bundle of Toolkits for the following popular applications on HP-UX:
Database Toolkits (Oracle's single instance database application including Oracle 9i, Oracle
10g R1, Oracle 10g R2 with ASM, Oracle 11gR1 and 11gR2, Postgre SQL, and MySQL)
Internet Toolkits (including HP Apache, HP Tomcat).
HA Toolkits on Linux (RHEL and SLES) include:
File system Toolkits (NFS and Samba)
Database Toolkits (Oracle's single instance database application including Oracle 10g R1,
Oracle 10g R2 with ASM, Oracle 11g R1 and 11g R2, Postgre SQL, and MySQL)
Internet Toolkits (Apache, Tomcat, and Sendmail)
The Toolbox framework provides a set of scripts that is installed on top of HP Serviceguard's
package manager. In this framework, the application interaction is separated from the control
script of HP Serviceguard. This allows the same Toolkit to be used across OS platforms as well as
HP Serviceguard versions. This framework reduces the work required "up front", and reduces the
overall maintenance and testing required for supporting the Toolkit.
A Toolkit, created from the template determines when the application is to failover to a standby
node in the cluster. It interprets the exit code from the application, logs meaningful messages and
enables Serviceguard to take appropriate action (failover/restart) based on the package
configuration.
Modular Toolkit framework
The Toolkit framework described in this section is intended to simplify the integration of applications
with HP Serviceguard. The framework is designed to have the following features:
Starting and stopping an application
Monitoring the health of an application
Easy deployment and maintenance of an application
Reusing code components
The Toolkit framework consists of the following modules:
Toolkit module script (tkit_module.sh)
This is the main Toolkit script that is called by HP Serviceguard's master control script. This
script has fixed entry points independent of the application being integrated and as such
provides an abstraction of the monitored applications to HP Serviceguard.
The tkit_module.sh script validates and loads the application configuration parameters,
and performs start and stop of application services. It also contains monitoring functions for
the application monitored. The commonly used monitoring criteria include monitoring the
process through the ps command and monitoring the listening port by using the netstat
command.
You can enhance the Toolbox monitor function by adding functionality. For example, you
might add the functionality to query a database application or you might add the functionality
to read or write to a file system application.
8 High Availability (HA) Toolkits