/
7.4 Applications

7.4 Applications

 

An application is similar to Process resource, but it is more flexible and can be managed by batch script which contains multiple processes.
The reason why program is executed using batch script is because it will make it possible managed by MCCS even when the name of starting program and running program is not the same. Besides this, it not only monitors the existence of process but also monitors the response of process with this.  
For these reasons, batch script will provide more detail monitoring and flexibility and an application agent manages this.
Same as process, application is basically executed with the system account, but is can be executed with particular user by using attributes of User, Password, Domain.

Table of Contents

Adding

Add the application resource to a group.

  1. When add a resource from a group name, select a group → right click → 'Add Resource'. Or select Edit(E) from the main menu bar → select 'Add Resource'. Or select 'Add Resource' icon from the tool bar.
  2. Select 'Application' from Resource Type lists and click 'Next' button. When add a resource from the Application resource type name, this step will be skipped.
  3. Enter the resource name and the pre-scripted file name for start, stop and monitoring with full path or click the  to browse the file, or click the  to create user defined script file.
  4. Enter the process name where listed in task manager of Windows O.S for monitoring target into MonitorProcesses box.

    1. You can enter the value into MonitorProgram or MonitorProcess to monitor whether the application runs properly. You should enter the value in at least one of them.
    2. When all the value of MonitorProgram and MonitorProcesses are entered the process lists for monitoring target are entered, MCCS checks whether the monitoring program is properly work and whether processes which is monitoring target are exist.
    3. The default Execution Account of the process is Account running MCCS. If the resource runs specified account, you can select Specify Account and enter account informations such as domain, user account and password.


    [Figure] Adding application resource

  5. Click 'Finish' to add the application resource.

Deleting

Select resource type → right click → delete resource.


State

The following table explains the state of application resource.

StateAgent commandDescriptionNote

Online

All the processes into MonitorProcesses are running properly and MonitorProgram returns '0'.

Offline

It take offline the application. MCCS runs the script registered into StopProgram. 


Monitoring

Runs the scripts registered into MonitorProgram.


Offline

When one of the process into MonitorProcesses is at least offline or 'MonitorProgram' does not return in '0'.

Online

It bring online the application. MCCS runs the script registered into StartProgram.
If the wrong path is entered, MCCS will display an error log and the resource cannot be bring online.


Monitoring

Runs the scripts registered into MonitorProgram.


Fault

When an onlined application has not taken offline through offline command, it is defined as fault.

Online

It bring online the application. MCCS runs the script registered into StartProgram.


OfflineIt take offline the application. MCCS runs the script registered into StopProgram. 


Attribute

Show the specified attribute of application resource.

Attribute

Description

type

DefaultEditNote

Domain

It specifies domain of user account. 
It will be ignored if it is not specified by the user account.

STRING


O

MonitorProcesses

It is the list of the process to be monitored. 
Name of each process is simply the name of the executables. If there is more than one process, they are separated by (','). 
(ex : c:\system\dfssvc.exe, calc)

STRING


O

If you enter the value on both attribute, MCCS determinds the resource is normal state when both of them returns '0'.

 

MonitorProgram

It is program or script based file for monitoring an object.

FILE


O

Password

It is the password defined by the user.  
If user name is not specified, it is ignored.

PASSWORD


O

StartProgram

It is a program to bring online the Application in each node.

FILE


O

StartupDirectory

It is a work directory. it means %MCCS_HOME if it does not have a value.

DIRECTORY

(.)O

StopProgram

It is a program to take offline the Application of each node.

FILE


O

User

It is a user name which has received the permission to use the application. 
It is MCCS service account if there is no value. 

STRING

System AccountO

Specified attribute values are normally entered when add the resource, This value can be edited or viewed through 'Specified Attribute' table in the Resource Attributes tab on the detailed information panel.