Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Planning and Documenting an HA Cluster
Package Configuration Planning
Chapter 4 131
A sample script follows. It assumes there is another script called
monitor.sh, which will be configured as a Serviceguard service to
monitor some application. The monitor.sh script (not included here)
uses a parameter PEV_MONITORING_INTERVAL, defined in the package
configuration file, to periodically poll the application it wants to monitor;
for example:
PEV_MONITORING_INTERVAL 60
At validation time, the sample script makes sure the
PEV_MONITORING_INTERVAL and the monitoring service are configured
properly; at start and stop time it prints out the interval to the log file.