собирать, сообщать или сохранять информацию о деятельности системы (Collect, report, or save system activity information.)
Окружение (Environment)
The sar
command takes into account the following environment
variables:
S_COLORS
By default statistics are displayed in color when the
output is connected to a terminal. Use this variable to
change the settings. Possible values for this variable are
never, always or auto (the latter is equivalent to the
default settings).
Please note that the color (being red, yellow, or some
other color) used to display a value is not indicative of
any kind of issue simply because of the color. It only
indicates different ranges of values.
S_COLORS_SGR
Specify the colors and other attributes used to display
statistics on the terminal. Its value is a colon-
separated list of capabilities that defaults to
C=33;22:H=31;1:I=32;22:M=35;1:N=34;1:R=31;22:Z=34;22
.
Supported capabilities are:
C=
SGR (Select Graphic Rendition) substring for
comments inserted in the binary daily data files.
H=
SGR substring for percentage values greater than or
equal to 75%.
I=
SGR substring for item names or values (eg. network
interfaces, CPU number...)
M=
SGR substring for percentage values in the range
from 50% to 75%.
N=
SGR substring for non-zero statistics values.
R=
SGR substring for restart messages.
Z=
SGR substring for zero values.
S_TIME_DEF_TIME
If this variable exists and its value is UTC
then sar
will
save its data in UTC time (data will still be displayed in
local time). sar
will also use UTC time instead of local
time to determine the current daily data file located in
the /var/log/sa directory. This variable may be useful for
servers with users located across several timezones.
S_TIME_FORMAT
If this variable exists and its value is ISO
then the
current locale will be ignored when printing the date in
the report header. The sar
command will use the ISO 8601
format (YYYY-MM-DD) instead. The timestamp will also be
compliant with ISO 8601 format.