{"id":618,"date":"2010-11-08T11:56:28","date_gmt":"2010-11-08T16:56:28","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=618"},"modified":"2010-11-08T11:56:28","modified_gmt":"2010-11-08T16:56:28","slug":"add-snmp-to-ubuntu","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2010\/11\/add-snmp-to-ubuntu\/","title":{"rendered":"Add SNMP To Ubuntu"},"content":{"rendered":"<p>I was trying to add an HP printer to the mix and the printer is trying to utilize the service &#8220;check_hpjd&#8221;.  Unfortunately, on my Ubuntu installation, the plugin was not installed in \/usr\/local\/nagios\/libexec.<\/p>\n<p>A short amount of research showed that I had failed to install the required SNMP tools to utilize this plugin.  And, because I actually installed Nagios and the plugins from the source rather than binaries, the configuration and make checked to see if the required tools would be available before actually installing them.<\/p>\n<p>Long story short, here&#8217;s what I ended up doing (apt-get install net-snmp does not work):<br \/>\n<code>apt-get install libsnmp-base libsnmp-python libsnmp15-dbg libsnmp-dev libsnmp-perl libsnmp15 snmp snmpd tkmib<\/code><\/p>\n<p>Edit the SNMPD configuration:<br \/>\n<code>mv \/etc\/snmp\/snmpd.conf \/etc\/snmp\/snmpd.conf.org<br \/>\nnano \/etc\/snmp\/snmpd.conf<\/code><\/p>\n<blockquote><p>rocommunity\tpublic<br \/>\nsyslocation\t&#8220;USA&#8221;<br \/>\nsyscontact\tmyemail@domain.tld<br \/>\nSave and Close<\/p><\/blockquote>\n<p>Edit the SNMPD Daemon:<br \/>\n<code>nano \/etc\/default\/snmpd<\/code><\/p>\n<blockquote><p>Change &#8220;SNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid 127.0.0.1&#8242;&#8221;<br \/>\nTo &#8220;SNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid -c \/etc\/snmp\/snmpd.conf'&#8221;<\/p><\/blockquote>\n<p>Restart the SNMPD service:<br \/>\n<code>\/etc\/init.d\/snmpd restart<\/code><\/p>\n<p>Test the SNMP:<br \/>\n<code>snmpwalk -v 1 -c public -O e host\/IPaddress<\/code><br \/>\nYou should get some sort of feedback<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to add an HP printer to the mix and the printer is trying to utilize the service &#8220;check_hpjd&#8221;. Unfortunately, on my Ubuntu installation, the plugin was not installed in \/usr\/local\/nagios\/libexec. A short amount of research showed that I had failed to install the required SNMP tools to utilize this plugin. And, because &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2010\/11\/add-snmp-to-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Add SNMP To 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-618","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/618","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=618"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/618\/revisions"}],"predecessor-version":[{"id":619,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/618\/revisions\/619"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}