{"id":142,"date":"2015-11-03T15:02:33","date_gmt":"2015-11-03T15:02:33","guid":{"rendered":"http:\/\/luliserver.com.ar\/?p=142"},"modified":"2023-12-19T23:42:52","modified_gmt":"2023-12-20T02:42:52","slug":"problemas-para-graficar-interfaces-en-cacti","status":"publish","type":"post","link":"http:\/\/luliserver.com.ar\/?p=142","title":{"rendered":"Problemas para Graficar Interfaces en Cacti"},"content":{"rendered":"<p>Hoy me levante y dije hoy va a ser un buen d\u00eda. Y as\u00ed fue, soluciones sencillas para trabajos sencillos.<br \/>\nInstalamos a todas nuestras m\u00e1quinas virtuales el servicio SNMP para poder graficarlo con <a href=\"http:\/\/www.cacti.net\/\" target=\"_blank\" rel=\"noopener\">cacti<\/a>.<\/p>\n<p>En el caso particular de las VM con Debian, no lograba que cacti grafique las interfaces. Por esto me puse a investigar:<\/p>\n<pre>cat \/etc\/snmp\/snmpd.conf | egrep -v \"^\\s*(#|$)\"\r\nagentAddress udp:161\r\n<strong>view   systemonly  included   .1.3.6.1.2.1.1<\/strong>\r\nview   systemonly  included   .1.3.6.1.2.1.25.1\r\n rocommunity public  default    -V systemonly\r\n rocommunity6 public  default   -V systemonly\r\n rouser   authOnlyUser\r\nsysLocation    ID Department\r\nsysContact     Pablo Gabriel Savoia &lt;psavoia@mail&gt;\r\nsysServices    72\r\nproc  mountd\r\nproc  ntalkd    4\r\nproc  sendmail 10 1\r\ndisk       \/     10000\r\ndisk       \/var  5%\r\nincludeAllDisks  10%\r\nload   12 10 5\r\n trapsink     localhost public\r\niquerySecName   internalUser\r\nrouser          internalUser\r\ndefaultMonitors          yes\r\nlinkUpDownNotifications  yes\r\n extend    test1   \/bin\/echo  Hello, world!\r\n extend-sh test2   echo Hello, world! ; echo Hi there ; exit 35\r\n master          agentx<\/pre>\n<p>El OID (Object Identifiers) <a href=\"http:\/\/www.alvestrand.no\/objectid\/1.3.6.1.2.1.1.html\" target=\"_blank\" rel=\"noopener\">.1.3.6.1.2.1.1<\/a> no contiene la informaci\u00f3n de las interfaces:<\/p>\n<p><span style=\"text-decoration: underline;\">Subsidiary references (single level)<\/span><\/p>\n<ul>\n<li>1.3.6.1.2.1.1.1 &#8211; sysDescr<\/li>\n<li>1.3.6.1.2.1.1.2 &#8211; sysObjectID<\/li>\n<li>1.3.6.1.2.1.1.3 &#8211; sysUpTime<\/li>\n<li>1.3.6.1.2.1.1.4 &#8211; sysContact<\/li>\n<li>1.3.6.1.2.1.1.5 &#8211; sysName<\/li>\n<li>1.3.6.1.2.1.1.6 &#8211; sysLocation<\/li>\n<li>1.3.6.1.2.1.1.7 &#8211; sysServices<\/li>\n<\/ul>\n<p>Por esto es que hay que ir a un nivel superior, quitando <code>.1<\/code> quedando <code>.1.3.6.1.2.1<\/code><\/p>\n<blockquote><p>Fuentes:<br \/>\n<a href=\"http:\/\/www.cacti.net\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.cacti.net\/<\/a><br \/>\n<a href=\"https:\/\/easyitstuff.wordpress.com\/2012\/03\/02\/why-cacti-doesnt-capture-snmp-interface-data\/\" target=\"_blank\" rel=\"noopener\">https:\/\/easyitstuff.wordpress.com\/2012\/03\/02\/why-cacti-doesnt-capture-snmp-interface-data\/<\/a><br \/>\n<a href=\"http:\/\/easysnmp.com\/resources\/tutorial\/index.html\" target=\"_blank\" rel=\"noopener\">http:\/\/easysnmp.com\/resources\/tutorial\/index.html<\/a><br \/>\n<a href=\"http:\/\/www.alvestrand.no\/objectid\/1.3.6.1.2.1.1.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.alvestrand.no\/objectid\/1.3.6.1.2.1.1.html<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Hoy me levante y dije hoy va a ser un buen d\u00eda. Y as\u00ed fue, soluciones sencillas para trabajos sencillos. Instalamos a todas nuestras m\u00e1quinas virtuales el servicio SNMP para poder graficarlo con cacti. En el caso particular de las<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[15,2],"tags":[24,69,71,70],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-bash","category-scripts","tag-bash","tag-cacti","tag-oid","tag-snmp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Ixc0-2i","_links":{"self":[{"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/142"}],"collection":[{"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=142"}],"version-history":[{"count":6,"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":446,"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions\/446"}],"wp:attachment":[{"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/luliserver.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}