{"id":1635,"date":"2011-10-15T15:50:27","date_gmt":"2011-10-15T06:50:27","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=1635"},"modified":"2011-10-15T15:50:32","modified_gmt":"2011-10-15T06:50:32","slug":"cpu%e3%81%a8hdd%e3%82%92munin%e3%81%a7%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e8%a8%ad%e5%ae%9a%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/1635","title":{"rendered":"CPU\u3068HDD\u3092munin\u3067\u76e3\u8996\u3059\u308b\u8a2d\u5b9a\u30e1\u30e2"},"content":{"rendered":"<p><strong>\u25a0CPU\u3068HDD\u3092munin\u3067\u76e3\u8996\u3059\u308b\u8a2d\u5b9a\u30e1\u30e2<\/strong><br \/>\n\u3000\u7a3c\u50cd\u4e2d\u306e\u30de\u30b7\u30f3\u306eCPU\u6e29\u5ea6\u3084HDD\u306e\u72b6\u6cc1\u3092munin\u3067\u76e3\u8996\u3059\u308b\u8a2d\u5b9a\u306e\u30e1\u30e2\u3002<\/p>\n<p><strong>\u25a0CPU\u6e29\u5ea6\u306e\u76e3\u8996<\/strong><br \/>\n\u3000\u4e8b\u524d\u306b<a href=\"https:\/\/blog.isnext.net\/issy\/archives\/1492\">lm_sensors\u8a2d\u5b9a<\/a>\u3092\u884c\u3063\u3066\u3044\u308b\u3053\u3068<\/p>\n<p><strong>\u30fb\u6709\u52b9\u306a\u8a2d\u5b9a\u306e\u78ba\u8a8d\u3092\u3059\u308b<\/strong><br \/>\n\u3000# \/usr\/share\/munin\/plugins\/sensors_ suggest<\/p>\n<p><strong>\u30fbtemp\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b<\/strong><br \/>\n\u3000# cd \/etc\/munin\/plugins\/<br \/>\n\u3000# ln -s \/usr\/share\/munin\/plugins\/sensors_ sensors_temp<\/p>\n<p><strong>\u30fb\u52d5\u4f5c\u78ba\u8a8d<\/strong><br \/>\n\u3000# \/usr\/sbin\/munin-run -servicedir \/etc\/munin\/plugins sensors_temp<\/p>\n<p><strong>\u30fb\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b<\/strong><br \/>\n\u3000# service munin-node restart<\/p>\n<p><strong>\u25a0HDD\u306e\u6e29\u5ea6\u53ca\u3073SMART\u30c7\u30fc\u30bf\u306e\u76e3\u8996<\/strong><br \/>\n\u3000HDD\u304cSMART\u5bfe\u5fdc\u306e\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f<\/p>\n<p><strong>\u30fb\u6e29\u5ea6\u76e3\u8996\u3092\u8ffd\u52a0<\/strong><br \/>\n\u3000# cd \/etc\/munin\/plugins\/<br \/>\n\u3000# ln -s \/usr\/share\/munin\/plugins\/hddtemp_smartctl hddtemp_smartctl<\/p>\n<p><strong>\u30fbSMART\u30c7\u30fc\u30bf\u306e\u76e3\u8996\u8ffd\u52a0<\/strong><br \/>\n\u3000# ln -s \/usr\/share\/munin\/plugins\/smart_ smart_sda<\/p>\n<p><strong>\u30fb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u8a2d\u5b9a\u8ffd\u52a0<\/strong><br \/>\n\u3000# vi \/etc\/munin\/plugin-conf.d\/hddtemp_smartctl<br \/>\n\u3000\u4ee5\u4e0b\u3092\u8ffd\u8a18<br \/>\n\u3000env.drives sda<br \/>\n\u3000env.type_sda ata<\/p>\n<p>\u3000# vi \/etc\/munin\/plugin-conf.d\/smart_<br \/>\n\u3000\u4ee5\u4e0b\u3092\u8ffd\u8a18<br \/>\n\u3000[smart_*]<br \/>\n\u3000user root<br \/>\n\u3000<br \/>\n\u3000[smart_sda]<br \/>\n\u3000env.smartargs -d ata<\/p>\n<p><strong>\u30fb\u52d5\u4f5c\u78ba\u8a8d<\/strong><br \/>\n\u3000# \/usr\/sbin\/munin-run -servicedir \/etc\/munin\/plugins hddtemp_smartctl<br \/>\n\u3000# \/usr\/sbin\/munin-run -servicedir \/etc\/munin\/plugins smart_sda<br \/>\n\u3000\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306b\u306f\u4fee\u6b63\u3092\u3059\u308b<\/p>\n<p>\u3000\u3000Traceback (most recent call last):<br \/>\n\u3000\u3000  File &#8220;\/etc\/munin\/plugins\/smart_sda&#8221;, line 398, in ?<br \/>\n\u3000\u3000    exit(0)<br \/>\n\u3000\u3000TypeError: &#8216;str&#8217; object is not callable<\/p>\n<p>\u3000398\u884c\u76ee\u306e exit(0) \u2192 sys.exit(0) \u306b\u4fee\u6b63<\/p>\n<p><strong>\u30fb\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b<\/strong><br \/>\n\u3000# service munin-node restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0CPU\u3068HDD\u3092munin\u3067\u76e3\u8996\u3059\u308b\u8a2d\u5b9a\u30e1\u30e2 \u3000\u7a3c\u50cd\u4e2d\u306e\u30de\u30b7\u30f3\u306eCPU\u6e29\u5ea6\u3084HDD\u306e\u72b6\u6cc1\u3092munin\u3067\u76e3\u8996\u3059\u308b\u8a2d\u5b9a\u306e\u30e1\u30e2\u3002 \u25a0CPU\u6e29\u5ea6\u306e\u76e3\u8996 \u3000\u4e8b\u524d\u306blm_sensors\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u308b\u3053\u3068 \u30fb\u6709\u52b9\u306a\u8a2d\u5b9a\u306e\u78ba\u8a8d\u3092\u3059\u308b &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/1635\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CPU\u3068HDD\u3092munin\u3067\u76e3\u8996\u3059\u308b\u8a2d\u5b9a\u30e1\u30e2&#8221;<\/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":[1],"tags":[28,123],"class_list":["post-1635","post","type-post","status-publish","format-standard","hentry","category-linux","tag-munin","tag-scientific"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=1635"}],"version-history":[{"count":2,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1635\/revisions"}],"predecessor-version":[{"id":1637,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1635\/revisions\/1637"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=1635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=1635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=1635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}