{"id":661,"date":"2016-03-14T10:33:08","date_gmt":"2016-03-14T09:33:08","guid":{"rendered":""},"modified":"2018-10-31T22:13:49","modified_gmt":"2018-10-31T21:13:49","slug":"how-configure-snmp-client-linux-server-debian","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/how-configure-snmp-client-linux-server-debian\/","title":{"rendered":"How to configure SNMP client on Linux server (Debian like)"},"content":{"rendered":"<p>\n\tThe article describes just the simplest running configuration and how to run SNMPd agent on Linux OS.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tFirstly, we need to install SNMP deamon<\/p>\n<pre>\r\napt-get install snmpd<\/pre>\n<p>\n\tThen backup config file and create new<\/p>\n<pre>\r\nmv \/etc\/snmp\/snmpd.conf  \/etc\/snmp\/snmpd.conf.orig\r\ntouch \/etc\/snmp\/snmpd.conf<\/pre>\n<p>\n\tWrite basic information into the new \/etc\/snmp\/snmpd.conf file<\/p>\n<pre>\r\nrocommunity  public_string\r\nsyslocation  Server room\r\nsyscontact  admin@email.com<\/pre>\n<p>\n\tNote: the file have to be precisely named snmpd.conf, other name, for example snmp.conf does not work<\/p>\n<p>\n\tThen edit \/etc\/default\/snmpd for new configuration file and set listen on all interfaces<\/p>\n<p>\n\tChange line from:<\/p>\n<pre>\r\n# snmpd options (use syslog, close stdin\/out\/err).\r\nSNMPDOPTS=&#39;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid 127.0.0.1&#39;\r\n<\/pre>\n<p>\n\tTo:<\/p>\n<pre>\r\n# snmpd options (use syslog, close stdin\/out\/err).\r\n#SNMPDOPTS=&#39;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid 127.0.0.1&#39;\r\nSNMPDOPTS=&#39;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid -c \/etc\/snmp\/snmpd.conf&#39;<\/pre>\n<p>\n\tAs a last step, restart SNMP daemon:<\/p>\n<pre>\r\n\/etc\/init.d\/snmpd restart<\/pre>","protected":false},"excerpt":{"rendered":"<p>\n\tThe article describes just the simplest running configuration and how to run SNMPd agent on Linux OS.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tFirstly, we need to install SNMP deamon<\/p>\n<pre>\r\napt-get install snmpd<\/pre>\n<p>\n\tThen backup config file and create new<\/p>\n<pre>\r\nmv \/etc\/snmp\/snmpd.conf  \/etc\/snmp\/snmpd.conf.orig\r\ntouch \/etc\/snmp\/snmpd.conf<\/pre>\n<p>\n\tWrite basic information into the new \/etc\/snmp\/snmpd.conf file<\/p>","protected":false},"author":15668,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[693],"tags":[],"class_list":["post-661","post","type-post","status-publish","format-standard","hentry","category-monitoring-management-measurement-snmp"],"taxonomy_info":{"category":[{"value":693,"label":"SNMP"}]},"featured_image_src_large":false,"author_info":{"display_name":"","author_link":"https:\/\/nil.uniza.sk\/en\/author\/"},"comment_info":38,"category_info":[{"term_id":693,"name":"SNMP","slug":"monitoring-management-measurement-snmp","term_group":0,"term_taxonomy_id":691,"taxonomy":"category","description":"","parent":687,"count":1,"filter":"raw","cat_ID":693,"category_count":1,"category_description":"","cat_name":"SNMP","category_nicename":"monitoring-management-measurement-snmp","category_parent":687}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/15668"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=661"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/661\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}