{"id":2232,"date":"2012-11-10T23:19:29","date_gmt":"2012-11-10T14:19:29","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=2232"},"modified":"2012-11-10T23:20:06","modified_gmt":"2012-11-10T14:20:06","slug":"munin%e7%94%a8communigate-pro%e7%9b%a3%e8%a6%96%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/2232","title":{"rendered":"munin\u7528CommuniGate Pro\u76e3\u8996\u30d7\u30e9\u30b0\u30a4\u30f3\u30b5\u30f3\u30d7\u30eb"},"content":{"rendered":"<p><strong>\u25a0munin\u7528CommuniGate Pro\u76e3\u8996\u30d7\u30e9\u30b0\u30a4\u30f3\u30b5\u30f3\u30d7\u30eb<\/strong><br \/>\n\u3000CommuniGate Pro\u306e\u5404\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30b5\u30f3\u30d7\u30eb\u3002net-snmp\u3068CommuniGate Pro\u5074\u306esnmp\u30b5\u30fc\u30d0\u8a2d\u5b9a\u304c\u5fc5\u9808\u3002OS\u5074\u306esnmp\u8a2d\u5b9a\u3068\u91cd\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306bCGP\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u5909\u66f4\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306f \u30db\u30b9\u30c8IP:\u30dd\u30fc\u30c8\u756a\u53f7 \u3067\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<p>\u25a0\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u6210\u3059\u308b<br \/>\n# vi \/etc\/munin\/plugins\/cgp_active<br \/>\n\u4ee5\u4e0b<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>       # ___WARNING=10000<\/p>\n<p>       echo &#8216;graph_title CGP Active Sessions&#8217;<br \/>\n       echo &#8220;graph_args -l 0&#8221;<br \/>\n       echo &#8216;graph_vlabel CGP Active Sessions&#8217;<br \/>\n       echo &#8216;graph_info This graph shows CGP Active Sessions&#8217;<br \/>\n       echo &#8216;graph_category CGP&#8217;<\/p>\n<p>       echo &#8216;sip_server.label SIP Server&#8217;<br \/>\n       echo &#8216;sip_server.draw LINE2&#8217;<br \/>\n       echo &#8220;sip_server.info SIP Server&#8221;<\/p>\n<p>       echo &#8216;sip_clients.label SIP Clients&#8217;<br \/>\n       echo &#8216;sip_clients.draw LINE2&#8217;<br \/>\n       echo &#8220;sip_clients.info SIP Clients&#8221;<\/p>\n<p>       echo &#8216;sip_act.label SIP Con&#8217;<br \/>\n       echo &#8216;sip_act.draw LINE2&#8217;<br \/>\n       echo &#8220;sip_act.info SIP Con&#8221;<\/p>\n<p>       echo &#8216;media_act.label Media Ch&#8217;<br \/>\n       echo &#8216;media_act.draw LINE2&#8217;<br \/>\n       echo &#8220;media_act.info Media Ch&#8221;<\/p>\n<p>       echo &#8216;media_leg.label Media Leg&#8217;<br \/>\n       echo &#8216;media_leg.draw LINE2&#8217;<br \/>\n       echo &#8220;media_leg.info Media Leg&#8221;<\/p>\n<p>       echo &#8216;prox_act.label Proxy&#8217;<br \/>\n       echo &#8216;prox_act.draw LINE2&#8217;<br \/>\n       echo &#8220;prox_act.info Proxy&#8221;<\/p>\n<p>       echo &#8216;ximss.label XIMSS&#8217;<br \/>\n       echo &#8216;ximss.draw LINE2&#8217;<br \/>\n       echo &#8220;ximss.info XIMSS&#8221;<\/p>\n<p>       echo &#8216;airsync.label AirSync&#8217;<br \/>\n       echo &#8216;airsync.draw LINE2&#8217;<br \/>\n       echo &#8220;airsync.info AirSync&#8221;<\/p>\n<p>       exit 0<br \/>\nfi<\/p>\n<p>       echo -n &#8220;sip_server.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.1.2.2.1 | awk &#8216;{ print $4 }&#8217;<\/p>\n<p>       echo -n &#8220;sip_clients.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.1.2.3.1 | awk &#8216;{ print $4 }&#8217;<\/p>\n<p>       echo -n &#8220;sip_act.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.1.2.1.41 | awk &#8216;{ print $4 }&#8217;<\/p>\n<p>       echo -n &#8220;media_act.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.15.1 | awk &#8216;{ print $4 }&#8217;<\/p>\n<p>       echo -n &#8220;media_leg.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.15.21 | awk &#8216;{ print $4 }&#8217;<\/p>\n<p>       echo -n &#8220;prox_act.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.7.1 | awk &#8216;{ print $4 }&#8217;<\/p>\n<p>       echo -n &#8220;ximss.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.1.10.1 | awk &#8216;{ print $4 }&#8217;<\/p>\n<p>       echo -n &#8220;airsync.value &#8221;<br \/>\n       snmpwalk -v 2c -c password 192.168.0.xxx 1.3.6.1.4.1.5678.2.1.1.15.1 | awk &#8216;{ print $4 }&#8217;<br \/>\n[\/code]<\/p>\n<p>\u25a0\u5024\u304c\u53d6\u5f97\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<br \/>\n# cd \/etc\/munin\/plugins\/<br \/>\n# munin-run cgp_active<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0munin\u7528CommuniGate Pro\u76e3\u8996\u30d7\u30e9\u30b0\u30a4\u30f3\u30b5\u30f3\u30d7\u30eb \u3000CommuniGate Pro\u306e\u5404\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30b5\u30f3\u30d7\u30eb\u3002net-snmp\u3068CommuniGate Pro\u5074\u306esnmp\u30b5 &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/2232\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;munin\u7528CommuniGate Pro\u76e3\u8996\u30d7\u30e9\u30b0\u30a4\u30f3\u30b5\u30f3\u30d7\u30eb&#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,42],"class_list":["post-2232","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-communigate","tag-munin","tag-snmp"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2232","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=2232"}],"version-history":[{"count":2,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2232\/revisions"}],"predecessor-version":[{"id":2236,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2232\/revisions\/2236"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=2232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=2232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=2232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}