LoginSignup
0
1

More than 3 years have passed since last update.

Centos8ではsysstatのメトリクス収集間隔のファイルが変更になってた

Posted at

前書き

Centos8では、sysstatによるシステムリソースの収集間隔を管理するファイルが変更になっていました。
これは、sysstat-collect.serviceとしてSystemdの管理下なったからのようです。
その対処法を備忘録として残します。

対処法

環境

  • CentOS Linux release 8.0.1905 (Core)
  • sysstat-11.7.3-2.el8.x86_64

対応

以下のコマンドで2行記載すればOKです。

$ sudo systemctl edit sysstat-collect.timer

[Timer]
OnCalendar=*:00/01  ---★ 収集間隔はここを変更する(ここでは1分毎)

なお、systemctl editで変更した場合は、systemctl daemon-reloadの実行は不要です1

余談

ちなみに、収集したシステムリソースをレポート形式に変換する仕組みも、sysstat-summary.serviceとしてSystemdの管理下になりました。
変換タイミングは翌0時7分がデフォルトなので、こちらも変更するのであれば同様の方法で修正します。

$ sudo systemctl edit sysstat-summary.timer

[Timer]
OnCalendar=00:01:00  ---★ 変換タイミングはここを変更する(ここでは0時1分実行)


  1. systemdで既存のunitを編集する2つの方法を参考にさせていただきました。 

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1