124 OES 2 SP2: Novell Cluster Services 1.8.7 for Linux Administration Guidenovdocx (en) 7 January 20107 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 timesthan 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 attemptsto unload and load the resource. The progress and output of executing a monitor script areappended to /var/run/ncs/resource_name.monitor.out file.For example, if you set the failure rate to 3 failures in 10 minutes, the failure action is initiatedif it fails 4 times in a 10 minute period. For the first 3 failures, Cluster Services automaticallyattempts to unload and load the resource.8 Specify whether you want the resource to be set to a comatose state, or to migrate to anotherserver 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 previouslyordered according to your preferences. The resource remains on the server it has migrated tounless you migrate it to another server or the failure action initiates again, in which case itagain migrates to the next server in its Assigned Nodes list.With resource monitoring, the Start, Failover, and Failback Modes have no effect on where theresource migrates. This means that a resource that has been migrated by the resourcemonitoring failure action does not migrate back (fail back) to the node it migrated from unlessyou 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 resourcemonitoring 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 doesnot complete within the specified time, the failure action you chose in Step 8 initiates. ClusterServices marks the process as failed right after the defined timeout expires, but it must wait forthe process to conclude before it can start other resource operations.9.6.2 Example Monitoring ScriptsThe resource templates included with Novell Cluster Services for Linux include resourcemonitoring 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,” onpage 176