7장. Performance Co-inspector를 사용하여 성능 모니터링

PCP(Performance Co-915)는 시스템 수준 성능 측정을 모니터링, 시각화, 저장 및 분석하기 위한 도구, 서비스 및 라이브러리 제품군입니다.

시스템 관리자는 Red Hat Enterprise Linux 9에서 PCP 애플리케이션을 사용하여 시스템의 성능을 모니터링할 수 있습니다.

7.1. pmda-journald로 postfix 모니터링

이 절차에서는 pmda- journald로 postfix 메일 서버의 성능 지표를 모니터링하는 방법에 대해 설명합니다. 초당 받은 이메일 수를 확인하는 데 도움이 됩니다.

사전 요구 사항

절차

  1. 다음 패키지를 설치합니다.

    1. pcp-system-tools 를 설치합니다.

      # dnf install pcp-system-tools
    2. pmda-cnv 패키지를 설치하여 postfix 를 모니터링합니다.

      # dnf install pcp-pmda-postfix postfix
    3. 로깅 데몬을 설치합니다.

      # dnf install rsyslog
    4. 테스트를 위해 메일 클라이언트를 설치합니다.

      # dnf install mutt
  2. postfixrsyslog 서비스를 활성화합니다.

    # systemctl enable postfix rsyslog
    # systemctl restart postfix rsyslog
  3. pmda-journald가 필요한 로그 파일에 액세스할 수 있도록 SELinux 부울을 활성화합니다.

    # setsebool -P pcp_read_generic_logs=on
  4. PMDA 를 설치합니다.

    # cd /var/lib/pcp/pmdas/postfix/
    
    # ./Install
    
    Updating the Performance Metrics Name Space (PMNS) ...
    Terminate PMDA if already installed ...
    Updating the PMCD control file, and notifying PMCD ...
    Waiting for pmcd to terminate ...
    Starting pmcd ...
    Check postfix metrics have appeared ... 7 metrics and 58 values

검증 단계

  • pmda-octets 작업을 확인합니다.

    echo testmail | mutt root
  • 사용 가능한 지표를 확인합니다.

    # pminfo postfix
    
    postfix.received
    postfix.sent
    postfix.queues.incoming
    postfix.queues.maildrop
    postfix.queues.hold
    postfix.queues.deferred
    postfix.queues.active

추가 리소스