21장. 이벤트 알림

21.1. 관리 포털에서 이벤트 알림 구성

Red Hat Virtualization Manager는 Red Hat Virtualization Manager가 관리하는 환경에서 특정 이벤트가 발생할 때 지정된 사용자에게 이메일을 통해 알릴 수 있습니다. 이 기능을 사용하려면 메시지를 전달할 이메일 전송 에이전트를 설정해야 합니다. 관리 포털을 통해 이메일 알림만 구성할 수 있습니다. Manager 시스템에서 SNMP 트랩을 구성해야 합니다.

이벤트 알림 구성

  1. Manager에서 자동 메시지를 수락하고 배포 목록에 전달할 수 있는 이메일 서버에 액세스할 수 있는지 확인합니다.
  2. AdministrationUsers (사용자)를 클릭하고 사용자를 선택합니다.
  3. 사용자의 사용자 이름을 클릭하여 세부 정보 페이지로 이동합니다.
  4. 이벤트 알림 탭에서 이벤트 관리를 클릭합니다.
  5. 모두 확장 버튼 또는 주제별 확장 버튼을 사용하여 이벤트를 볼 수 있습니다.
  6. 적절한 확인란을 선택합니다.
  7. mail Recipient 필드에 이메일 주소를 입력합니다.

    참고

    이메일 주소는 문자 메시지 이메일 주소(예: 1234567890@carrierdomainname.com) 또는 이메일 주소 및 텍스트 메시지 이메일 주소가 포함된 이메일 그룹 주소일 수 있습니다.

  8. OK를 클릭합니다.
  9. Manager 시스템에서 ovirt-engine-notifier.conf90-email-notify.conf 라는 새 파일에 복사합니다.

    # cp /usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-notifier.conf /etc/ovirt-engine/notifier/notifier.conf.d/90-email-notify.conf
  10. 90-email-notify.conf 를 편집하여 EMAIL 알림 섹션을 제외한 모든 항목을 삭제합니다.
  11. 아래 예제와 같이 올바른 이메일 변수를 입력합니다. 이 파일은 원래 ovirt-engine-notifier.conf 파일의 값을 덮어씁니다.

    #---------------------#
    # EMAIL Notifications #
    #---------------------#
    
    # The SMTP mail server address. Required.
    MAIL_SERVER=myemailserver.example.com
    
    # The SMTP port (usually 25 for plain SMTP, 465 for SMTP with SSL, 587 for SMTP with TLS)
    MAIL_PORT=25
    
    # Required if SSL or TLS enabled to authenticate the user. Used also to specify 'from' user address if mail server
    # supports, when MAIL_FROM is not set. Address is in RFC822 format
    MAIL_USER=
    
    # Required to authenticate the user if mail server requires authentication or if SSL or TLS is enabled
    SENSITIVE_KEYS="${SENSITIVE_KEYS},MAIL_PASSWORD"
    MAIL_PASSWORD=
    
    # Indicates type of encryption (none, ssl or tls) should be used to communicate with mail server.
    MAIL_SMTP_ENCRYPTION=none
    
    # If set to true, sends a message in HTML format.
    HTML_MESSAGE_FORMAT=false
    
    # Specifies 'from' address on sent mail in RFC822 format, if supported by mail server.
    MAIL_FROM=rhevm2017@example.com
    
    # Specifies 'reply-to' address on sent mail in RFC822 format.
    MAIL_REPLY_TO=
    
    # Interval to send smtp messages per # of IDLE_INTERVAL
    MAIL_SEND_INTERVAL=1
    
    # Amount of times to attempt sending an email before failing.
    MAIL_RETRIES=4
    참고

    자세한 내용은 /etc/ovirt-engine/notifier/notifier.conf.d/README 를 참조하십시오.

  12. ovirt-engine-notifier 서비스를 활성화하고 다시 시작하여 변경 사항을 활성화합니다.

    # systemctl daemon-reload
    # systemctl enable ovirt-engine-notifier.service
    # systemctl restart ovirt-engine-notifier.service

지정된 사용자는 이제 Red Hat Virtualization 환경의 이벤트를 기반으로 이메일을 수신합니다. 선택한 이벤트는 해당 사용자의 이벤트 Notifier 탭에 표시됩니다.