우분투 sysstat 설치

  다른 뜻에 대해서는 CentOS sysstat 설치 문서를 참조하십시오.
우분투 sysstat 설치

1 확인[ | ]

root@zetawiki:~# sar
The program 'sar' can be found in the following packages:
 * sysstat
 * atsar
Try: apt-get install <selected package>

2 설치[ | ]

root@zetawiki:~# apt-get install sysstat
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libvarnishapi1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libsensors4
Suggested packages:
  lm-sensors isag
The following NEW packages will be installed:
  libsensors4 sysstat
0 upgraded, 2 newly installed, 0 to remove and 50 not upgraded.
Need to get 335 kB of archives.
After this operation, 1,106 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://kr.archive.ubuntu.com/ubuntu/ precise/main libsensors4 amd64 1:3.3.1-2ubuntu1 [31.9 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu/ precise/main sysstat amd64 10.0.3-1 [303 kB]
Fetched 335 kB in 0s (1,448 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libsensors4.
(Reading database ... 94849 files and directories currently installed.)
Unpacking libsensors4 (from .../libsensors4_1%3a3.3.1-2ubuntu1_amd64.deb) ...
Selecting previously unselected package sysstat.
Unpacking sysstat (from .../sysstat_10.0.3-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libsensors4 (1:3.3.1-2ubuntu1) ...
Setting up sysstat (10.0.3-1) ...

Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

3 확인 2[ | ]

root@zetawiki:~# sar
Cannot open /var/log/sysstat/sa29: No such file or directory
Please check if data collecting is enabled in /etc/default/sysstat
root@zetawiki:~# cat /etc/cron.d/sysstat
# The first element of the path is a directory where the debian-sa1
# script is located
PATH=/usr/lib/sysstat:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin

# Activity reports every 10 minutes everyday
5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

# Additional run at 23:59 to rotate the statistics file
59 23 * * * root command -v debian-sa1 > /dev/null && debian-sa1 60 2

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}