Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column

The application resource is the resource where MCCS can start or terminate the program and monitor the status.
It is similar to the process resource. But, it can achieve more complex process and combination by using scripts beside general process execution.   In addition, the application resource can set the execution path for starting, terminating or monitoring.
We execute the programs by using the batch scripts because we can handle everything even if the name of start program is different from the name of running process as in the case of service applications.
Sometimes, in the list of running processes, we need to monitor (response test) whether the process is providing proper service as well as monitoring the existence of process (existence test). To process such tasks flexibly, we can use the batch scripts.
In the application resource, you can enter the scripts. Just like the process resource, the applications can basically run on the root account, but by using User attributes, you can run it on a specific user account.

Column
width350px
Panel

Table of Contents

Table of Contents
maxLevel4

Adding

복합 응용 리소스를 그룹에 추가합니다Add the complex application resource to a group.

Adding in Group

  1. Select a group → right click → 'Add Resource'.

  2. Select 'Application' from Resource Type lists and click 'Next' button.
  3. 리소스 이름, 시작 프로그램, 종료 프로그램, 감시 프로그램 혹은 감시대상 프로세스 목록을 입력합니다.
    시작 프로그램, 종료 프로그램, 감시 프로그램은Image Removed'파일' 버튼을 눌러 각 스크립트 파일을 선택하거나.
    Image Removed'작성' 버튼을 눌러 스크립트 파일을 생성 할 수 있습니다.

    Info
    1. 감시 프로그램과 감시대상 프로세스 목록이 모두 입력이 될 경우 감시 프로그램의 성공여부와 감시대상 프로세스 목록의 여부까지 모두 확인합니다.
    2. 기본응용 프로그램을 실행 할 사용자의 기본값은 MCCS 프로세스를 실행하는 사용자입니다.
      만약 기본값이 아닌 다른 사용자로 프로세스를 실행해야 한다면 다음과 같이 실행계정을 지정해 주시기 바랍니다.

    Image Removed
    [그림] 복합응용 리소스 추가 화면 

     


  4. 완료를 클릭하면 다음과 같이 복합 응용 리소스가 생성됩니다.
    관리 웹 콘솔 상에서 바로 확인이 가능합니다.
    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 Image Added'File' button to select each script file
    or, click the Image Added'Edit' button to create a script file.

    Info
    1. 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.
    2. 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.

    Image Added
    [Figure] Add Complex Application Resource

     

  5. Click '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.

...

StatusAgent commandDescriptionNote

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.
When the scripts are used for monitoring, the final value of 0 means success and other value means failures.
When you use the list of processes registered in the MonitorProcesses attributes for monitoring, then if all the processes registered in the list are running, it is success. If not, it is failures.
When both the process list and script are registered, meeting both the conditions means success, and if there is no process list or the script is not successful, it is regarded as a failure.

 

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.
StartProgram attributes allow you to use the batch scripts to run the program in a more flexible way than the process resource.
If the wrong path is entered, MCCS will display an error log and the resource cannot be used.

 
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.

 
OfflineRuns the script registered in the StopProgram attributes. 

 

 

Attribute

복합 응용 리소스의 고유 속성을 표시 합니다Show the unique attribute of application resource.

Attribute

Description

Type

DefaultEditNote

MonitorProcesses

It is the list of processes to monitor.
The process name is the name of execution file. If more than one, use a comma (',') as a separator.
Either of this value and 'MonitorProgram' must be entered.

STRING

 O

 

If there is no MonitorProgram, you must enter the attribute.
You can enter the both attributes. If you do, the both of them should meet the requirements.

MonitorProgram

Enter the path for the program or batch script used to monitor status
Either of the value and the 'list of monitoring processes' should be entered.

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.
Can run the programs such as Clean, Monitor, Start or Stop.
 If there is no input, it uses the MCCS execution account.

STRING

rootO 

...