Public DNS

IPv4 IPv6 運営元
8.8.8.8
8.8.4.4
2001:4860:4860::8888
2001:4860:4860::8844
Google
1.1.1.1
1.0.0.1
2606:4700:4700::1111
2606:4700:4700::1001
Cloudflare
64.6.64.6
64.6.65.6
2620:74:1b::1:1
2620:74:1c::2:2
Verisign
208.67.222.222
208.67.220.220
2620:0:ccc::2
2620:0:ccd::2
OpenDNS
101.101.101.101
101.102.103.104
2001:de4::101
2001:de4::102
TWNIC
9.9.9.9
149.112.112.112
2620:fe::fe
2620:fe::9
Quad9

Ubuntuでsarコマンドを使えるようにする

概要

$ sar
Cannot open /var/log/sysstat/sa07: No such file or directory
Please check if data collecting is enabled
$

こういったメッセージが表示されてしまう。

対処法

/etc/default/sysstat

を以下のように書き換える。

ENABLED="false"

ENABLED="true"

あとはデフォルトで10分間隔で記録されるようになる。

この10分間隔は
/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