У меня есть пара серверов, работающих под SLES 11.3.Кроме того, оба имеют настроенный sysstat и запускают SAR одинаково, дело в том, что отчеты по одному из них не отображаются полностью и выглядят так:
Server-01:~ # sar
Linux 3.0.76-0.11-default (Server-01) 05/13/2019 _x86_64_
02:20:01 PM CPU %user %nice %system %iowait %steal %idle
02:20:31 PM all 13.13 0.00 2.04 0.01 0.00 84.82
02:30:01 PM all 15.53 0.00 2.01 0.02 0.00 82.45
02:30:31 PM all 16.45 0.00 1.87 0.01 0.00 81.67
02:40:01 PM all 15.49 0.00 2.04 0.02 0.00 82.46
02:40:31 PM all 14.80 0.00 1.70 0.02 0.00 83.49
02:50:02 PM all 9.13 0.00 1.32 0.01 0.00 89.54
02:50:32 PM all 18.66 0.00 1.76 0.00 0.00 79.58
03:00:01 PM all 15.97 0.00 2.14 0.01 0.00 81.87
03:00:31 PM all 17.43 0.00 1.85 0.02 0.00 80.71
03:10:01 PM all 15.06 0.00 2.01 0.02 0.00 82.92
03:10:31 PM all 12.76 0.00 1.53 0.01 0.00 85.69
03:20:01 PM all 13.01 0.00 1.65 0.01 0.00 85.33
03:20:31 PM all 1.09 0.00 0.16 0.00 0.00 98.74
03:30:01 PM all 12.39 0.00 1.81 0.02 0.00 85.77
03:30:31 PM all 19.05 0.00 2.03 0.01 0.00 78.91
Average:
all 13.81 0.00 1.84 0.02 0.00 84.33
С другой стороны, другой сервер показывает информацию SARвесь день, как это:
Server-05:~ # sar
Linux 3.0.76-0.11-default (Server-05) 05/13/2019 _x86_64_
12:00:01 AM CPU %user %nice %system %iowait %steal %idle
12:10:01 AM all 7.22 0.00 2.90 0.17 0.00 89.71
12:20:01 AM all 16.79 0.00 3.73 0.16 0.00 79.32
12:30:01 AM all 9.86 0.00 1.35 0.12 0.00 88.67
12:40:01 AM all 16.67 0.00 1.95 0.12 0.00 81.25
12:50:01 AM all 28.21 0.00 1.24 0.12 0.00 70.42
01:00:01 AM all 14.22 0.00 1.57 0.12 0.00 84.09
01:10:01 AM all 16.71 0.00 4.68 0.20 0.00 78.41
01:20:01 AM all 20.45 0.00 3.75 0.17 0.00 75.64
01:30:01 AM all 30.17 0.00 5.79 0.17 0.00 63.88
01:40:01 AM all 21.62 0.00 3.34 0.12 0.00 74.93
01:50:01 AM all 21.00 0.00 4.97 0.19 0.00 73.83
02:00:01 AM all 8.63 0.00 1.49 0.11 0.00 89.77
02:10:01 AM all 15.88 0.00 4.49 0.18 0.00 79.45
02:20:01 AM all 35.20 0.00 4.14 0.19 0.00 60.48
02:30:01 AM all 32.40 0.00 1.27 0.10 0.00 66.24
02:40:01 AM all 16.00 0.00 0.83 0.09 0.00 83.07
02:50:01 AM all 10.99 0.00 0.23 0.09 0.00 88.69
03:00:01 AM all 1.45 0.00 0.12 0.09 0.00 98.33
03:10:01 AM all 6.85 0.00 2.77 0.15 0.00 90.22
03:20:01 AM all 7.88 0.00 1.68 0.13 0.00 90.31
03:30:01 AM all 20.06 0.00 4.27 0.18 0.00 75.50
03:40:01 AM all 2.97 0.00 0.62 0.10 0.00 96.31
03:50:01 AM all 16.91 0.00 4.38 0.22 0.00 78.48
04:00:01 AM all 1.26 0.00 0.13 0.10 0.00 98.51
04:10:01 AM all 6.81 0.00 2.77 0.14 0.00 90.28
04:20:01 AM all 8.66 0.00 1.79 0.35 0.00 89.20
04:30:01 AM all 3.53 0.00 0.99 0.12 0.00 95.35
04:40:01 AM all 13.65 0.00 1.49 0.12 0.00 84.74
04:50:01 AM all 10.97 0.00 0.36 0.12 0.00 88.54
05:00:01 AM all 3.40 0.00 0.17 0.10 0.00 96.34
05:10:01 AM all 7.43 0.00 2.99 0.20 0.00 89.38
05:20:01 AM all 11.20 0.00 2.21 0.22 0.00 86.37
05:30:01 AM all 23.12 0.00 4.45 0.18 0.00 72.25
05:40:01 AM all 7.67 0.00 1.02 0.09 0.00 91.23
05:50:01 AM all 9.55 0.00 4.28 0.21 0.00 85.96
06:00:01 AM all 0.28 0.00 0.11 0.09 0.00 99.52
06:10:01 AM all 7.19 0.00 2.94 0.18 0.00 89.68
06:20:01 AM all 17.82 0.00 4.07 0.18 0.00 77.92
06:30:02 AM all 7.91 0.00 1.90 0.15 0.00 90.04
06:40:01 AM all 12.65 0.00 1.94 0.11 0.00 85.30
06:50:01 AM all 12.88 0.00 1.52 0.07 0.00 85.53
07:00:01 AM all 8.80 0.00 1.64 0.05 0.00 89.50
07:00:01 AM CPU %user %nice %system %iowait %steal %idle
07:10:01 AM all 16.29 0.00 4.66 0.09 0.00 78.96
07:20:01 AM all 16.25 0.00 3.81 0.09 0.00 79.85
07:30:01 AM all 27.52 0.00 5.57 0.15 0.00 66.76
07:40:01 AM all 24.10 0.00 4.44 0.09 0.00 71.36
07:50:01 AM all 34.43 0.00 7.69 0.13 0.00 57.74
08:00:01 AM all 16.52 0.00 2.98 0.43 0.00 80.06
08:10:01 AM all 14.83 0.00 4.37 0.13 0.00 80.67
08:20:01 AM all 19.70 0.00 3.82 0.13 0.00 76.35
08:30:01 AM all 21.31 0.00 3.22 0.09 0.00 75.37
08:40:01 AM all 13.29 0.00 1.29 0.14 0.00 85.28
08:50:01 AM all 5.67 0.00 0.19 0.05 0.00 94.09
09:00:01 AM all 8.83 0.00 1.95 0.06 0.00 89.16
09:10:02 AM all 14.54 0.00 4.44 0.13 0.00 80.89
09:20:01 AM all 12.26 0.00 2.45 0.11 0.00 85.18
09:30:01 AM all 29.55 0.00 4.72 0.08 0.00 65.66
09:40:01 AM all 13.20 0.00 1.40 0.05 0.00 85.35
09:50:01 AM all 34.03 0.00 5.64 0.12 0.00 60.21
10:00:01 AM all 11.27 0.00 0.90 0.07 0.00 87.77
10:10:01 AM all 6.82 0.00 2.77 0.07 0.00 90.33
10:20:01 AM all 9.17 0.00 1.94 0.20 0.00 88.68
10:30:01 AM all 8.21 0.00 0.82 0.04 0.00 90.93
10:40:01 AM all 8.80 0.00 1.72 0.09 0.00 89.39
10:50:01 AM all 11.41 0.00 2.14 0.08 0.00 86.37
11:00:01 AM all 0.27 0.00 0.11 0.04 0.00 99.58
11:10:01 AM all 7.15 0.00 3.02 0.10 0.00 89.73
11:20:01 AM all 10.55 0.00 2.01 0.10 0.00 87.35
11:30:01 AM all 24.92 0.00 4.73 0.10 0.00 70.25
11:40:01 AM all 20.98 0.00 1.92 0.05 0.00 77.05
11:50:01 AM all 25.63 0.00 4.58 0.09 0.00 69.70
12:00:01 PM all 29.89 0.00 2.09 0.11 0.00 67.91
12:10:01 PM all 25.19 0.00 4.13 0.12 0.00 70.55
12:20:01 PM all 39.57 0.00 5.15 0.11 0.00 55.17
12:30:01 PM all 34.61 0.00 2.96 0.10 0.00 62.34
12:40:01 PM all 22.85 0.00 2.26 0.09 0.00 74.80
12:50:01 PM all 33.75 0.00 2.82 0.09 0.00 63.33
01:00:01 PM all 29.82 0.00 2.81 0.10 0.00 67.27
01:10:01 PM all 44.27 0.00 6.64 0.17 0.00 48.91
01:20:01 PM all 50.36 0.00 5.68 0.28 0.00 43.68
01:30:01 PM all 55.99 0.00 6.66 0.12 0.00 37.23
01:40:01 PM all 39.40 0.00 3.87 0.10 0.00 56.64
01:50:01 PM all 52.28 0.00 7.23 0.12 0.00 40.37
02:00:01 PM all 37.66 0.00 3.15 0.25 0.00 58.94
02:00:01 PM CPU %user %nice %system %iowait %steal %idle
02:10:01 PM all 38.87 0.00 5.81 0.46 0.00 54.86
02:20:01 PM all 41.94 0.00 4.55 0.15 0.00 53.36
02:30:01 PM all 34.29 0.00 2.63 0.09 0.00 62.99
02:40:01 PM all 25.24 0.00 1.57 0.09 0.00 73.10
02:50:01 PM all 4.29 0.00 0.63 0.53 0.00 94.55
03:00:01 PM all 1.65 0.00 0.67 0.06 0.00 97.62
03:10:01 PM all 7.79 0.00 3.20 0.20 0.00 88.81
03:20:01 PM all 8.22 0.00 1.95 0.07 0.00 89.76
03:30:01 PM all 20.86 0.00 4.71 0.18 0.00 74.26
Average: all 18.25 0.00 2.89 0.14 0.00 78.73
Как было сказано ранее, оба настроены одинаково, здесь файлы / etc / syssstat / sysstat:
Server-01
# sysstat-8.1.5 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=60
# Compress (using gzip or bzip2) sa and sar files older than (in days):
COMPRESSAFTER=10
Сервер-05:
# sysstat-8.1.5 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=60
# Compress (using gzip or bzip2) sa and sar files older than (in days):
COMPRESSAFTER=10
Здесь /etc/sysstat/sysstat.cron:
Сервер-01
# crontab for sysstat
# Activity reports every 10 minutes everyday
*/10 * * * * root [ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 -S ALL 1 1
# Update reports every 6 hours
55 5,11,17,23 * * * root [ -x /usr/lib64/sa/sa2 ] && exec /usr/lib64/sa/sa2 -A
Сервер-05:
# crontab for sysstat
# Activity reports every 10 minutes everyday
*/10 * * * * root [ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 -S ALL 1 1
# Update reports every 6 hours
55 5,11,17,23 * * * root [ -x /usr/lib64/sa/sa2 ] && exec /usr/lib64/sa/sa2 -A
Теперь, если я посмотрю отчет SAR в / var / log / sa / sar [день] на Server-01
, информация также неполная:
Server-01:~ # less /var/log/sa/sar13
Linux 3.0.76-0.11-default (Server-01) 2019-05-13 _x86_64_
10:20:01 CPU %usr %nice %sys %iowait %steal %irq %soft %guest %idle
10:20:31 all 6.73 0.00 1.04 0.00 0.00 0.00 0.13 0.00 92.10
10:20:31 0 18.18 0.00 4.25 0.03 0.00 0.00 1.02 0.00 76.51
10:20:31 1 14.48 0.00 2.39 0.00 0.00 0.00 0.00 0.00 83.13
10:20:31 2 14.24 0.00 1.40 0.00 0.00 0.00 0.00 0.00 84.36
10:20:31 3 7.60 0.00 1.99 0.00 0.00 0.00 0.84 0.00 89.57
10:20:31 4 10.61 0.00 1.75 0.00 0.00 0.00 0.71 0.00 86.93
10:20:31 5 16.40 0.00 1.41 0.00 0.00 0.00 0.07 0.00 82.12
10:20:31 6 3.81 0.00 0.60 0.07 0.00 0.00 0.00 0.00 95.52
10:20:31 7 4.52 0.00 0.84 0.03 0.00 0.00 0.00 0.00 94.61
10:20:31 8 9.79 0.00 3.88 0.03 0.00 0.00 0.37 0.00 85.92
10:20:31 9 16.17 0.00 2.08 0.00 0.00 0.00 0.00 0.00 81.75
10:20:31 10 3.79 0.00 0.67 0.00 0.00 0.00 0.00 0.00 95.54
10:20:31 11 6.95 0.00 1.54 0.00 0.00 0.00 0.00 0.00 91.51
10:20:31 12 12.47 0.00 1.28 0.00 0.00 0.00 0.17 0.00 86.08
10:20:31 13 7.18 0.00 1.74 0.00 0.00 0.00 0.84 0.00 90.23
10:20:31 14 5.38 0.00 0.71 0.00 0.00 0.00 0.07 0.00 93.85
10:20:31 15 3.32 0.00 0.54 0.00 0.00 0.00 0.00 0.00 96.14
10:20:31 16 3.80 0.00 0.80 0.00 0.00 0.00 0.00 0.00 95.40
10:20:31 17 2.71 0.00 0.57 0.00 0.00 0.00 0.00 0.00 96.72
Чего мне не хватает, чтобы Сервер-01 весь день отчитывался как Сервер-05?