SAR/syssstat 문제

SAR/syssstat 문제

SAR이 10분 간격으로 실행되어야 하는 일일 로그를 채우지 못하는 문제가 있습니다. 여러 서버에 동일한 구성이 있고 sar가 제대로 실행됩니다. 다음은 설정 예입니다.

-CentOS 6 -sysstat 9.0.4

# sysstat-9.0.4 configuration file.
# How long to keep log files (in days).
# If value is greater than 28, then log files are kept in
# multiple directories, one for each month.
HISTORY=28
# Compress (using gzip or bzip2) sa and sar files older than (in days):
COMPRESSAFTER=31
# Parameters for the system activity data collector (see sadc manual page)
# which are used for the generation of log files.
SADC_OPTIONS="-S DISK"
# Compression program to use.
ZIP="bzip2"


# cat /etc/crond./sysstat
# Run system activity accounting tool every 10 minutes
*/5 * * * * root /usr/lib64/sa/sa1 1 1
# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
# Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A

이는 아래와 같이 작업 서버의 파일 출력입니다.

-rw-r--r-- 1 root root 784968 Aug  1 23:55 sa01
-rw-r--r-- 1 root root 703111 Aug  2 23:53 sar02
-rw-r--r-- 1 root root 785016 Aug  2 23:55 sa02
-rw-r--r-- 1 root root 685031 Aug  3 23:53 sar03
-rw-r--r-- 1 root root 761928 Aug  3 23:55 sa03
-rw-r--r-- 1 root root 711740 Aug  4 22:20 sa04

다음은 문제의 서버에서 나온 출력입니다(이러한 파일도 크기가 작고 정보가 없습니다).

-rw-r--r-- 1 root root 504 Dec 21  2020 sa21
-rw-r--r-- 1 root root 504 Oct 20  2021 sa20
-rw-r--r-- 1 root root 504 Jul 14 21:11 sa14
-rw-r--r-- 1 root root 504 Jul 26 20:53 sa26
-rw-r--r-- 1 root root 504 Aug  4 22:04 sa04

또한 sysstat를 중지/시작하고 /usr/local/netsnmp/netsnmp_base/sbin/snmpd의 pid를 삭제해 보았습니다. 아무것도 작동하지 않는 것 같습니다. 어떤 도움이라도 대단히 감사하겠습니다!

답변1

sysstat를 다시 설치하면 문제가 해결되었습니다.

관련 정보