{"id":29,"date":"2008-03-06T13:53:49","date_gmt":"2008-03-06T04:53:49","guid":{"rendered":"https:\/\/hiro7216.mydns.jp\/blog\/?p=29"},"modified":"2024-01-30T23:38:27","modified_gmt":"2024-01-30T14:38:27","slug":"%e4%bb%96%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e6%b8%a9%e5%ba%a6%e3%80%81fan%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/hiro7216.mydns.jp\/blog\/?p=29","title":{"rendered":"\u4ed6\u30b5\u30fc\u30d0\u30fc\u306e\u6e29\u5ea6\u3001FAN\u3092\u76e3\u8996\u3059\u308b"},"content":{"rendered":"\n<p>\u4ed6\u30b5\u30fc\u30d0\u30fc\u306eCPU\u4f7f\u7528\u7387\u3084\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u7387\u306f\u4ed6\u30b5\u30fc\u30d0\u30fc\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fsnmp\u7d4c\u7531\u3067\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002<br>\u3057\u304b\u3057\u6e29\u5ea6\u3084FAN\u56de\u8ee2\u6570\u306a\u3069\u306fsnmp\u3067\u306f\u6a19\u6e96\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>\u51fa\u6765\u308c\u3070\u6e29\u5ea6\u76e3\u8996\u3001FAN\u76e3\u8996\u3082\u4e00\u7dd2\u306b\u3084\u3063\u3066\u304a\u304d\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<br>\uff08\u3053\u3053\u3067\u306fdebian\u5316\u3057\u305fLinkstation\u306e\u6e29\u5ea6\u3001FAN\u76e3\u8996\u3092\u6271\u3063\u3066\u3044\u307e\u3059\u306e\u3067<br>\u3000\u304a\u4f7f\u3044\u306e\u6a5f\u5668\u306b\u3088\u3063\u3066\u6e29\u5ea6\u53d6\u5f97\u3001FAN\u56de\u8ee2\u6570\u306a\u3069\u306e\u53d6\u5f97\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u7570\u306a\u308a\u307e\u3059\uff09<\/p>\n\n\n\n<p>snmp\u306b\u306f\u5916\u90e8\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7d50\u679c\u3092\u8fd4\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u8a2d\u5b9a\u304c\u53ef\u80fd\u306a\u306e\u3067\u305d\u308c\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br>snmpd.conf\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u898b\u308b\u3068 Executables\/scripts \u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308b\u306e\u304c\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>#####################################<br># Executables\/scripts<br>#<br>#<br># You can also have programs run by the agent that return a single<br># line of output and an exit code. Here are two examples.<br>#<br># exec NAME PROGRAM [ARGS &#8230;]<br>#<br># NAME: A generic name.<br># PROGRAM: The program to run. Include the path!<br># ARGS: optional arguments to be passed to the program<\/p>\n\n\n\n<p>\u3053\u306e\u5f8c\u308d\u306b\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u767b\u9332\u3057\u307e\u3059\u3002<br>\u3061\u306a\u307f\u306b\u4eca\u56de\u306f\u672c\u4f53\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u305d\u306e\u307e\u307e\u4ed6\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30d4\u30fc\u3057\u6d41\u7528\u3057\u307e\u3059\u3002<br>\u4ee5\u524d\u7d39\u4ecb\u3057\u3066\u3044\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4ed6\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\/usr\/local\/mrtg\/bin\/mon_fan.pl<br>\/usr\/local\/mrtg\/bin\/mon_temp.pl<\/p>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3089snmpd.conf\u306b\u5b9f\u884c\u306e\u8a18\u8ff0\u3092\u66f8\u304d\u8db3\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>exec mon_fan \/usr\/bin\/perl \/usr\/local\/mrtg\/bin\/mon_fan.pl<br>exec mon_fan \/usr\/bin\/perl \/usr\/local\/mrtg\/bin\/mon_temp.pl<\/p>\n\n\n\n<p>\u3053\u306e\u4e8c\u884c\u3092\u66f8\u304d\u8db3\u3059\u3053\u3068\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u7d50\u679c\u304csnmp\u7d4c\u7531\u3067\u53d6\u5f97\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br>Executables\/scripts\u306e\u30b3\u30e1\u30f3\u30c8\u90e8\u5206\u306b\u53d6\u5f97\u306e\u5024\u3082\u3061\u3083\u3093\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u306d\u3002<br>1.3.6.1.4.1.2021.8.1.101.1\u3000\u2190\uff11\u3064\u76ee\u306e\u5b9f\u884c\u7d50\u679c\u3092\u305d\u306e\u307e\u307e\u6587\u5b57\u5217\u3067\u8fd4\u3059\u3088\u3046\u3067\u3059\u3002<br>1.3.6.1.4.1.2021.8.1.101.2\u3000\u2190\uff12\u3064\u76ee\u306e\u5b9f\u884c\u7d50\u679c\u3092\u305d\u306e\u307e\u307e\u6587\u5b57\u5217\u3067\u8fd4\u3059\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3053\u306e\u7d50\u679c\u3092\u305d\u306e\u307e\u307e\u53d6\u5f97\u3059\u308b\u3068\u300cUCD-SNMP-MIB::extOutput.1 = STRING:\u300d\u306e\u3088\u3046\u306a\u4f59\u8a08\u306a\u6587\u5b57\u307e\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<br>\u672c\u6765\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6570\u5b57\u3067\u8fd4\u3059\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3066INTEGER\u306e\u5024\u3092\u53d6\u5f97\u3059\u3079\u304d\u3067\u3059\u304c\u697d\u306b\u4f7f\u3044\u56de\u3059\u305f\u3081\u306b<br>MRTG\u306e\u53d6\u5f97\u5074\u3067\u7d30\u5de5\u3092\u884c\u3044\u6b63\u5e38\u306bMRTG\u304c\u8a8d\u8b58\u51fa\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b\u6e29\u5ea6\u3001FAN\u56de\u8ee2\u6570\u306eMRTG\u5074\u8a2d\u5b9a\u306f\u4ee5\u524d\u7d39\u4ecb\u3057\u305f\u3082\u306e\u3092\u4e00\u90e8\u66f8\u304d\u63db\u3048\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<br>\u3000\u57fa\u672c\u7684\u306b\u306f\u540c\u3058\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u3067\u8a2d\u5b9a\u6e29\u5ea6\u3001\u8a2d\u5b9a\u56de\u8ee2\u6570\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u307e\u3067\u884c\u3063\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>tagert\u9805\u76ee\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>Target[fan_nashiro]: `snmpwalk -v 1 -c public 192.168.x.x .1.3.6.1.4.1.2021.8.1.101.1 | awk &#8216;{print $4} {print &#8220;2640&#8221;} {print &#8220;hostname&#8221;}&#8217;`<\/p>\n\n\n\n<p>\u203bpublic 192.168.x.x\u3000\u306e\u90e8\u5206\u306fsnmp\u3067\u8a2d\u5b9a\u3057\u305f\u540d\u79f0\u3001\u30b5\u30fc\u30d0\u30fcIP\u306b\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<br>\u30002640\u306e\u90e8\u5206\u306f\u597d\u304d\u306a\u6570\u5b57\u306b\u66f8\u304d\u63db\u3048\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<br>\u3000\u3082\u3061\u308d\u30930\u3067\u3082OK\u3067\u3059\u3002<br>\u3000hostname\u306e\u90e8\u5206\u306f\u4ed6\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<br>\u3000\u307e\u305f\u3001.1.3.6.1.4.1.2021.8.1.101.1 \u306e\u90e8\u5206\u3092 .1.3.6.1.4.1.2021.8.1.101.2 \u306b\u66f8\u304d\u63db\u3048\u308c\u3070\u6e29\u5ea6\u306e\u53d6\u5f97\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p>snmp\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u306e\u53d6\u5f97\u8a2d\u5b9a\u3092\u884c\u3048\u3070\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u53d6\u5f97\u3067\u304d\u308b\u5024\u306f<br>snmp\u6a19\u6e96\u306e\u5024\u3067\u306a\u304f\u3066\u3082\u53d6\u5f97\u53ef\u80fd\u306b\u306a\u308b\u306e\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u53d6\u5f97\u3067\u304d\u308b\u6b86\u3069\u306e\u5024\u306fsnmp\u7d4c\u7531\u3067\u9001\u4fe1\u53ef\u80fd\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u524d\u7d39\u4ecb\u3057\u305f\u30e1\u30fc\u30eb\u5bfe\u5fdc\u306e\u8a2d\u5b9a\u30b5\u30f3\u30d7\u30eb\u3092\u6539\u9020\u3057\u305f\u3082\u306e\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>### fan rpm info NAS-HIRO ####<\/p>\n\n\n\n<p>Options[fan_nashiro]: gauge,growright,nopercent,unknaszero<br>MaxBytes[fan_nashiro]: 3700<br>ThreshMaxI[fan_nashiro]: 3000<br>SetEnv[fan_nashiro]: EMAIL=&#8221;yourmail@yourdomain.com&#8221;<br>URL=&#8221;http:\/\/your url\/temp_nashiro.html&#8221;<br>YLegend[fan_nashiro]: Fan RPM<br>ShortLegend[fan_nashiro]: rpm<br>LegendI[fan_nashiro]:RPM<br>LegendO[fan_nashiro]:fastline<br>Unscaled[fan_nashiro]: ymwd<\/p>\n\n\n\n<p>Target[fan_nashiro]: `snmpwalk -v 1 -c public 192.168.x.x .1.3.6.1.4.1.2021.8.1.101.1 | awk &#8216;{print $4} {print &#8220;2640&#8221;} {print &#8220;NAS-HIRO&#8221;}&#8217;`<br>Title[fan_nashiro]: Fan RPM Information<br>PageTop[fan_nashiro]:<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Fan RPM Information on NAS-HIRO<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>System:<\/td><td>NAS-HIRO<\/td><\/tr><tr><td>Maintainer:<\/td><td>Root<\/td><\/tr><tr><td>Ip:<\/td><td>192.168.x.x<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>### temp info NAS-HIRO ####<\/p>\n\n\n\n<p>Options[temp_nashiro]: gauge,growright,nopercent,unknaszero<br>MaxBytes[temp_nashiro]: 75<br>ThreshMaxI[temp_nashiro]: 50<br>SetEnv[temp_nashiro]: EMAIL=&#8221;yourmail@yourdomain.com&#8221;<br>URL=&#8221;http:\/\/your url\/temp_nashiro.html&#8221;<br>YLegend[temp_nashiro]: Temperature<br>ShortLegend[temp_nashiro]: C-deg<br>LegendI[temp_nashiro]:TEMP<br>LegendO[temp_nashiro]:borderline<br>Unscaled[temp_nashiro]: ymwd<\/p>\n\n\n\n<p>Target[temp_nashiro]: `snmpwalk -v 1 -c public 192.168.x.x .1.3.6.1.4.1.2021.8.1.101.2 | awk &#8216;{print $4} {print &#8220;55&#8221;} {print &#8220;NAS-HIRO&#8221;}&#8217;`<br>Title[temp_nashiro]: Temperature Information<br>PageTop[temp_nashiro]:<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Temperature Information on NAS-HIRO<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>System:<\/td><td>NAS-HIRO<\/td><\/tr><tr><td>Maintainer:<\/td><td>Root<\/td><\/tr><tr><td>Ip:<\/td><td>192.168.x.x<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4ed6\u30b5\u30fc\u30d0\u30fc\u306eCPU\u4f7f\u7528\u7387\u3084\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u7387\u306f\u4ed6\u30b5\u30fc\u30d0\u30fc\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fsnmp\u7d4c\u7531\u3067\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002\u3057\u304b\u3057\u6e29\u5ea6\u3084FAN\u56de\u8ee2\u6570\u306a\u3069\u306fsnmp\u3067\u306f\u6a19\u6e96\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u51fa\u6765\u308c\u3070\u6e29\u5ea6\u76e3\u8996\u3001FAN\u76e3\u8996\u3082\u4e00\u7dd2\u306b\u3084\u3063\u3066\u304a\u304d\u305f &hellip; <a href=\"https:\/\/hiro7216.mydns.jp\/blog\/?p=29\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u4ed6\u30b5\u30fc\u30d0\u30fc\u306e\u6e29\u5ea6\u3001FAN\u3092\u76e3\u8996\u3059\u308b<\/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":[2,287],"tags":[166],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-linkstation","category-nas","tag-linkstation"],"_links":{"self":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":0,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}