{"id":826,"date":"2012-11-15T00:41:23","date_gmt":"2012-11-14T16:41:23","guid":{"rendered":"http:\/\/blog.wallaceho.com\/?p=826"},"modified":"2014-05-27T16:48:32","modified_gmt":"2014-05-27T08:48:32","slug":"implement-mrtg-bandwidth-monitor-on-server-2012-wallaceho-com","status":"publish","type":"post","link":"https:\/\/blog.wallaceho.com\/?p=826","title":{"rendered":"Implement MRTG bandwidth monitor on Server 2012 @wallaceho.com"},"content":{"rendered":"<p>Previously I got the same installation on Linux system, it is much more easy to install on Linux than Windows as there is already some packages which has already configure and installed the prerequisites software. Somehow in Windows environment, there is no SNMP service started default and some of the configuration was not done automatically.<\/p>\n<p>First we need to install the PERL run-time first as the MRTG needs to be run on PERL script. For Example ActivePerl 5.8.8 from ActiveState <a href=\"http:\/\/www.activestate.com\/store\/activeperl\/download\/\">http:\/\/www.activestate.com\/store\/activeperl\/download\/<\/a><\/p>\n<p>After that we have to download the latest MRTG program source from <a href=\"http:\/\/oss.oetiker.ch\/mrtg\/pub\">http:\/\/oss.oetiker.ch\/mrtg\/pub<\/a><\/p>\n<p>Run the command &#8220;perl mrtg&#8221; to check whether the perl run-time installed properly.<\/p>\n<p><a href=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/perl.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-827\" title=\"perl\" src=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/perl.png\" alt=\"\" width=\"681\" height=\"298\" srcset=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/perl.png 681w, https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/perl-300x131.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/a><\/p>\n<p>Install SNMP service on the Windows 2012 server<\/p>\n<p><a href=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-828\" title=\"snmp\" src=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp.png\" alt=\"\" width=\"782\" height=\"390\" srcset=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp.png 782w, https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp-300x149.png 300w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p>Configure the SNMP security (Set value to READ ONLY) and community name<\/p>\n<p><a href=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-830\" title=\"snmp2\" src=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp2.png\" alt=\"\" width=\"419\" height=\"477\" srcset=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp2.png 419w, https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp2-263x300.png 263w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-831\" title=\"snmp3\" src=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp3.png\" alt=\"\" width=\"419\" height=\"477\" srcset=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp3.png 419w, https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/snmp3-263x300.png 263w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<p>Generate the config file by command\u00a0 &#8220;perl cfgmaker public@127.0.0.1 &#8211;global &#8220;WorkDir: D:\\Wallace&#8221; &#8211;output mrtg.cfg&#8221; *The 127.0.0.1 should be the SNMP device IP and the WorkDir is which the config file path that you wanna generate to.<\/p>\n<p>After that, a config file should be generated.<\/p>\n<p><a href=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/config.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-833\" title=\"config\" src=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/config.png\" alt=\"\" width=\"332\" height=\"236\" srcset=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/config.png 332w, https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/config-300x213.png 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/a><\/p>\n<p>Finally, run the command &#8220;perl mrtg mrtg.cfg&#8221; to run the mrtg program to generate those HTML and graphic files.<\/p>\n<p><a href=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/finally.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-834\" title=\"finally\" src=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/finally.png\" alt=\"\" width=\"972\" height=\"594\" srcset=\"https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/finally.png 972w, https:\/\/blog.wallaceho.com\/wp-content\/uploads\/2012\/11\/finally-300x183.png 300w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><\/a><\/p>\n<p>You may need to setup a schedule job to run the command in every 5 minutes interval.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previously I got the same installation on Linux system, it is much more easy to install on Linux than Windows as there is already some packages which has already configure and installed the prerequisites software. Somehow in Windows environment, there &hellip; <a href=\"https:\/\/blog.wallaceho.com\/?p=826\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-826","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts\/826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=826"}],"version-history":[{"count":11,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts\/826\/revisions"}],"predecessor-version":[{"id":869,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=\/wp\/v2\/posts\/826\/revisions\/869"}],"wp:attachment":[{"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wallaceho.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}