hmLoadTopic({
hmKeywords:"snmp,snmp service configuration,snmp trap service,snmp trap software configuration",
hmTitle:"How to configure an SNMP Trap Service",
hmDescription:"To successfully receive SNMP messages, the SNMP trap service needs to be configured. Follow the configuration steps below as appropriate for your operating system:",
hmPrevLink:"admin_ntf_distribution.html",
hmNextLink:"fs_post_installation_tasks.html",
hmParentLink:"admin_ntf_notifications.html",
hmBreadCrumbs:"<a href=\"using.html\">Using ESET PROTECT On-Prem<\/a> &gt; <a href=\"working_with_era.html\">ESET PROTECT On-Prem Main Menu<\/a> &gt; <a href=\"admin_ntf_notifications.html\">Notifications<\/a>",
hmTitlePath:"Using ESET PROTECT On-Prem > ESET PROTECT On-Prem Main Menu > Notifications > How to configure an SNMP Trap Service",
hmHeader:"<h1 class=\"p_Heading1\"><span class=\"f_Heading1\">How to configure an SNMP Trap Service<\/span><\/h1>\n\r",
hmBody:"<p class=\"p_Normal\">To successfully receive SNMP messages, the SNMP trap service needs to be configured. Follow the configuration steps below as appropriate for your operating system:<\/p>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Windows<\/span><\/h2>\n\r<h3 class=\"p_Heading3\" style=\"page-break-after: avoid;\"><span class=\"f_Heading3\">Prerequisites<\/span><\/h3>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 13px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"font-family: Arial,\'Lucida Sans Unicode\',\'Lucida Grande\',\'Lucida Sans\';display:inline-block;width:13px;margin-left:-13px\">&#8226;<\/span><span class=\"f_NormalList\">The <\/span><span class=\"f_UI\">Simple Network Management Protocol<\/span><span class=\"f_NormalList\"> service must be installed on the machine where ESET PROTECT Server is installed, as well as on the machine where the SNMP trap software will be installed.<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 13px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"font-family: Arial,\'Lucida Sans Unicode\',\'Lucida Grande\',\'Lucida Sans\';display:inline-block;width:13px;margin-left:-13px\">&#8226;<\/span><span class=\"f_NormalList\">Both computers (above) should be in the same subnet.<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 32px; margin-left: 0;\"><span class=\"f_NormalList\" style=\"font-family: Arial,\'Lucida Sans Unicode\',\'Lucida Grande\',\'Lucida Sans\';display:inline-block;width:13px;margin-left:-13px\">&#8226;<\/span>The SNMP Service must be configured on the ESET PROTECT Server computer.<\/p>\n\r<h3 class=\"p_Heading3\" style=\"page-break-after: avoid;\"><span class=\"f_Heading3\">SNMP Service configuration (ESET PROTECT Server)<\/span><\/h3>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">1.<\/span><span class=\"f_NormalList\">Press the Windows key + R to open a run dialog box, type <\/span><span class=\"f_Term\">Services.msc<\/span><span class=\"f_NormalList\"> into the <\/span><span class=\"f_UI\">Open<\/span><span class=\"f_NormalList\"> field and press <\/span><span class=\"f_UI\">Enter<\/span><span class=\"f_NormalList\">. Search for the SNMP Service.<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">2.<\/span><span class=\"f_NormalList\">Open the <\/span><span class=\"f_UI\">Traps<\/span><span class=\"f_NormalList\"> tab, type <\/span><span class=\"f_UI\">public<\/span><span class=\"f_NormalList\"> into the <\/span><span class=\"f_UI\">Community name<\/span><span class=\"f_NormalList\"> field and click <\/span><span class=\"f_UI\">Add to list<\/span><span class=\"f_NormalList\">.<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">3.<\/span><span class=\"f_NormalList\">Click <\/span><span class=\"f_UI\">Add<\/span><span class=\"f_NormalList\">, type the <\/span><span class=\"f_UI\">Hostname, IP or IPX address<\/span><span class=\"f_NormalList\"> of the computer where the SNMP trapping software is installed into the appropriate field and click <\/span><span class=\"f_UI\">Add<\/span><span class=\"f_NormalList\">.<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">4.<\/span><span class=\"f_NormalList\">Proceed to the <\/span><span class=\"f_UI\">Security<\/span><span class=\"f_NormalList\"> tab. Click <\/span><span class=\"f_UI\">Add<\/span><span class=\"f_NormalList\"> to display the <\/span><span class=\"f_UI\">SNMP Service Configuration<\/span><span class=\"f_NormalList\"> window. Type <\/span><span class=\"f_UI\">public<\/span><span class=\"f_NormalList\"> into the <\/span><span class=\"f_UI\">Community name<\/span><span class=\"f_NormalList\"> field and click <\/span><span class=\"f_UI\">Add<\/span><span class=\"f_NormalList\">. Rights will be set to <\/span><span class=\"f_UI\">READ ONLY<\/span><span class=\"f_NormalList\">, this is ok.<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 39px; margin-left: 0;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">5.<\/span>Ensure that <span class=\"f_UI\">Accept SNMP packets from any hosts<\/span> is selected and click <span class=\"f_UI\">OK<\/span> to confirm. The SNMP service is not configured.<\/p>\n\r<h3 class=\"p_Heading3\" style=\"page-break-after: avoid;\"><span class=\"f_Heading3\">SNMP Trap Software configuration (Client)<\/span><\/h3>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">1.<\/span><span class=\"f_NormalList\">Ensure that the SNMP Service is installed on the client machine.<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">2.<\/span><span class=\"f_NormalList\">Install a trap receiver application.<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">3.<\/span><span class=\"f_NormalList\">Configure the trap receiver application to receive SNMP traps from the ESET PROTECT Server (this can include ESET PROTECT Server IP address and port settings).<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">4.<\/span><span class=\"f_NormalList\">Ensure that the firewall on client machines allows network communication for SNMP communication set in the previous step.<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 39px; margin-left: 0;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">5.<\/span>The trap receiver application now allows you to receive messages from the ESET PROTECT Server.<\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 10px 0;\"><table class=\"Table_note\" >\n\r<tr class=\"Table_note\">\n\r<td class=\"Table_note\" style=\"width:4px; background-color:#3DAAE1;\"><br \/>\n\r<\/td>\n\r<td class=\"Table_note\" style=\"width:20px;\"><p class=\"p_Normal\"><img alt=\"Note\" title=\"Note\" width=\"20\" height=\"20\" style=\"margin:2px 0 0 0;width:20px;height:20px;border:none\" src=\".\/images\/note.svg\"\/><\/p>\n\r<\/td>\n\r<td class=\"Table_note\"><p class=\"p_Normal\">SNMP Trap is not supported in the ESET PROTECT Virtual Appliance.<\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Linux<\/span><\/h2>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">1.<\/span>Install the snmpd package by running one of the following commands:<br \/>\n\r<span class=\"f_CodeHighlighted\">apt-get install snmpd snmp<\/span> (Debian, Ubuntu distributions)<br \/>\n\r<span class=\"f_CodeHighlighted\">yum install net-snmp<\/span> (Red Hat)<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">2.<\/span>Open the <span class=\"f_Path\">\/etc\/default\/snmpd<\/span> file and make the following attribute edits:<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">#SNMPDOPTS=\'-Lsd&nbsp;-Lf&nbsp;\/dev\/null&nbsp;-u&nbsp;snmp&nbsp;-g&nbsp;snmp&nbsp;-I&nbsp;-smux&nbsp;-p&nbsp;\/var\/run\/snmpd.pid\'<\/span><\/p>\n\r<p class=\"p_Normal\">Adding <span class=\"f_Term\"># <\/span>will disable this line completely.<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">SNMPDOPTS=\'-Lsd&nbsp;-Lf&nbsp;\/dev\/null&nbsp;-u&nbsp;snmp&nbsp;-I&nbsp;-smux&nbsp;-p&nbsp;\/var\/run\/snmpd.pid&nbsp;-c&nbsp;\/etc\/snmp\/snmpd.conf\'<\/span><\/p>\n\r<p class=\"p_Normal\">Add this line to the file.<\/p>\n\r<p class=\"p_Normal\"><span class=\"f_CodeHighlighted\">TRAPDRUN=yes<\/span><br \/>\n\rChange the <span class=\"f_Term\">trapdrun<\/span> attribute to <span class=\"f_Term\">yes<\/span>.<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">3.<\/span>Create a backup of the original <span class=\"f_Term\">snmpd.conf<\/span> file. The file will be edited later.<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">mv&nbsp;\/etc\/snmp\/snmpd.conf&nbsp;\/etc\/snmp\/snmpd.conf.original<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">4.<\/span>Create a new <span class=\"f_Term\">snmpd.conf<\/span> file and add these lines:<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">rocommunity&nbsp;public<\/span><br \/>\n\r<span class=\"f_CodeHighlighted\">syslocation&nbsp;&quot;Testing&nbsp;ESET&nbsp;PROTECT&nbsp;On-Prem&quot;<\/span><br \/>\n\r<span class=\"f_CodeHighlighted\">syscontact&nbsp;administrator@eset_protect.com<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">5.<\/span>Open the <span class=\"f_Path\">\/etc\/snmp\/snmptrapd.conf<\/span> file and add the following line at the end of the file:<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">authCommunity&nbsp;log,execute,net&nbsp;public<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">6.<\/span>Type the following command to start the SNMP manager services and logging of incoming traps:<\/p>\n\r<p class=\"p_Normal\" style=\"margin: 0 0 10px 26px;\"><span class=\"f_CodeHighlighted\">\/etc\/init.d\/snmpd restart<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"margin: 0 0 10px 26px;\">or<\/p>\n\r<p class=\"p_Normal\" style=\"margin: 0 0 10px 26px;\"><span class=\"f_CodeHighlighted\">service snmpd restart<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">7.<\/span>To check if the trap is working and catching the messages, run the following command:<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">tail&nbsp;-f&nbsp;\/var\/log\/syslog&nbsp;|&nbsp;grep&nbsp;-i&nbsp;TRAP<\/span><\/p>\n\r"
})
