{"id":40,"date":"2014-04-08T12:34:32","date_gmt":"2014-04-08T03:34:32","guid":{"rendered":"http:\/\/yug-oc.jp\/serv_blog\/?p=40"},"modified":"2014-09-02T16:56:23","modified_gmt":"2014-09-02T07:56:23","slug":"zabbix%e3%81%a7cpu%e6%b8%a9%e5%ba%a6%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/yug-oc.net\/serv_blog\/archives\/40","title":{"rendered":"Zabbix\u3067CPU\u6e29\u5ea6\u53d6\u5f97"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u5f90\u3005\u306bLinux\u3068\u3044\u3046\u3082\u306e\u3092\u308f\u304b\u308a\u59cb\u3081\u3066\u304d\u305f\u306e\u3067\u81ea\u5df1\u89e3\u6c7a\u7387\u3082\u82e5\u5e72\u4e0a\u304c\u3063\u3066\u304d\u305f\u6c17\u304c\u3059\u308b\u4eca\u65e5\u3053\u306e\u9803\u3002<\/p>\n<p>\u524d\u56deCPU\u5468\u6ce2\u6570\u306e\u53d6\u5f97\u3092\u884c\u3046\u3088\u3046\u8a2d\u5b9a\u3057\u305f\u304c\u3001\u4eca\u5ea6\u306fZabbix\u306b\u3066CPU\u6e29\u5ea6\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3088\u3046\u3068\u601d\u3046\u3002\u3053\u308c\u304b\u3089\u6765\u308b\u590f\u306b\u5411\u3051\u3066\u5272\u3068\u91cd\u8981\u306a\u4f5c\u696d\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>\u4f55\u6545\u306a\u3089\u3001\u5f53\u65b9\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u3042\u308b\u90e8\u5c4b\u306f\u3001\u975e\u5e38\u306b\u65e5\u5f53\u305f\u308a\u304c\u826f\u597d\u3067\u3042\u308b\u304b\u3089\u3060\u3002<\/p>\n<p><span style=\"text-decoration: underline;\"><strong><a title=\"Zabbix\u3067CPU\u6e29\u5ea6\u53d6\u5f97\u3000\u6539\u8a02\u7248\" href=\"http:\/\/yug-oc.jp\/serv_blog\/archives\/75\">&lt;2014\/07\/15\u3000\u4f5c\u696d\u624b\u9806\u5909\u66f4\u306b\u3064\u304d\u3001\u6700\u65b0\u8a18\u4e8b\u53c2\u7167\u3092\u63a8\u5968\u3057\u307e\u3059\u3002&gt;<\/a><\/strong><\/span><\/p>\n<p><!--more--><\/p>\n<p><code>&gt;&gt;yum install lm_sensors<\/code><\/p>\n<p>\u3092\u5b9f\u884c\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p><code>&gt;&gt;sensors-detect<\/code><br \/>\n\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30c6\u30ad\u30c8\u30fc\u306bYES\u3092\u5165\u529b\u3057\u3066\u3044\u304d\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3055\u305b\u308b\u3002<\/p>\n<p><code>&gt;&gt;sensors<br \/>\napcitz-virtual-0<br \/>\nAdapter: Virtual device<br \/>\ntemp1: +27.8\u2103 (high = +82.0\u2103, crit = +103.0\u2103)<br \/>\ntemp2: +29.8\u2103 (high = +82.0\u2103, crit = +103.0\u2103)<\/code><\/p>\n<p><code>coretemp-isa-0000<br \/>\nAdapter: ISA adapter<br \/>\nPhysical id 0: +29.0\u2103 (high = +82.0\u2103, crit = +102.0\u2103)<br \/>\nCore 0: +26.0\u2103 (high = +82.0\u2103, crit = +102.0\u2103)<br \/>\nCore 1: +29.0\u2103 (high = +82.0\u2103, crit = +102.0\u2103)<\/code><br \/>\n\u3068\u8868\u793a\u3055\u308c\u305f\u3002\u53d6\u5f97\u306f\u554f\u984c\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/p>\n<p># sensors -u<br \/>\nacpitz-virtual-0000<br \/>\nAdapter: Virtual device<br \/>\ntemp1:<br \/>\ntemp1_input: 27.800<br \/>\ntemp1_crit: 103.000<br \/>\ntemp2:3_max: 82.000<br \/>\ntemp2_input: 29.800<br \/>\ntemp2_crit: 103.000.000<\/p>\n<p>coretemp-isa-0000<br \/>\nAdapter: ISA adapter<br \/>\nPhysical id 0:<br \/>\ntemp1_input: 30.000<br \/>\ntemp1_max: 82.000<br \/>\ntemp1_crit: 102.000<br \/>\ntemp1_crit_alarm: 0.000<br \/>\nCore 0:<br \/>\ntemp2_input: 25.000<br \/>\ntemp2_max: 82.000<br \/>\ntemp2_crit: 102.000<br \/>\ntemp2_crit_alarm: 0.000<br \/>\nCore 1:<br \/>\ntemp3_input: 30.000<br \/>\ntemp3_max: 82.000<br \/>\ntemp3_crit: 102.000<br \/>\ntemp3_crit_alarm: 0.000<\/p>\n<p>temp2_input\u3068temp3_input\u304c\u4eca\u56de\u5bfe\u8c61\u306a\u306e\u3060\u304c\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u554f\u984c\u304c\u3042\u308b\u3002<\/p>\n<p>temp2_input\u304c2\u3064\u5b58\u5728\u3059\u308b\u3002<\/p>\n<p>\u3053\u306e\u307e\u307egrep\u3067\u62bd\u51fa\u3092\u884c\u3063\u3066\u30822\u3064\u306e\u9805\u76ee\u304c\u62bd\u51fa\u3055\u308c\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>#sensors -u |grep temp2_input<br \/>\ntemp2_input: 29.800<br \/>\ntemp2_input: 25.000<\/p>\n<p>\u3082\u3061\u308d\u3093\u4f7f\u3044\u305f\u3044\u306e\u306f2\u884c\u76ee\u306b\u3042\u308b\u65b9\u3067\u3042\u308b\u3002\u306a\u306e\u3067\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u3092\u30c0\u30d6\u3089\u306a\u3044\u3001\u3010Core\u3011\u306b\u5909\u66f4\u3057\u3066\u3057\u307e\u3046\u3002\u305d\u306e\u969b\u306b\u3001\u3010-A1\u3011\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u691c\u7d22\u7d50\u679c\u8868\u793a\u3092\u5e83\u3052\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u266fsensors -u |grep -A1 Core<br \/>\nCore 0:<br \/>\ntemp2_input: 25.000<br \/>\n&#8212;<br \/>\nCore 1:<br \/>\ntemp3_input: 30.000<\/p>\n<p>\u3053\u306e\u691c\u7d22\u7d50\u679c\u81ea\u4f53\u306b\u3055\u3089\u306bgrep\u30b3\u30de\u30f3\u30c9\u3092\u6295\u3052\u3066\u3055\u3089\u306b\u7d5e\u308a\u8fbc\u307e\u305b\u308b\u3002<\/p>\n<p>\u266fsensors -u |grep -A1 Core |grep temp2_input<br \/>\ntemp2_input: 27.000<\/p>\n<p>\u53d6\u308a\u51fa\u3057\u306b\u6210\u529f\u3057\u305f\u304c\u3001\u8272\u3005\u4e0d\u8981\u306a\u6587\u5b57\u5217\u304c\u591a\u3044\u306e\u3067\u305d\u308c\u3082\u9664\u53bb\u3059\u308b\u3002<\/p>\n<p>\u266fsensors -u |grep -A1 Core |grep temp2_input\u3000|cut -d &#8220;:&#8221; -f2 |cut -d &#8221; &#8221; -f2<br \/>\n27.000<\/p>\n<p>\u3053\u308c\u3067\u51fa\u529b\u30b3\u30de\u30f3\u30c9\u306f\u307b\u307c\u5b8c\u6210\u3057\u305f\u3060\u308d\u3046\u30fb\u30fb\u30fb\u3002<br \/>\n\u3042\u3068\u306fzabbix-agent\u306b\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u5b9f\u88c5\u3059\u308c\u3070\u3088\u3055\u305d\u3046\u3002<\/p>\n<p>UserParameter=cpu.temp[*],sensors -u |grep -A1 Core |grep temp$1_input\u3000|cut -d &#8220;:&#8221; -f2 |cut -d &#8221; &#8221; -f2<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u3053\u307e\u3067\u3002\u52d5\u4f5c\u78ba\u8a8d\u306f\u307e\u305f\u5f8c\u307b\u3069\u8ffd\u8a18\u3068\u3044\u3046\u5f62\u3067\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u5f90\u3005\u306bLinux\u3068\u3044\u3046\u3082\u306e\u3092\u308f\u304b\u308a\u59cb\u3081\u3066\u304d\u305f\u306e\u3067\u81ea\u5df1\u89e3\u6c7a\u7387\u3082\u82e5\u5e72\u4e0a\u304c\u3063\u3066\u304d\u305f\u6c17\u304c\u3059\u308b\u4eca\u65e5\u3053\u306e\u9803\u3002 \u524d\u56deCPU\u5468\u6ce2\u6570\u306e\u53d6\u5f97\u3092\u884c\u3046\u3088\u3046\u8a2d\u5b9a\u3057\u305f\u304c\u3001\u4eca\u5ea6\u306fZabbix\u306b\u3066CPU\u6e29\u5ea6\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3088\u3046\u3068\u601d\u3046\u3002 &hellip; <a href=\"https:\/\/yug-oc.net\/serv_blog\/archives\/40\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Zabbix\u3067CPU\u6e29\u5ea6\u53d6\u5f97<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,14],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-linux","category-zabbix"],"_links":{"self":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":10,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/40\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}