Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Adding
Add the complex application resource to a group.
Adding in Group
Select a group → right click → 'Add Resource'.
- Select 'Application' from Resource Type lists and click 'Next' button.
Enter the name of resource and the program for start, termination and monitoring, or the process lists for monitoring target.
In the start, terminate or monitoring program, click the 'File' button to select each script file
or, click the 'Edit' button to create a script file.Info - If all of the monitoring programs and the process lists for monitoring target are entered, check whether the monitoring program is successful or whether there are process lists for monitoring target.
- The default user for running the basic app is the user that runs the MCCS process.
If the process needs to run for another user other than the default user, then you must designate an execution account as follows.
[Figure] Add Complex Application ResourceClick 'Finish' to see that the complex application resource is created as follows.
You can immediately check the result in the management web console.
Deleting
Select resource type → right click → delete resource.
The deleted resource will immediately disappear from the management web console.
Status
The following table explains the status switching of the MCCS resource caused by a user's command and the status.
The command assumes that it is generated by a user.
...
Status | Agent command | Description | Note |
---|---|---|---|
Online All the processes registered in MonitorProcesses are running and MonitorProgram returns '0'. | Offline | Runs the script registered in the StopProgram attributes. | |
Monitoring | Runs the scripts registered in the MonitorProgram attributes. | ||
Offline If any one of the processes registered in MonitorProcesses is terminated or the monitoring program returns a non-zero value, it is deemed as offline. | Online | Runs the script registered in the StartProgram attribute. | |
Monitoring | Refer to the description of monitoring as above. | ||
Trouble When the online resource is switched to offline without using the agent termination command, it is defined as the trouble state. | Online | Refer to the above online command. | |
Offline | Runs the script registered in the StopProgram attributes. |
Attribute
Show the unique attribute of complex application resource.
Attribute | Description | Type | Default | Edit | Note |
MonitorProcesses | It is the list of processes to monitor. | STRING | O |
If there is no MonitorProgram, you must enter the attribute. | |
MonitorProgram | Enter the path for the program or batch script used to monitor status | FILE | O | ||
StartProgram | Enter the path for the batch script or program to run when starting the resource. | FILE | O | ||
StartupDirectory | It is the working directory where the program starts. If there is no input, it means $MCCS_HOME. | DIRECTORY | (.) | O | |
StopProgram | It is the path for the batch script or program to run when terminating the resource. | FILE | O | ||
User | It is a user account having the rights to use the program. | STRING | root | O |
...