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

The variable TKIT_MONITORING_ELEMENT specifies the actual object being monitored
for the selected monitoring type. For example, if you choose to monitor the PID file of an
application (/var/run/app/app.pid), then the configuration would be as follows:
pid_fileTKIT_MONITORING_TYPE
/var/run/app/app.pidTKIT_MONITORING_ELEMENT
mysqldAPP_SERVER_PROC
If you choose to monitor the process name of an application, then the configuration would
be as follows:
process_monitorTKIT_MONITORING_TYPE
app_proc_name_1TKIT_MONITORING_ELEMENT
app_proc_name_2TKIT_MONITORING_ELEMENT
app_proc_name_3TKIT_MONITORING_ELEMENT
If you choose to monitor the port of an application on which it is listening, then the
configuration would be as follows for port number 8080:
port_monitorTKIT_MONITORING_TYPE
8080TKIT_MONITORING_ELEMENT
NOTE: You can provide your own monitoring function. For example,
Querying the application periodically
Monitoring a log file for a specific keyword
For file systems, reading from or writing to, or creating or deleting a file
If you provide your own monitoring function, you must add it to the tkit_module.sh,
and appropriately set the parameters TKIT_MONITORING_TYPE and
TKIT_MONITORING_ELEMENT in the package configuration file. Please note that the
monitor function must return the failure status (1) to the Toolkit when it detects the failure
of the application, to enable Serviceguard to take appropriate action.
Application start script (TKIT_APP_START)
This variable must be set to the user implemented application start script. The absolute
path of the start script must be specified, for example:
TKIT_APP_START /etc/cmcluster/pkg_dir/start_app.sh
Application stop script (TKIT_APP_STOP)
This variable must be set to the user implemented application stop script. The absolute
path of the stop script must be specified, for example:
TKIT_APP_STOP /etc/cmcluster/pkg_dir/stop_app.sh
Server Process Name (APP_SERVER_PROC)
This variable must be set only if you choose the monitoring criteria as PID file (pid_file).
This variable contains the name of the main application daemon, the process id of which
12 High Availability (HA) Toolkits