28.4. 클러스터 경고 수신자 구성

일반적으로 경고는 수신자에게 전송됩니다. 따라서 각 경보는 하나 이상의 수신자로 추가로 구성될 수 있습니다. 클러스터는 각 수신자에 대해 에이전트를 별도로 호출합니다.

수신자는 경고 에이전트가 인식할 수 있는 모든 항목일 수 있습니다. 즉, IP 주소, 이메일 주소, 파일 이름 또는 특정 에이전트가 지원하는 모든 항목이 될 수 있습니다.

다음 명령은 지정된 경고에 새 수신자를 추가합니다.

pcs alert recipient add alert-id value=recipient-value [id=recipient-id] [description=description] [options [option=value]...] [meta [meta-option=value]...]

다음 명령은 기존 경고 수신자를 업데이트합니다.

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 removepcs alert recipient delete 명령을 사용하면 두 개 이상의 경고 수신자를 제거할 수 있습니다.

다음 예제 명령은 my-recipient-id 의 수신자 ID가 있는 경고 수신자 my-alert-recipient -id를 my-alert 경고에 추가합니다. 그러면 수신자 some-address 를 환경 변수로 전달하여 각 이벤트에 대해 my-alert 에 대해 구성된 경고 스크립트를 호출하도록 클러스터가 구성됩니다.

#  pcs alert recipient add my-alert value=my-alert-recipient id=my-recipient-id options value=some-address