Versions Compared

Key

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

List of Contents

...

이 장은 마크베이스 collector 를 마크베이스 서버를 통해서 관리하는 방법을 기술한다.

Fixed Table


마크베이스 서버에 있는 Fixed table 을 조회해, collector 상태를 확인할 수 있다.

m$sys_collector_sources

This is a table to manage source files that remote collectors have. When SELECT command is executed, it brings files with proper extension (.tpl, .rgs, or .py) from all the collector managers located under the $MACHBASE_HOME/collector.

마크베이스 서버에 등록된 collector manager가 관리하는 설정 파일들의 정보를 유지하는 테이블이다. 테이블의 컬럼 정보는 아래와 같다.

NameDescription
MANAGER_ID

...

Collector manager 의 식별자
MANAGER_NAME

...

Collector manager 의 이름
SOURCE_TYPE

...

The table will be consisted of the items listed in table above. All the managers registered to the main server have template, regular expression, and Python script.

Procedure of insert_collector_source

...

파일 종류 (Template, Regular Expression, and Python script)
SOURCE_PATH

...

파일의 절대 경로
CONTEXT파일 내용



목차


Table of Contents
maxLevel3
indent30px
exclude목차
classtoc



Procedure


마크베이스 서버에서 수행하는 프로시저 (Procedure) 로 collector 제어가 가능하다.

INSERT_COLLECTOR_SOURCE

Insert_collector_source procedure로 원격 서버에 실행중인 콜렉터에 설정 파일들을 전송할 수 있다.

Code Block
EXECUTE INSERT_COLLECTOR_SOURCE ("manager_name", "path", "context");

...

Manager_name: name of a manager registered to the server. Path: a path where files will be stored. Default path is $MACHBASE_HOME/collector. Context: contents of a file.

If the file already exists, the file will be backup as .bak.

Procedure of rename_collectormanager

...

각 파라메터의 의미는 다음과 같다.

  • manager_name : 파일을 전송할 Collector manager의 이름
  • path :  전송할 파일의 경로명
  • context : 파일의 내용

만약 원격 서버에 파일이 이미 존재한다면 원래 파일은 파일명.bak 로 변경된다.

RENAME_COLLECTORMANAGER

이미 등록된 collector manager의 이름을 변경하는 Procedure 이다.

Code Block
EXECUTE RENAME_COLLECTORMANAGER ("old_name", "new_name");

...

Old_name: name of the existing collector manager. New_name: name of the collector manager that will be changed.

...