29.4. 클러스터 경고 수신자 구성
하나 이상의 수신자를 사용하여 경고를 구성합니다. 클러스터는 각 수신자에 대해 에이전트를 별도로 호출합니다. 수신자는 경고 에이전트가 인식할 수 있는 모든 것, 즉 IP 주소, 이메일 주소, 파일 이름 또는 특정 에이전트가 지원하는 모든 것일 수 있습니다.
구성된 클러스터 경고에 수신자 추가
다음 명령은 지정된 경고에 새 수신자를 추가합니다.
# pcs alert recipient add alert-id value=recipient-value [id=recipient-id] [description=description] [options [option=value]...] [meta [meta-option=value]...]
다음 예제 명령은 수신자 ID가 my-recipient-id 인 my-alert-recipient 를 경고에 추가합니다. 이렇게 하면 각 이벤트에 대해 my-alert 용으로 구성된 경고 스크립트를 호출하여 수신자 some-address 를 환경 변수로 전달하도록 클러스터가 구성됩니다.
# pcs alert recipient add my-alert value=my-alert-recipient id=my-recipient-id options value=some-address
기존 경고 수신자 업데이트
다음 명령은 기존 경고 수신자를 업데이트합니다.
# pcs alert recipient update recipient-id [value=recipient-value] [description=description] [options [option=value]...] [meta [meta-option=value]...]
경고 수신자 제거
다음 명령은 지정된 경고 수신자를 제거합니다.
# pcs alert recipient remove recipient-id
또는 pcs alert recipient remove 명령과 동일한 pcs alert recipient delete 명령을 실행할 수 있습니다. pcs alert recipient remove 및 pcs alert recipient delete 명령을 사용하면 둘 이상의 경고 수신자를 제거할 수 있습니다.