Example Monitoring Scripts - Novell OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX Manual

Table of Contents

Advertisement

7 Specify the number of failures (Maximum Local Failures) for the specified amount of time
(Time Interval).
A failure action is initiated when the resource monitor detects that the resource fails more times
than the maximum number of local failures allowed to occur during the specified time interval.
For failures that occur before it exceeds the maximum, Cluster Services automatically attempts
to unload and load the resource. The progress and output of executing a monitor script are
appended to
For example, if you set the failure rate to 3 failures in 10 minutes, the failure action is initiated
if it fails 4 times in a 10 minute period. For the first 3 failures, Cluster Services automatically
attempts to unload and load the resource.
8 Specify whether you want the resource to be set to a comatose state, or to migrate to another
server if the failure action initiates.
If the failure action initiates and you chose the option to migrate the resource to another server,
the resource migrates to the next server in its Assigned Nodes list, which you previously
ordered according to your preferences. The resource remains on the server it has migrated to
unless you migrate it to another server or the failure action initiates again, in which case it
again migrates to the next server in its Assigned Nodes list.
With resource monitoring, the Start, Failover, and Failback Modes have no effect on where the
resource migrates. This means that a resource that has been migrated by the resource
monitoring failure action does not migrate back (fail back) to the node it migrated from unless
you manually migrate it back.
9 Click the Scripts tab, then click the Monitor Script link.
10 Edit or add the necessary commands to the script to monitor the resource on the server.
You can use the same commands that would be used at the Linux terminal console.
The resource templates included with Novell Cluster Services for Linux include resource
monitoring scripts that you can customize.
11 Specify the Monitor Script Timeout value, then click Apply to save the script.
The timeout value determines how much time the script is given to complete. If the script does
not complete within the specified time, the failure action you chose in
Services marks the process as failed right after the defined timeout expires, but it must wait for
the process to conclude before it can start other resource operations.

9.6.2 Example Monitoring Scripts

The resource templates included with Novell Cluster Services for Linux include resource
monitoring scripts that you can customize.
Example monitor scripts are available in the following sections:
Section 10.9, "Configuring a Monitor Script for the Shared NSS Pool," on page 150
Section 11.5.3, "Sample Monitor Script for a Linux POSIX Volume Cluster Resource," on
page 176
124 OES 2 SP2: Novell Cluster Services 1.8.7 for Linux Administration Guide
/var/run/ncs/resource_name.monitor.out
file.
Step 8
initiates. Cluster

Advertisement

Table of Contents
loading

Table of Contents