{"id":9777,"date":"2016-12-31T02:41:19","date_gmt":"2016-12-30T17:41:19","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=9777"},"modified":"2016-12-31T03:15:19","modified_gmt":"2016-12-30T18:15:19","slug":"debian%e3%82%84ubuntu%e3%81%a7sysstat%e3%82%92%e6%9c%89%e5%8a%b9%e5%8c%96%e3%81%99%e3%82%8b%e6%89%8b%e9%a0%86%e3%81%a8%e5%8f%96%e5%be%97%e9%96%93%e9%9a%94%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/debian%e3%82%84ubuntu%e3%81%a7sysstat%e3%82%92%e6%9c%89%e5%8a%b9%e5%8c%96%e3%81%99%e3%82%8b%e6%89%8b%e9%a0%86%e3%81%a8%e5%8f%96%e5%be%97%e9%96%93%e9%9a%94%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b\/","title":{"rendered":"Debian\u3084Ubuntu\u3067sysstat\u3092\u6709\u52b9\u5316\u3059\u308b\u624b\u9806\u3068\u53d6\u5f97\u9593\u9694\u3092\u5909\u66f4\u3059\u308b\u624b\u9806"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u677e\u91ce\u3067\u3059\u3002<\/p>\n<p>\u5f0a\u793e\u3067\u306fLinux\u7cfbOS\u306e\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067sysstat\u306b\u3088\u308b\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u306e\u53d6\u5f97\u30921\u5206\u9593\u9694\u3067\u884c\u3063\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\nRedHat\u3084CentOS\u3001AmazonLinux\u3067\u3042\u308c\u3070sysstat\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u70b9\u3067\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u306e\u53d6\u5f97\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u304c\u3001Debian\u3084Ubuntu\u3067\u306f\u6709\u52b9\u306b\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\n\u305d\u308c\u3092\u6709\u52b9\u306b\u3059\u308b\u624b\u9806\u306e\u30e1\u30e2\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>sysstat\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u53d6\u308a\u6562\u3048\u305asysstat\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>\n# apt-get install sysstat\n\uff5e\u7565\uff5e\n#\n<\/pre>\n<h3>\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u304c\u53d6\u5f97\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<pre>\n# which sar\n\/usr\/bin\/sar\n#\n<\/pre>\n<p>sar\u30b3\u30de\u30f3\u30c9\u306f\u4f7f\u3048\u307e\u3059\u304c\u2026<\/p>\n<pre>\n# sar\nCannot open \/var\/log\/sysstat\/sa26: No such file or directory\nPlease check if data collecting is enabled\n#\n<\/pre>\n<p>\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u306f\u53d6\u5f97\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u306e\u53d6\u5f97\u3092\u6709\u52b9\u306b\u3059\u308b<\/h3>\n<pre>\n\/etc\/default\/sysstat\n<\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u2026<\/p>\n<pre>\nENABLED=\"false\"\n\u2193\nENABLED=\"true\"\n<\/pre>\n<p>\u3053\u3053\u3092\u5909\u3048\u307e\u3059<\/p>\n<h3>\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u304c\u53d6\u5f97\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<pre>\n# sar\nLinux 4.4.0-53-generic (ip-172-31-9-138)        12\/26\/2016      _x86_64_        (1 CPU)\n\n\uff5e\u7701\u7565\uff5e\n\n06:55:01 PM     all      0.00      0.00      0.00      0.00      0.00     99.99\n07:05:01 PM     all      0.00      0.00      0.00      0.00      0.00     99.99\n07:15:01 PM     all      0.00      0.00      0.00      0.00      0.00     99.99\nAverage:        all      0.00      0.00      0.00      0.00      0.00     99.99\n#\n<\/pre>\n<p>\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u304c10\u5206\u9593\u9694\u3067\u53d6\u5f97\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>\u304a\u307e\u3051\u3000\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u53d6\u5f97\u9593\u9694\u30921\u5206\u6bce\u306b\u3059\u308b<\/h3>\n<p>sysstat\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f10\u5206\u9593\u9694\u3067\u306e\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u53d6\u5f97\u3068\u306a\u308a\u307e\u3059\u304c\u300110\u5206\u9593\u9694\u3067\u3059\u3068\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u7d30\u304b\u3044\u8abf\u67fb\u304c\u884c\u3048\u306a\u3044\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u70ba\u3001\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u53d6\u5f97\u306e\u9593\u9694\u309210\u5206\u21d21\u5206\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre>\n\/etc\/cron.d\/sysstat\n<\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u2026<\/p>\n<pre>\n5-55\/10 * * * * root command -v debian-sa1 &gt; \/dev\/null &amp;&amp; debian-sa1 1 1\n\u2193\n5-55\/10 * * * * root command -v debian-sa1 &gt; \/dev\/null &amp;&amp; debian-sa1 60 10\n<\/pre>\n<p>\u3053\u3053\u3092\u3053\u3046\u5909\u3048\u307e\u3059\u3002<\/p>\n<pre>\n# sar\nLinux 4.4.0-53-generic (ip-172-31-9-138)        12\/26\/2016      _x86_64_        (1 CPU)\n\n\uff5e\u7701\u7565\uff5e\n\n08:28:01 PM     all      0.03      0.00      0.02      0.00      0.00     99.95\n08:29:01 PM     all      0.00      0.00      0.00      0.02      0.00     99.98\n08:30:01 PM     all      0.00      0.00      0.00      0.00      0.02     99.98\nAverage:        all      0.00      0.00      0.00      0.00      0.00     99.99\n#\n<\/pre>\n<p>1\u5206\u9593\u9694\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u677e\u91ce\u3067\u3059\u3002 \u5f0a\u793e\u3067\u306fLinux\u7cfbOS\u306e\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067sysstat\u306b\u3088\u308b\u30ea\u30bd\u30fc\u30b9\u60c5\u5831\u306e\u53d6\u5f97\u30921\u5206\u9593\u9694\u3067\u884c\u3063\u3066\u304a\u308a\u307e\u3059\u3002 RedHat\u3084CentOS\u3001AmazonLinux\u3067\u3042\u308c\u3070sysstat\u3092\u30a4\u30f3\u30b9\u30c8\u30fc&#8230;<\/p>\n","protected":false},"author":50,"featured_media":2463,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"9777","footnotes":""},"categories":[29],"tags":[],"class_list":{"0":"post-9777","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/9777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=9777"}],"version-history":[{"count":11,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/9777\/revisions"}],"predecessor-version":[{"id":9787,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/9777\/revisions\/9787"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/2463"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=9777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=9777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=9777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}