Red Hat Training

A Red Hat training course is available for RHEL 8

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

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

수신자는 경고 에이전트에서 인식할 수 있는 모든 항목(Uan 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 수신자 제거 및 pcs alert recipient delete 명령을 둘 다 사용하여 두 개 이상의 경고 수신자를 제거할 수 있습니다.

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

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