{"id":2090,"date":"2012-04-18T04:00:03","date_gmt":"2012-04-17T19:00:03","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=2090"},"modified":"2012-04-18T04:00:03","modified_gmt":"2012-04-17T19:00:03","slug":"communigate-pro%e3%81%ae%e7%a8%bc%e5%83%8d%e7%8a%b6%e6%b3%81%e3%82%92munin%e3%81%a7%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/2090","title":{"rendered":"CommuniGate Pro\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092munin\u3067\u76e3\u8996\u3059\u308b"},"content":{"rendered":"<p><strong>\u25a0CommuniGate Pro\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092munin\u3067\u76e3\u8996\u3059\u308b<\/strong><br \/>\n\u3000CommuniGate Pro\u306e\u7a3c\u50cd\u72b6\u614b\u3092munin\u3067\u76e3\u8996\u3059\u308b\u305f\u3081\u306e\u30e1\u30e2\u3002<a href=\"https:\/\/blog.isnext.net\/issy\/archives\/2087\">\u524d\u8a18\u4e8b<\/a>\u306e\u7d9a\u304d\u3002CommuniGate Pro\u3067\u306esnmp\u53d6\u5f97\u8a2d\u5b9a\u304c\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3059\u308b\u3002<\/p>\n<p><strong>\u25a0\u30b5\u30fc\u30d0\u8a2d\u5b9a<\/strong><br \/>\n\u3000snmpwalk\u3092\u4f7f\u7528\u53ef\u80fd\u306b\u3059\u308b<br \/>\n\u3000# yum install net-snmp-utils<br \/>\n\u3000CGP\u304b\u3089\u5024\u304c\u53d6\u5f97\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<br \/>\n\u3000# snmpwalk -v 2c -c password servername .1.3.6.1.4.1.5678.2<\/p>\n<p><strong>\u25a0script\u4f5c\u6210\u304b\u3089\u8a2d\u7f6e\u307e\u3067<\/strong><br \/>\n\u3000\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066CGP\u306e\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u53d6\u5f97\u3059\u308bscript\u3092\u4f5c\u6210\u3059\u308b<br \/>\n\u3000# cd \/usr\/share\/munin\/plugins\/<br \/>\n\u3000\u4ee5\u4e0b\u306escript\u3092\u4f5c\u6210<br \/>\n\u3000# vi cgp_threads<br \/>\n[code]<br \/>\n#!\/bin\/sh<\/p>\n<p>if [ &#8220;$1&#8221; = &#8220;autoconf&#8221; ]; then<br \/>\n        if [ -x \/usr\/bin\/snmpwalk ]; then<br \/>\n                echo yes<br \/>\n                exit 0<br \/>\n        else<br \/>\n                echo no<br \/>\n                exit 1<br \/>\n        fi<br \/>\nfi<\/p>\n<p>if [ &#8220;$1&#8221; = &#8220;config&#8221; ]; then<\/p>\n<p>        # THREADWARNING=200<\/p>\n<p>        echo &#8216;graph_title CGP Active Threads&#8217;<br \/>\n        echo &#8220;graph_args -l 0&#8221;<br \/>\n        echo &#8216;graph_vlabel CGP Active Threads&#8217;<br \/>\n        echo &#8216;graph_info This graph shows CGP Active Threads&#8217;<br \/>\n        echo &#8216;graph_category CGP&#8217;<\/p>\n<p>        echo &#8216;threads.label CGP Active Threads&#8217;<br \/>\n        echo &#8216;threads.draw LINE2&#8217;<br \/>\n        echo &#8220;threads.warning $THREADWARNING&#8221;<br \/>\n        echo &#8220;threads.info CGP Active Threads&#8221;<\/p>\n<p>        exit 0<br \/>\nfi<\/p>\n<p>        echo -n &#8220;threads.value &#8221;<br \/>\n        snmpwalk -v 2c -c password servername 1.3.6.1.4.1.5678.2.100.20 | awk &#8216;{ print $4 }&#8217;<br \/>\n[\/code]<br \/>\n\u3000\u5b9f\u884c\u6a29\u3092\u4ed8\u4e0e\u3059\u308b<br \/>\n\u3000# chmod +x cgp_threads<br \/>\n\u3000\u5024\u304c\u53d6\u5f97\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3059\u308b<br \/>\n\u3000# munin-run -servicedir \/usr\/share\/munin\/plugins\/ cgp_threads<br \/>\n\u3000\u5024\u304c\u53d6\u5f97\u3067\u304d\u308c\u3070\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u8a2d\u5b9a\u3059\u308b<br \/>\n\u3000# cd \/etc\/munin\/plugins\/<br \/>\n\u3000# ln -s \/usr\/share\/munin\/plugins\/cgp_threads cgp_threads<\/p>\n<p>\u3053\u308c\u3067\u5f8c\u306f\u30b0\u30e9\u30d5\u304c\u66f4\u65b0\u3055\u308c\u308b\u306e\u3092\u5f85\u3066\u3070\u3088\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0CommuniGate Pro\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092munin\u3067\u76e3\u8996\u3059\u308b \u3000CommuniGate Pro\u306e\u7a3c\u50cd\u72b6\u614b\u3092munin\u3067\u76e3\u8996\u3059\u308b\u305f\u3081\u306e\u30e1\u30e2\u3002\u524d\u8a18\u4e8b\u306e\u7d9a\u304d\u3002CommuniGate Pro\u3067\u306esnmp\u53d6\u5f97\u8a2d\u5b9a\u304c\u3067\u304d\u3066\u3044\u308b\u3053 &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/2090\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CommuniGate Pro\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092munin\u3067\u76e3\u8996\u3059\u308b&#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":[20,21,28,123,42],"class_list":["post-2090","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-communigate","tag-munin","tag-scientific","tag-snmp"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2090","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=2090"}],"version-history":[{"count":1,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2090\/revisions"}],"predecessor-version":[{"id":2091,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2090\/revisions\/2091"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=2090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=2090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=2090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}