7장. Performance Co-inspector를 사용하여 성능 모니터링
PCP(Performance Co-915)는 시스템 수준 성능 측정을 모니터링, 시각화, 저장 및 분석하기 위한 도구, 서비스 및 라이브러리 제품군입니다.
시스템 관리자는 Red Hat Enterprise Linux 9에서 PCP 애플리케이션을 사용하여 시스템의 성능을 모니터링할 수 있습니다.
7.1. pmda-journald로 postfix 모니터링 링크 복사링크가 클립보드에 복사되었습니다!
이 절차에서는 pmda- journald로 postfix 메일 서버의 성능 지표를 모니터링하는 방법에 대해 설명합니다. 초당 받은 이메일 수를 확인하는 데 도움이 됩니다.
사전 요구 사항
- PCP가 설치되어 있습니다. 자세한 내용은 PCP 설치 및 활성화를 참조하십시오.
-
pmlogger서비스가 활성화되어 있습니다. 자세한 내용은 pmlogger 서비스 활성화를 참조하십시오.
절차
다음 패키지를 설치합니다.
pcp-system-tools를 설치합니다.# dnf install pcp-system-toolspmda-cnv 패키지를 설치하여를 모니터링합니다.postfix# dnf install pcp-pmda-postfix postfix로깅 데몬을 설치합니다.
# dnf install rsyslog테스트를 위해 메일 클라이언트를 설치합니다.
# dnf install mutt
postfix및rsyslog서비스를 활성화합니다.# systemctl enable postfix rsyslog # systemctl restart postfix rsyslogpmda-journald가 필요한 로그 파일에 액세스할수 있도록 SELinux 부울을 활성화합니다.# setsebool -P pcp_read_generic_logs=onPMDA를 설치합니다.# 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