Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
정의
리눅스 서비스를 관리하는 에이전트입니다.
리눅스 서비스는 cron이나 iptables 같이 시스템 서비스 관리자(chkconfig)에 의해 관리되는 프로세스입니다.
리눅스 서비스의 몇몇 설정 값들은 대부분 유저가 정의한 값 그대로 사용하지만 MCCS 에이전트에 등록되면 2가지 값이 변경됩니다. 서비스의 시작 유형이 수동으로 변경되며 복구 방식에서 실패 이후 동작하지 않도록 변경됩니다. 이것은 MCCS에서 시작/중지 및 재시작을 관리할 수 있도록 하기 위함입니다.
Warning |
---|
서비스 에이전트는 서비스 상태를 모니터링 합니다. 서비스가 동작 중이라면 모니터링 결과로 0이 반환되고, 서비스가 정지되었다면 3이 반환됩니다. 만약 서비스 스크립트의 리턴 값이 기본값과 다르게 설정되어 있을 경우 모니터링 결과를 신뢰할 수 없습니다. |
추가
그룹에서 추가 할 경우
- 그룹 - 마우스 우 클릭 - 리소스 추가를 선택합니다.
[그림] 리소스 위자드 리소스추가 화면 - 리소스 서비스를 선택하고 Next 버튼을 클릭합니다.
[그림] 리소스 위자드 선택화면 - 나머지 과정은 아래의 리소스 타입에서 추가 할 경우와 같습니다.
리소스 타입에서 추가 할 경우
- 리소스타입 - 마우스 우 클릭 - 리소스 추가를 선택합니다.
[그림] 리소스 타입 리소스추가 화면 - 서비스 리소스 추가 최초 화면입니다.
[그림] 서비스 리소스 추가 화면 - 서비스 이름을 입력하면 해당 문자로 시작하는 서비스를 검색해 주고 리소스 이름도 추천해 줍니다.
[그림] 서비스 리소스 검색 및 이름 추천 화면 - 완료버튼을 누르면 서비스 리소스가 등록됩니다.
[그림] 서비스 리소스 추가 완료 화면
삭제
리소스타입 - 마우스 우 클릭 - 리소스 삭제를 선택합니다.
- 삭제 메뉴를 선택합니다.
[그림] 리소스 삭제 화면
상태
온라인
서비스가 정상 작동 중입니다.
오프라인
서비스가 중지된 상태입니다.
장애
서비스가 정상적으로 작동하지 않는 상태입니다.
속성
그림 서비스 속성 화면
ArgList 인수 | 설명 | 데이터타입 | 필수여부 |
ServiceName | 모니터링하는 서비스 이름입니다. 서비스가 동작 중이라면 모니터링 결과로 0이 반환되고, 서비스가 정지되었다면 3이 반환됩니다. 만약 서비스 스크립트의 리턴 값이 기본값과 다르게 설정되어 있을 경우 모니터링 결과를 신뢰할 수 없습니다. | String | 필수 |
ArgList 인수들에 대한 속성값은 해당 리소스를 등록할 때에 입력된 값이며, '리소스 고유 속성'에서 값을 변경하거나 확인할 수 있습니다.
서비스 속성에 대한 수정 가능한 값 및 설명은 "챕터 9. 속성 - 리소스 타입 속성값" 편을 참조해 주십시오.
서비스 에이전트
리눅스 서비스들을 관리합니다.
기능
서비스는 일반적으로 데몬으로 구동하는 프로세스입니다.
Online
서비스를 시작합니다.
Offline
서비스를 중지합니다.
Monitor
...
Adding
Add the service resource to a group.
Warning |
---|
A service agent monitors the service status. |
- Select a group → right click → 'Add Resource'.
- 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.
- 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 the 'Finish' button to add the basic application resource.
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.
Warning |
---|
The service registered in MCCS will be automatically switched to "Manual Start". |
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
Display the unique attribute of service resource.
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.