{"id":258,"date":"2013-11-08T11:47:32","date_gmt":"2013-11-08T02:47:32","guid":{"rendered":"http:\/\/www.otwo.jp\/blog\/?p=258"},"modified":"2017-09-11T17:28:40","modified_gmt":"2017-09-11T08:28:40","slug":"growthforecast","status":"publish","type":"post","link":"https:\/\/www.otwo.jp\/blog\/growthforecast\/","title":{"rendered":"GrowthForecast\u3067\u793e\u5185\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u306e\u76e3\u8996\u3092\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u3053\u3093\u3061\u306f\uff01\u958b\u767a2\u90e8\u306e\u5409\u5ca1\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001\u958b\u767a\u30b9\u30bf\u30c3\u30d5\u304c\u3069\u3093\u3069\u3093\u5897\u3048\u3066\u3044\u308b\u305b\u3044\u304b\u3001\u793e\u5185LAN\u304c\u4e0d\u5b89\u5b9a\u3067\u3059\u2026<\/p>\n<p>\u539f\u56e0\u306f\u826f\u304f\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3069\u3063\u304b\u3067LAN\u304c\u30eb\u30fc\u30d7\u3057\u3066\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u30b9\u30c8\u30fc\u30e0\u304c\u767a\u751f\u3057\u3066\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u3044\u3046\u7591\u3044\u304c\u3002<\/p>\n<p>\u3069\u3046\u3057\u305f\u3082\u3093\u304b\u3068\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u793e\u5185Linux\u30b5\u30fc\u30d0\u30fc\u3067\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u30d1\u30b1\u30c3\u30c8\u6570\u3092\u76e3\u8996\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u3001\u306a\u3093\u3068\u304b\u306a\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u3002<\/p>\n<p>\u305d\u3053\u3067\u524d\u3005\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305fGrowthForecast\u3092\u4f7f\u3063\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<!--more--><\/p>\n<h1>GrowthForecast\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p><a href=\"http:\/\/www.otwo.jp\/blog\/studysession\/server\/\">\u30b5\u30fc\u30d0\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u52c9\u5f37\u4f1a<\/a>\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u30af\u30e9\u30a6\u30c9\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u306f\u3001\u307b\u307c\u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u306e\u307e\u307e\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/blog.inouetakuya.info\/entry\/20130211\/1360570283\">GrowthForecast \u3092 CentOS 6.3 \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066 Supervisor \u3067\u7ba1\u7406\u3057\u3066\u307f\u305f<\/a><\/p>\n<h2>\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"brush: bash\r; notranslate\"># yum install pkgconfig glib2-devel gettext libxml2-devel pango-devel cairo-devel\r\n<\/pre>\n<h2>\u8868\u793a\u7528\u30d5\u30a9\u30f3\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"brush: bash\r; notranslate\"># yum install bitmap-console-fonts\r\n<\/pre>\n<h2>\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0<\/h2>\n<pre class=\"brush: bash\r; notranslate\"># useradd growthforecast\r\n# passwd growthforecast\r\n<\/pre>\n<h2>Perlbrew\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"brush: bash\r; notranslate\"># su - growthforecast\r\n$ curl -kL http:\/\/install.perlbrew.pl | bash\r\n$ echo '[[ -s \"$HOME\/perl5\/perlbrew\/etc\/bashrc\" ]] &amp;&amp; source \"$HOME\/perl5\/perlbrew\/etc\/bashrc\"' &gt;&gt; .bash_profile\r\n$ source $HOME\/perl5\/perlbrew\/etc\/bashrc\uff08\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u8aad\u8fbc\uff09\r\n<\/pre>\n<h2>perl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"brush: bash\r; notranslate\">$ perlbrew install perl-5.18.1\r\n$ perlbrew switch perl-5.18.1\r\n$ perl -v\uff08\u30d0\u30fc\u30b8\u30e7\u30f3\u304c 5.18.1 \u306b\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\uff09\r\n<\/pre>\n<h2>cpanm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"brush: bash\r; notranslate\">$ perlbrew install-cpanm\r\n<\/pre>\n<h2>GrowthForecast\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"brush: bash\r; notranslate\">$ cpanm -n GrowthForecast\r\n<\/pre>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210<\/h2>\n<pre class=\"brush: bash\r; notranslate\">$ mkdir \/home\/growthforecast\/data\r\n$ mkdir \/home\/growthforecast\/log\r\n<\/pre>\n<h2>\u8d77\u52d5<\/h2>\n<pre class=\"brush: bash\r; notranslate\">$ growthforecast.pl --port=5125 --data-dir=\/home\/growthforecast\/data &gt; \/home\/growthforecast\/log\/growthforecast.log 2&gt; \/home\/growthforecast\/log\/growthforecast.err &amp;\r\n<\/pre>\n<h1>\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b<\/h1>\n<p>\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u306e\u30d1\u30b1\u30c3\u30c8\u6570\u306f<a href=\"http:\/\/serverfault.com\/questions\/522253\/linux-network-interface-broadcast-statistics\">\u3053\u3061\u3089<\/a>\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3059\u308b\u3068<\/p>\n<pre><code>ethtool -S \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u540d\r\n<\/code><\/pre>\n<p>\u3067\u3001\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u5b9f\u884c\u7d50\u679c\u306e\u4e2d\u3067\u300crx_bcast_packets\u300d\u3068\u8a00\u3046\u306e\u304c\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u306e\u30d1\u30b1\u30c3\u30c8\u306e\u3088\u3046\u306a\u306e\u3067\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash\r; notranslate\">\/sbin\/ethtool -S eth1 | \/bin\/awk '$1 ~ \/rx_bcast_packets\/ { print $2 }\r\n<\/pre>\n<p>\u3061\u306a\u307f\u306b\u624b\u5143\u306evagrant\u74b0\u5883(CentOS6.4)\u3067\u306f\u3001\u300crx_bcast_packets\u300d\u3067\u306f\u306a\u304f\u300crx_broadcast\u300d\u3067\u3057\u305f\u2026<\/p>\n<h1>GrowthForecast\u306b\u5024\u3092\u6e21\u3059<\/h1>\n<p>GrowthForecast\u306b\u5024\u3092\u53cd\u6620\u3055\u305b\u308b\u306e\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067http\u3067\u5024\u3092\u6e21\u3057\u3066\u3084\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash\r; notranslate\">curl -F number=\u6e21\u3057\u305f\u3044\u5024 http:\/\/\u30b5\u30fc\u30d0\u30fcIP\u30a2\u30c9\u30ec\u30b9:5125\/api\/lanmanager\/broadcast\/packet\r\n<\/pre>\n<p>\u306a\u306e\u3067\u3001crontab\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4ed5\u8fbc\u3093\u3067\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash\r; notranslate\">*\/5 * * * * curl -F number=`\/sbin\/ethtool -S eth1 | \/bin\/awk '$1 ~ \/rx_bcast_packets\/ { print $2 }'` http:\/\/\u30b5\u30fc\u30d0\u30fcIP\u30a2\u30c9\u30ec\u30b9:5125\/api\/lanmanager\/broadcast\/packet\r\n<\/pre>\n<p>\u3053\u308c\u3067\u30015\u5206\u306b1\u56de\u3001\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u306e\u30d1\u30b1\u30c3\u30c8\u5024\u304cGrowthForecast\u306b\u9001\u4fe1\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h1>\u30b0\u30e9\u30d5\u3092\u78ba\u8a8d\u3059\u308b<\/h1>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u300chttp:\/\/\u30b5\u30fc\u30d0\u30fcIP\u30a2\u30c9\u30ec\u30b9:5125\/\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b0\u30e9\u30d5\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" alt=\"GrowthForecast\" src=\"http:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2013\/11\/465f20e5705d27139e6d8bd78463e50e.png\" \/><\/p>\n<p>\u3067\u3001\u4eca\u56de\u306f\u3001\u30d1\u30b1\u30c3\u30c8\u91cf\u306e\u5897\u6e1b\u3092\u898b\u305f\u3044\u306e\u3067\u3001\u300csetting\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3001\u300cmode\u300d\u3092\u300csubstract\u300d\uff08\u5dee\u5206\uff09\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h1>\u7d50\u679c<\/h1>\n<p>\u4eca\u306e\u3068\u3053\u308d\u3001\u6025\u6fc0\u306b\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u304c\u5897\u3048\u308b\u73fe\u8c61\u306f\u89b3\u6e2c\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\uff08\u3061\u3087\u3063\u3068\u30b0\u30e9\u30d5\u306b\u30b9\u30d1\u30a4\u30af\u304c\u73fe\u308c\u305f\u308a\u3059\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5e73\u548c\u306a\u65e5\u3005\u3092\u904e\u3054\u3057\u3066\u3044\u307e\u3059\u2026)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u3061\u306f\uff01\u958b\u767a2\u90e8\u306e\u5409\u5ca1\u3067\u3059\u3002 \u6700\u8fd1\u3001\u958b\u767a\u30b9\u30bf\u30c3\u30d5\u304c\u3069\u3093\u3069\u3093\u5897\u3048\u3066\u3044\u308b\u305b\u3044\u304b\u3001\u793e\u5185LAN\u304c\u4e0d\u5b89\u5b9a\u3067\u3059\u2026 \u539f\u56e0\u306f\u826f\u304f\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3069\u3063\u304b\u3067LAN\u304c\u30eb\u30fc\u30d7\u3057\u3066\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u30b9\u30c8\u30fc\u30e0\u304c\u767a\u751f\u3057\u3066\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u3044\u3046\u7591\u3044\u304c [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":287,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[107],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/258"}],"collection":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":11,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":935,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/258\/revisions\/935"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/media\/287"}],"wp:attachment":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}