{"id":893,"date":"2012-01-23T11:29:42","date_gmt":"2012-01-23T16:29:42","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=893"},"modified":"2012-01-23T11:29:42","modified_gmt":"2012-01-23T16:29:42","slug":"snmp-daemon-ubuntu","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2012\/01\/snmp-daemon-ubuntu\/","title":{"rendered":"SNMP Daemon Ubuntu"},"content":{"rendered":"<p>Ubuntu 10.04.3 LTS x32 fully patched.<\/p>\n<p>I needed to install SNMP so my cacti installation could work with graphing. And I thought I had already installed SNMP on the server I was testing against.<\/p>\n<p>Testing from cacti:<br \/>\n<code>snmpwalk -v 1 -c public IPOFSERVER<\/code><\/p>\n<blockquote><p>Timeout: No Response from IPOFSERVER<\/p><\/blockquote>\n<p>OK, so let me see if the process is running:<br \/>\n<code>ps aux | grep snmp<\/code><\/p>\n<blockquote><p>root      439193  0.0  0.0   3884   616 pts\/0    S+   09:59   0:00 grep snmp<\/p><\/blockquote>\n<p>Well, looks like I need to install it:<br \/>\n<code>apt-get install snmpd<\/code><\/p>\n<p>The installation auto-starts the snmpd service with the default configuration file.  I verified it was working with ps aux again, and the snmpd service is running under the snmp user.<br \/>\nOn the local machine I could now run snmpwalk:<br \/>\n<code>snmpwalk -v 1 -c public localhost<\/code><br \/>\nWhich retrieved the information I wanted.  Unfortunately I still could not run snmpwalk from the cacti server.  Doh!<\/p>\n<p>Edit the snmpd.conf file if you want a different community or RO\/RW rights:<br \/>\n<code>nano \/etc\/snmp\/snmpd.conf<\/code><\/p>\n<p>Otherwise, just edit the default snmpd configuration:<br \/>\n<code>nano \/etc\/default\/snmpd<\/code><br \/>\nChange the following line:<\/p>\n<blockquote><p>SNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid 127.0.0.1&#8242;<\/p><\/blockquote>\n<p>To:<\/p>\n<blockquote><p>SNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid -c \/etc\/snmp\/snmpd.conf&#8217;<\/p><\/blockquote>\n<p>Save and quit<\/p>\n<p>Restart the snmpd service:<br \/>\n<code>\/etc\/init.d\/snmpd restart<\/code><\/p>\n<p>Test again:<br \/>\n<code>snmpwalk -v 1 -c public IPOFSERVER<\/code><\/p>\n<p>Profit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 10.04.3 LTS x32 fully patched. I needed to install SNMP so my cacti installation could work with graphing. And I thought I had already installed SNMP on the server I was testing against. Testing from cacti: snmpwalk -v 1 -c public IPOFSERVER Timeout: No Response from IPOFSERVER OK, so let me see if the &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2012\/01\/snmp-daemon-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SNMP Daemon Ubuntu<\/span> <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":[7],"tags":[],"class_list":["post-893","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=893"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/893\/revisions\/894"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}