|
Configuration
of ProcessTest
The default parameters associated with this test are as follows:
-
In the PROCESS text box, enter a
comma separated list of names:pattern pairs which identify the
process(es) associated with the server being considered. processName
is a string that will be used for display purposes only.
processPattern is an expression of the form - *expr* or expr or *expr
or expr* or *expr1*expr2*... or expr1*expr2, etc. A leading '*'
signifies any number of leading characters, while a trailing '*'
signifies any number of trailing characters. For example, for
an iPlanet application server (Nas_server), there are three processes
named kcs, kjs, and kxs associated with the application server. For
this server type, in the PROCESS text box, enter "kcsProcess:*kcs*,
kjsProcess:*kjs*, kxsProcess:*kxs*, where * denotes zero or more
characters. Other
special characters such as slashes (\) can also be used while defining
the process pattern. For
example, if a servers root directory is /home/egurkha/apache
and the server executable named httpd exists in the bin directory,
then, the process pattern is */home/egurkha/apache/bin/httpd*.
To
determine the process pattern to use for your application, on
Windows environments, look for the process name(s) in the Task
Manager -> Processes selection. To determine the process pattern
to use on Unix environments, use the ps command (e.g., the command
"ps -e -o pid,args" can be used to determine the processes
running on the target system; from this, choose the processes of
interest to you).
Note:
In Unix environments, the PROCESS parameter is case-sensitive.
- Increased uptime and lower mean time to repair are critical to ensuring that IT infrastructures deliver a high quality of service to users. Towards this end, the eG suite embeds an optional auto-correction capability that enables eG agents to automatically correct problems in the environment, as soon as they occur. With this capability, as and when an abnormal situation is detected, an eG agent can initiate corrective actions automatically to resolve the problem. Automatic correction without the need for manual intervention by IT operations staff reduces service downtime and improves operational efficiency.
By default, the auto-correction capability is available in the eG suite for the Num_procs_running measure of ProcessTest, and the Availability measure of WinServiceTest. The eG suite includes a default auto-correction script for ProcessTest. When a process that has been configured for monitoring stops, this script automatically executes and starts the process. To enable the auto-correction capability for the ProcessTest, first, select the TRUE option against the CORRECT parameter in this page (by default, FALSE will be selected here).
- Upon selecting the TRUE option, three new parameters, namely, ALARMTYPE, USERPARAMS, and CORRECTIVESCRIPT will appear. The ALARMTYPE parameter indicates when the auto-corrective script should execute. You can set the corrective script to execute when a specific type of alarm is generated, by selecting an option from the ALARMTYPE list box. For example, if the Critical option is chosen from the ALARMTYPE list box, then the corrective script will run only when a critical alarm for the ProcessTest is generated. Similarly, if the Critical/Major option is chosen, then the corrective script will execute only when the eG system generates critical or major alarms for the ProcessTest. In order to ensure that the corrective script executes regardless of the alarm type, select the Critical/Major/Minor option.
- The user-defined parameters that are to be passed to the corrective script are specified in the USERPARAMS text box. One of the following formats can be applied to the USERPARAMS specification:
- exec@processName:command: In this specification, processName is the display name of the process pattern specified against the PROCESS parameter, and command is the command to be executed by the default script when the process(es) represented by the processName stops. For example, assume that the PROCESS parameter of ProcessTest has been configured in the following manner: Apache:*/opt/egurkha/manager/apache/bin/httpd*,Tomcat:*java*tomcat*, where Apache and Tomcat are the processNames or display names of the configured patterns. If auto-correction is enabled for these processes, then the USERPARAMS specification can be as follows:
"exec@Apache:/opt/egurkha/manager/apache/bin/apachectl start,Tomcat: /opt/tomcat/bin/catalina.sh start"
This indicates that if the processes configured under the processName "Apache" stop (i.e. */opt/egurkha/manager/apache/bin/httpd*), then the script will automatically execute the command "/opt/egurkha/manager/apache/bin/apachectl start" to start the processes. Similarly, if the "Tomcat" processes (i.e. *java*tomcat*) stop, the script will execute the command "/opt/tomcat/bin/catalina.sh start" to start the processes.
- command: In this specification, command signifies the command to be executed when any of the processes configured for monitoring, stop. Such a format best suits situations where only a single process has been configured for monitoring, or, a single command is capable of starting all the configured processes. For example, assume that the PROCESS parameter has been configured to monitor IISWebSrv:*inetinfo*. Since only one process requires monitoring, the first format need not be used for configuring the USERPARAMS. Therefore, simplify specify the command, "net start World Wide Web Publishing Service".
Note:
- The USERPARAMS specification should be placed within double quotes if this value includes one or more blank spaces (eg.,"Apache:/opt/egurkha/bin/apachectl start").
- Note that if a processName configured in the PROCESS parameter does not have a corresponding entry in USERPARAMS (as discussed in format 1), then the auto-correction capability will not be enabled for these processes.
- Once the USERPARAMS are defined, specify none in the CORRECTIVESCRIPT text box to use the default auto-correction script.
Note:
Administrators can build new auto-correction capabilities to address probable issues with other tests, by writing their own corrective scripts. To know how to create custom auto-correction scripts, refer to the eG User Manual.
-
If multiple components of the same component type are awaiting configuration, then an APPLY TO OTHER COMPONENTS check box will appear in this page. Clicking on this check box will allow you to apply the configuration to all/selected components of that type.
-
Once the necessary
values have been provided, clicking on the UPDATE button will
register the changes made.
When changing the
configuration for specific servers, a * beside the text box
corresponding to the parameter signifies that these values have to be
manually configured by the user. The parameter values that require to
be configured will typically be prefixed with a $ or contain a
series of *. A value of "none"
in the parameter value indicates that the corresponding parameter
value can be changed if required.
Note:
An
optional "-wide <true/false>" parameter can be provided
to ProcessTest (by editing the <EG_INSTALL_DIR>/manager/config/
eg_specs.ini file). This parameter is valid on Solaris systems only. If
the value of the "wide" parameter is true, the eG agent will
use "/usr/ucb/ps" instead of "/usr/bin/ps" to search
for processes executing on the host. On Solaris, /usr/ucb/ps provides a
long output (> 80 characters), whereas /usr/bin/ps only outputs the
first 80 characters of the process path and its arguments.
In
Unix platforms alone, the ProcessTest will have an additional USER
parameter. By default, this parameter has a value "none",
which means the test does not look for a process(es) for a specific
user. If the value of the "user" parameter is not
"none", then the ProcessTest searches for all processes of a
specific user.
|