{"id":75,"date":"2014-07-15T11:54:17","date_gmt":"2014-07-15T02:54:17","guid":{"rendered":"http:\/\/yug-oc.jp\/serv_blog\/?p=75"},"modified":"2014-09-03T16:25:39","modified_gmt":"2014-09-03T07:25:39","slug":"zabbix%e3%81%a7cpu%e6%b8%a9%e5%ba%a6%e5%8f%96%e5%be%97%e3%80%80%e6%94%b9%e8%a8%82%e7%89%88","status":"publish","type":"post","link":"https:\/\/yug-oc.net\/serv_blog\/archives\/75","title":{"rendered":"Zabbix\u3067CPU\u6e29\u5ea6\u53d6\u5f97\u3000\u6539\u8a02\u7248\uff082014\/9\/3\u3000\u8ffd\u8a18\u30fb\u6539\u5584\uff09"},"content":{"rendered":"<p>\u524d\u306e\u3068\u306f\u624b\u9806\u304c\u9014\u4e2d\u304b\u3089\u8272\u3005\u5909\u308f\u3063\u3066\u3044\u308b\u306e\u3067\u5225\u9014\u8a18\u4e8b\u3092\u4f5c\u6210\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><code><span style=\"font-size: medium;\">#yum install lm_sensors<\/span><\/code><\/p>\n<p>\u3092\u5b9f\u884c\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p><span style=\"font-size: medium;\"><code>#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<\/span><\/p>\n<p><code><span style=\"font-size: medium;\">#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)<\/span><\/code><\/p>\n<p><span style=\"font-size: medium;\"><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<\/span><\/p>\n<p><!--more--><\/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>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u30b3\u30de\u30f3\u30c9\u3092\u3061\u3087\u3063\u3068\u3044\u3058\u308b\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n<p>#sensors -u coretemp-isa-0000<\/p>\n<p>\u3053\u308c\u3067\u5fc5\u8981\u7b87\u6240\u3060\u3051\u304c\u51fa\u529b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<p>#sensors -u coretemp-isa-0000 | grep temp2_input<br \/>\ntemp2_input: 25.000<\/p>\n<p>temp3\u306b\u5909\u3048\u308c\u3070\u3082\u3046\u4e00\u65b9\u306e\u30b3\u30a2\u306e\u6e29\u5ea6\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u4f59\u8a08\u306a\u6587\u5b57\u3092\u6d88\u3057\u3066\u3044\u3053\u3046\u3002<\/p>\n<p>#sensors -u coretemp-isa-0000 | grep temp2_input | cut -d &#8220;:&#8221; f2<br \/>\n36.000<br \/>\n#sensors -u coretemp-isa-0000 | grep temp2_input | cut -d &#8220;:&#8221; f2 | cut -d &#8221; &#8221; -f2<br \/>\n36.000<br \/>\n#sensors -u coretemp-isa-0000 | grep temp2_input | cut -d &#8220;:&#8221; f2 | cut -d &#8221; &#8221; -f2 | cut -d &#8220;.&#8221; -f1<br \/>\n36<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u30011\u3064\u76ee\u3067<br \/>\ntemp2_input:\u3000\u306e\u90e8\u5206\u307e\u3067\u524a\u9664<br \/>\n2\u3064\u76ee\u3067\uff1a\u306e\u5f8c\u306b\u3042\u3063\u305f\u7a7a\u767d\u3092\u9664\u53bb<br \/>\n3\u3064\u76ee\u3067.\u4ee5\u964d\u3092\u5168\u524a\u9664\u3002<\/p>\n<p>\u3053\u308c\u3092\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u7d44\u307f\u8fbc\u3080\u3068\u3001<br \/>\nUserParamater=cputemp.core1,\/usr\/bin\/sensors -u coretemp-isa-0000 | grep temp2_input | cut -d &#8220;:&#8221; f2 | cut -d &#8221; &#8221; -f2 | cut -d &#8220;.&#8221; -f1<\/p>\n<p>UserParamater=cputemp.core2,\/usr\/bin\/sensors -u coretemp-isa-0000 | grep temp3_input | cut -d &#8220;:&#8221; f2 | cut -d &#8221; &#8221; -f2 | cut -d &#8220;.&#8221; -f1<\/p>\n<p>\u3068\u306a\u308b\u3002<\/p>\n<p>Zabbix\u306b\u306f<\/p>\n<p>\u540d\u524d\uff1bCPU Temp Core1<br \/>\n\u30ad\u30fc\uff1bcputemp.core1<br \/>\n\u30c7\u30fc\u30bf\u578b\uff1b\u6570\u5024\uff08\u6574\u6570\uff09<br \/>\n\u30c7\u30fc\u30bf\u5f62\u5f0f\uff1b10\u9032\u6570<br \/>\n\u5358\u4f4d\uff1b\u2103<br \/>\n\u540d\u524d\uff1bCPU Temp Core2<br \/>\n\u30ad\u30fc\uff1bcputemp.core2<br \/>\n\u30c7\u30fc\u30bf\u578b\uff1b\u6570\u5024\uff08\u6574\u6570\uff09<br \/>\n\u30c7\u30fc\u30bf\u5f62\u5f0f\uff1b10\u9032\u6570<br \/>\n\u5358\u4f4d\uff1b\u2103<\/p>\n<p>\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;2014\/09\/02\u8ffd\u8a18&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u3082\u3063\u3068\u4fbf\u5229\u306b\u3057\u3088\u3046\u3068\u3075\u3068\u601d\u3044\u7acb\u3061\u3001\u3053\u308c\u3092\u3055\u3089\u306b\u52a0\u5de5\u3057\u3066\u3044\u304f\u3002<br \/>\n\u3053\u306e\u307e\u307e\u306e\u72b6\u614b\u3067\u3001\u4f8b\u3048\u3070CPU\u4ea4\u63db\u306a\u3069\u3067\u53d6\u5f97\u5bfe\u8c61\u306e\u30b3\u30a2\u304c\u5897\u3048\u305f\u7b49\u306e\u7406\u7531\u3067\u8ffd\u52a0\u3057\u3088\u3046\uff01\u3068\u8003\u3048\u305f\u3068\u304d\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u3055\u3089\u306b\u5897\u3084\u3059\u5fc5\u8981\u304c\u51fa\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u5927\u91cf\u306b\u540c\u3058\u3088\u3046\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u7528\u610f\u3059\u308b\u306e\u3082\u306a\u3093\u3060\u304b\u826f\u3044\u3082\u3093\u3067\u306f\u306a\u3044\u306e\u3067\u3001Zabbix\u4e0a\u3067\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3057\u307e\u304a\u3046\u3068\u601d\u3044\u7acb\u3063\u305f\u3002<\/p>\n<p>UserParamater=cputemp.core<strong><span style=\"color: #ff0000;\">1<\/span><\/strong>,\/usr\/bin\/sensors -u coretemp-isa-0000 | grep temp<strong><span style=\"color: #ff0000;\">2<\/span><\/strong>_input | cut -d &#8220;:&#8221; f2 | cut -d &#8221; &#8221; -f2 | cut -d &#8220;.&#8221; -f1<\/p>\n<p>\u8d64\u5b57\u592a\u6587\u5b57\u306e\u500b\u6240\u3092\u524a\u9664\u3057\u3001\u30ad\u30fc\u540d\u306b\u3042\u305f\u308b\u3010cputemp.core1\u3011\u3092\u3010cputemp.core<strong><span style=\"color: #ff0000;\">[*]<\/span><\/strong>\u3011\u306b\u5909\u66f4\u3057\u3001\u5171\u901a\u5316\u3057\u3066\u3057\u307e\u304a\u3046\u3002<\/p>\n<p>\u3010grep temp<strong><span style=\"color: #ff0000;\">2<\/span><\/strong>_input\u3011\u306e\u30b3\u30de\u30f3\u30c9\u90e8\u5206\u306b\u3042\u305f\u308b\u500b\u6240\u306f\u3001\u3010grep temp<strong><span style=\"color: #ff0000;\">$1<\/span><\/strong>_input \u3011\u3068\u66f8\u304d\u63db\u3048\u3001\u5148\u307b\u3069\u66f8\u304d\u63db\u3048\u305f[*]\u306e\u5024\u3092$1\u3078\u4ee3\u5165\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b8c\u6210\u5f62\u306e\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306f\u6b21\u306e\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>UserParamater=cputemp.core<strong><span style=\"color: #ff0000;\">[*]<\/span><\/strong>,\/usr\/bin\/sensors -u coretemp-isa-0000 | grep temp<strong><span style=\"color: #ff0000;\">$1<\/span><\/strong>_input | cut -d &#8220;:&#8221; f2 | cut -d &#8221; &#8221; -f2 | cut -d &#8220;.&#8221; -f1<\/p>\n<p>Zabbix\u306b\u306f<\/p>\n<p>\u540d\u524d\uff1bCPU Temp Core1<br \/>\n\u30ad\u30fc\uff1bcputemp.core[2]<br \/>\n\u30c7\u30fc\u30bf\u578b\uff1b\u6570\u5024\uff08\u6574\u6570\uff09<br \/>\n\u30c7\u30fc\u30bf\u5f62\u5f0f\uff1b10\u9032\u6570<br \/>\n\u5358\u4f4d\uff1b\u2103<br \/>\n\u540d\u524d\uff1bCPU Temp Core2<br \/>\n\u30ad\u30fc\uff1bcputemp.core[3]<br \/>\n\u30c7\u30fc\u30bf\u578b\uff1b\u6570\u5024\uff08\u6574\u6570\uff09<br \/>\n\u30c7\u30fc\u30bf\u5f62\u5f0f\uff1b10\u9032\u6570<br \/>\n\u5358\u4f4d\uff1b\u2103<\/p>\n<p>\u3068\u8ffd\u52a0\u3057\u3066\u3044\u3051\u3070\u30011\u3064\u306e\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>SSH\u3067\u63a5\u7d9a\u3057\u3066\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5897\u3084\u3055\u306a\u3044\u3068\u30fb\u30fb\u30fb\uff01<\/p>\n<p>\u306a\u3093\u3066\u8003\u3048\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u306e\u3068\u306f\u624b\u9806\u304c\u9014\u4e2d\u304b\u3089\u8272\u3005\u5909\u308f\u3063\u3066\u3044\u308b\u306e\u3067\u5225\u9014\u8a18\u4e8b\u3092\u4f5c\u6210\u3057\u305f\u3002 &nbsp; #yum install lm_sensors \u3092\u5b9f\u884c\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 #sensors-detect \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30c6\u30ad\u30c8\u30fc\u306bYES\u3092 &hellip; <a href=\"https:\/\/yug-oc.net\/serv_blog\/archives\/75\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Zabbix\u3067CPU\u6e29\u5ea6\u53d6\u5f97\u3000\u6539\u8a02\u7248\uff082014\/9\/3\u3000\u8ffd\u8a18\u30fb\u6539\u5584\uff09<\/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-75","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\/75","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=75"}],"version-history":[{"count":6,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/75\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}