{"id":58,"date":"2009-07-03T15:45:24","date_gmt":"2009-07-03T14:45:24","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=58"},"modified":"2010-04-26T17:32:24","modified_gmt":"2010-04-26T16:32:24","slug":"setup-mrtg-to-monitor-qos-policies","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=58","title":{"rendered":"Setup MRTG to monitor QoS Policies"},"content":{"rendered":"<p>NOTE: investigate &#8220;<a href=\"http:\/\/darenmatthews.com\/blog\/?p=865\">snmp mib persistant<\/a>&#8221; command on IOS.<\/p>\n<p>here is a &#8220;how to&#8221; for monitoring QoS with MRTG:<!--more--><\/p>\n<p>Firstly of course, install MRTG on system (follow instructions www.mrtg.org)<\/p>\n<p><strong>Do a snmpwalk of ifDescr to get all interfaces<\/strong>:<br \/>\n&#8211; Make note of the number following ifDescr.xx for the interface that is desired to be monitored.<\/p>\n<p><strong>Do a snmpwalk of cbQoSIfIndex<\/strong> (oid = 1.3.6.1.4.1.9.9.166.1.1.1.1.4) to get the list of \u2018logical\u2019 interface for which a policy map is assigned.<\/p>\n<p><em>Example:\u00a0 a Serial interface 5\/2:0 mapped to 1549<\/em>:<\/p>\n<p>IF-MIB::ifDescr.<strong>16<\/strong> = Serial5\/2:0<br \/>\nSNMPv2-SMI::enterprises.9.9.166.1.1.1.1.4.1549 = 1<\/p>\n<p><strong>Do a snmpwalk of cbQoSCMCfgEntry<\/strong> (oid = 1.3.6.1.4.1.9.9.166.1.7.1.1) to get the arbitrary numbers that are assigned to the configured class-maps on the router.<\/p>\n<p><strong>Do a snmpwalk of cbQosConfigIndex <\/strong>(oid=1.3.6.1.4.1.9.9.166.1.5.1.1.2).\u00a0 This will return the arbitrary number combination of the interface ID and the Class map.<\/p>\n<p><em>NOTE: This generates a long list, so maybe pipe this toa text file, enabling easy searching.<\/em><\/p>\n<p>Continuing this example, to find the OID to watch with MRTG, to monitor the CM-Scavenger class map on Serial 5\/2:0, would want to scroll in the text file to the lines starting with:\u00a0 .1.3.6.1.4.1.9.9.166.1.5.1.1.2.1549.xxxx = yyyy<\/p>\n<p><strong> Then look for a yyyy value of 1091<\/strong><\/p>\n<p>From above example:<br \/>\n.1.3.6.1.4.1.9.9.166.1.5.1.1.2.1549.1613 = 1091<br \/>\nThe OID is that would be added into the MRTG Configuration file.<br \/>\n.1.3.6.1.4.1.9.9.166.1.15.1.1.11.1549.1613<br \/>\nThe last 2 values in the oid are taken from the previous snmpwalk<\/p>\n<p><strong>Example of MRTG Configuration file for example above:<\/strong><\/p>\n<p>EnableIPv6: no<br \/>\nWorkDir: \/var\/www\/html\/mrtg\/test<br \/>\nOptions[_]: bits,growright<br \/>\nRunAsDaemon: Yes<br \/>\n######################################################<br \/>\n# Utilisation report for 10.31.254.253<br \/>\n######################################################<\/p>\n<p>Target[Default]:1.3.6.1.4.1.9.9.166.1.15.1.1.11.1549.1613&amp;1.3.6.1.4.1.9.9.166.1.15.1.1.11.1549.1613:public@127.0.0.1<br \/>\nMaxBytes[default]: 100<br \/>\nLegendI[default]: In<br \/>\nLegendO[default]: Out<br \/>\nTitle[default]: Scavenger Utilization report for 127.0.0.1<br \/>\nBackground[default]: #FFFFFF<br \/>\nPageTop[default]: &lt;h1&gt;&lt;B&gt; Scavenger Utilization Class Usage Analysis for 127.0.0.1 Interface 5\/2:0&lt;\/b&gt;&lt;\/h1&gt;<br \/>\n&lt;br&gt;&lt;font face=&#8217;Arial&#8217; size=2&gt;Link Description\u00a0 : Serial 5\/2:0<br \/>\n&lt;br&gt;&lt;font face=&#8217;Arial&#8217; size=2&gt;Device\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 127.0.0.1<br \/>\n&lt;br&gt;&lt;font face=&#8217;Arial&#8217; size=2&gt;Speed\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : T1<br \/>\n&lt;br&gt;&lt;font face=&#8217;Arial&#8217; size=2&gt;System Location\u00a0\u00a0 :<br \/>\n&lt;br&gt;&lt;font face=&#8217;Arial&#8217; size=2&gt;System Description:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: investigate &#8220;snmp mib persistant&#8221; command on IOS. here is a &#8220;how to&#8221; for monitoring QoS with MRTG:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[3,82],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/58"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":4,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":868,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions\/868"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}