This agent manages Linux services. Linux service is a process managed by the system service manager (chkconfig) such as cron or iptables.
Several settings are the values defined by a user. But once registered in the MCCS agent, the two values is changed.
Service start type is changed manually.(RunLevel 3, 4, 5 OFF) It intends to manage starting and stopping in MCCS.
Even if you delete the resource, RunLevel is not reverted to the value previous to registration.
Table of Contents
A service agent monitors the service status.
If the service is operating, the monitoring results returned is 0. If the service is stopped, 3 is returned.
If the service script's return value is different from the default setting, you cannot trust the monitoring results.
Adding
There are two way to add a resource which one is select this from a group name and another is select this from a resource type.
Adding in Group
- Select a group → right click → 'Add Resource'.
[Figure] Adding Resource in a group - Select 'Service' from Resource Type lists and click 'Next' button. When add a resource from the service resource type name, this step will be skipped.
[Figure] Select Resource Wizard View - Next steps are same as adding in resource type.
Adding in Resource Type
- ResourceType → Right Click → Click Add Resource
[Figure] Adding Service Resource in a resource type - This is the initial screen to add the service resource.
[Figure] Service Resource Added - Enter service name and it will automatically search and suggest proper service name.
Select the service to be managed.
[Figure] Search service resource and suggest name view - Click "Finish" and service resource is added.
[Figure] Adding service resource is completed
Deleting
Select resource type → right click → delete resource.
- Select delete resource.
[Figure] Deleting resource view
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.
Service agent: Manages the Linux services. In general, service is a process operated by daemon.
Status | Agent command | Description | Note |
---|---|---|---|
Online Service is operating properly. | Offline | Terminate the service. | |
Monitoring | The status of service is assessed. | ||
Offline Service is terminated. | Online | Service is started. | |
Monitoring | The status of service is assessed. | ||
Trouble Service is not operating properly. | Online | Service is started. | |
Offline | Terminate the service. |
Attribute
[Figure] Window Service Attribute
Attribute | Description | Type | Default | Edit | Note |
ServiceName | It is a name of the window service to be monitored. | STRING | false |
Attribute value of ArgList arguments are the values that are added resources and the value can be changed or viewed through 'Specified Attribute’ list on the detailed information panel.