{"id":15347,"date":"2023-09-25T06:54:06","date_gmt":"2023-09-24T21:54:06","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=15347"},"modified":"2023-09-25T06:54:50","modified_gmt":"2023-09-24T21:54:50","slug":"rhel-8%e3%81%a7sysstat%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/15347","title":{"rendered":"RHEL 8\u3067Sysstat\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01"},"content":{"rendered":"<p>RHEL 8\u3067Sysstat\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>Sysstat\u306e\u30c7\u30fc\u30bf\u4fdd\u5b58\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Sysstat\u306e\u30c7\u30fc\u30bf\u4fdd\u5b58\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u306f\u3001\u300c\/etc\/sysconfig\/sysstat\u300d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5148\u304c\u300c\/var\/log\/sa\u300d\u3067\u3001\u5727\u7e2e\u65b9\u6cd5\u304c\u300cxz\u300d\u3067\u3042\u308b\u3053\u3068\u306a\u3069\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/etc\/sysconfig\/sysstat\r\n# sysstat-11.7.3 configuration file.\r\n\r\n# How long to keep log files (in days).\r\n# If value is greater than 28, then use sadc's option -D to prevent older\r\n# data files from being overwritten. See sadc(8) and sysstat(5) manual pages.\r\nHISTORY=28\r\n\r\n# Compress (using xz, gzip or bzip2) sa and sar files older than (in days):\r\nCOMPRESSAFTER=31\r\n\r\n# Parameters for the system activity data collector (see sadc manual page)\r\n# which are used for the generation of log files.\r\nSADC_OPTIONS=&quot; -S DISK&quot;\r\n\r\n# Directory where sa and sar files are saved. The directory must exist.\r\nSA_DIR=\/var\/log\/sa\r\n\r\n# Compression program to use.\r\nZIP=&quot;xz&quot;\r\n\r\n# By default sa2 script generates yesterday's summary, since the cron job\r\n# usually runs right after midnight. If you want sa2 to generate the summary\r\n# of the same day (for example when cron job runs at 23:53) set this variable.\r\n#YESTERDAY=no\r\n\r\n# By default sa2 script generates reports files (the so called sarDD files).\r\n# Set this variable to false to disable reports generation.\r\n#REPORTS=false\r\n<\/pre>\n<h2>Sysstat\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Sysstat\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u8a2d\u5b9a\u306f\u3001\u300c\/lib\/systemd\/system\/sysstat-collect.timer\u300d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u5185\u5bb9\u304b\u308910\u5206\u304a\u304d\u306b\u53d6\u5f97\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/lib\/systemd\/system\/sysstat-collect.timer \r\n# \/usr\/lib\/systemd\/system\/sysstat-collect.timer\r\n# (C) 2014 Tomasz Torcz &lt;tomek@pipebreaker.pl&gt;\r\n#\r\n# sysstat-11.7.3 systemd unit file:\r\n#        Activates activity collector every 10 minutes\r\n\r\n&#x5B;Unit]\r\nDescription=Run system activity accounting tool every 10 minutes\r\n\r\n&#x5B;Timer]\r\nOnCalendar=*:00\/10\r\n\r\n&#x5B;Install]\r\nWantedBy=sysstat.service\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>RHEL 8\u306eSysstat\u306e\u8a2d\u5b9a\u306f\u3001\u300c\/etc\/sysconfig\/sysstat\u300d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002sar\u30b3\u30de\u30f3\u30c9\u3067\u3001\u904e\u53bb\u5206\u306e\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u306b\u3082\u78ba\u8a8d\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/11526\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL 8\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_rhel_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL 8\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">RHEL 8\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H8WqP7\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41Hsgz5kRSL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RHEL 8\u3067Sysstat\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5291,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239],"tags":[308,315,1164,1218],"class_list":["post-15347","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rhel-8","tag-rhel","tag-rhel-8","tag-sar","tag-sysstat"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=15347"}],"version-history":[{"count":2,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15347\/revisions"}],"predecessor-version":[{"id":15350,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15347\/revisions\/15350"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5291"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=15347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=15347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=15347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}