[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-users
Subject:    RE: SNMP is listening on the wrong transport protocol and the wrong
From:       jregovic () rego ! org
Date:       2016-04-29 15:46:53
Message-ID: 20160429084653.feb4017efaa820d231aba3d713490455.0746cd94d0.mailapi () email14 ! godaddy ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Does your snmdp.conf use 'agentaddress udp:161' to set the listening port?


Having snmpd also listening on TCP 161 is mostly benign, but it looks like you don't \
have the correct option set.  
-
Jim
 
--------- Original Message --------- Subject: SNMP is listening on the wrong \
                transport protocol and the wrong
From: "Juan Torres" <HISJTo@mail.cho.org>
Date: 4/28/16 4:25 pm
To: net-snmp-users@lists.sourceforge.net, "Chris Benjamin" <HISCBe@mail.cho.org>, \
"Juan Torres" <HISJTo@mail.cho.org>

  Support,
 
 Hi,
 
I have RHEL 7.2, CentOS 7.x and SUSE 11.x and all of them have the same problem with \
the SNMP protocol. I need to make the SNMP talk UDP:161 and turn down the TCP:199.
 
# netstat -tulpn | grep snmp
tcp 0 0 0.0.0.0:161 0.0.0.0:* LISTEN 18702/snmpd
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 18702/snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:* 18702/snmpd
 
-------------------------------------------------------------------------------------------------------
 Troubleshoot so far...
/etc/services
          #snmp            161/tcp                         # Simple Net Mgmt Proto  
          #smux            199/tcp                         # SNMP Unix Multiplexer
          #smux            199/udp

/etc/sysconfig/snmpd
          OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -I -smuxsocket -x \
:161"

/etc/snmp/snmpd.conf
          smuxsocket  1.0.0.0
          snmpd udp::161
          rocommunity public 172.31.64.0/22
 
# netstat -lnp | grep snmp
tcp        0      0 0.0.0.0:161             0.0.0.0:*               LISTEN      \
3901/snmpd udp        0      0 0.0.0.0:161             0.0.0.0:*                      \
3901/snmpd

 

It still not working!!!!
 
 

 Juan Torres,  MCs
Sr Server Engineer
UCSF Benioff Children's Hospital Oakland
 747 52nd Street
 Oakland, CA 94609
hisjto@mail.cho.org
Mobile: 386.478.8599
Home  : 386.847.3150
E-Fax  : 510.985.2255


 CONFIDENTIALITY NOTICE: This electronic message (and any attachments) is intended to \
be for the use only of the named recipient, and may contain information that is \
confidential or privileged. If you are not the intended recipient, you are hereby \
notified that any disclosure, copying, distribution or use of the contents of this \
message is strictly prohibited. If you have received this message in error or are not \
the named recipient, please notify us immediately by contacting the sender at the \
electronic mail address noted above, and delete and destroy all copies of this \
message (and any attachments). Thank you.

------------------------------------------------------------------------------ Find \
and fix application performance issues faster with Applications Manager Applications \
Manager provides deep performance insights into multiple tiers of your business \
applications. It resolves application problems quickly and reduces your MTTR. Get \
your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________ \
Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the \
following page to unsubscribe or change other options: \
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


[Attachment #5 (unknown)]

<div>Does your snmdp.conf use '<span class="s1">agentaddress udp:161' to set the \
listening port?</span><br /><span style="font-family: 'Courier New'; font-size: \
13.3333px; background-color: #ffffff;"><br /></span></div> <div><span \
class="s1">Having snmpd also listening on TCP 161 is mostly benign, but it looks like \
you don't have the correct option set.</span></div> <div>&nbsp;</div>
<div><span class="s1">-</span></div>
<div><span class="s1">Jim</span></div>
<div>&nbsp;</div>
<blockquote class="threadBlockQuote" style="border-left: 2px solid #C2C2C2; \
padding-left: 3px; margin-left: 4px;">--------- Original Message --------- \
<div>Subject: SNMP is listening on the wrong transport protocol and the wrong<br \
/>From: "Juan Torres" &lt;HISJTo@mail.cho.org&gt;<br />Date: 4/28/16 4:25 pm<br />To: \
net-snmp-users@lists.sourceforge.net, "Chris Benjamin" &lt;HISCBe@mail.cho.org&gt;, \
"Juan Torres" &lt;HISJTo@mail.cho.org&gt;<br /><br /> <div \
id="GroupWiseSection_1461878334000_HISJTo@mail.cho.org_85FB4E0009E500008163686F63326461_" \
class="GroupWiseMessageBody"> <div><span style="font-family: 'Courier \
New';">Support,</span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;</span></div> <div><!--StartFragment-->
<div><span style="font-family: 'Courier New';">Hi,</span></div>
<div><span style="font-family: 'Courier New';">&nbsp;</span></div>
<div><span style="font-family: 'Courier New';">I have RHEL 7.2, CentOS 7.x and SUSE \
11.x and all of them have the same problem with the SNMP protocol.</span></div> \
<div><span style="font-family: 'Courier New';">I need to make the SNMP talk UDP:161 \
and turn down the TCP:199.</span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;</span></div> <div><span style="font-family: 'Courier New';"># netstat \
-tulpn | grep snmp<br />tcp 0 0 0.0.0.0:161 0.0.0.0:* LISTEN 18702/snmpd<br />tcp 0 0 \
127.0.0.1:199 0.0.0.0:* LISTEN 18702/snmpd<br />udp 0 0 0.0.0.0:161 0.0.0.0:* \
18702/snmpd</span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;</span></div> <div><span style="font-family: 'Courier \
New';">-------------------------------------------------------------------------------------------------------</span></div>
 <div><span style="font-family: 'Courier New';">Troubleshoot so far...</span></div>
<div><span style="font-family: 'Courier New';">/etc/services</span></div>
<div><span style="font-family: 'Courier \
New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;#snmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \
161/tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
# Simple Net Mgmt Proto&nbsp; </span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
#smux&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
199/tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
# SNMP Unix Multiplexer<br \
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#smux&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
199/udp<br /></span></div> <div><span style="font-family: 'Courier \
New';">/etc/sysconfig/snmpd</span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OPTIONS="-Lsd -Lf \
/dev/null -p /var/run/snmpd.pid -a -I -smuxsocket -x :161"<br /></span></div> \
<div><span style="font-family: 'Courier New';">/etc/snmp/snmpd.conf</span></div> \
<div><span style="font-family: 'Courier \
New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; smuxsocket&nbsp; \
1.0.0.0</span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; snmpd \
udp::161</span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rocommunity public \
172.31.64.0/22</span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;</span></div> <div><span style="font-family: 'Courier New';"># netstat \
-lnp | grep snmp<br />tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 \
0.0.0.0:161&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3901/snmpd<br \
/>udp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 \
0.0.0.0:161&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
3901/snmpd<br /></span></div> <div><span style="font-family: 'Courier \
New';">&nbsp;</span></div> </div>
<div>It still not working!!!!</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<span style="padding-right: 0px; padding-left: 0px; margin-bottom: 5px; display: \
block;"><span style="padding-right: 0px; padding-left: 0px; margin-bottom: 5px; \
display: block;"><span style="display: block;"><br /></span></span></span> <div \
style="margin: 0in 0in 0pt;"><strong><span style="font-family: 'Cambria','serif'; \
font-size: 13.5pt;">Juan Torres,</span></strong><span style="font-size: 7.5pt;"><span \
style="mso-spacerun: yes;">&nbsp; </span>MCs</span></div> <div style="margin: 0in 0in \
0pt;"><em><span style="font-size: 10pt;">Sr Server Engineer</span></em></div> <div \
style="margin: 0in 0in 0pt;"><span style="font-size: 10pt;">UCSF Benioff Children's \
Hospital Oakland<br /> </span><span style="font-size: 7.5pt;">747 52nd Street<br /> \
Oakland, CA 94609</span></div> <div style="margin: 0in 0in 0pt;"><span \
style="text-decoration: underline;"><span style="color: blue; font-size: 10pt;"><a \
href="mailto:hisjto@mail.cho.org"><span style="color: \
#0000ff;">hisjto@mail.cho.org</span></a></span></span></div> <div style="margin: 0in \
0in 0pt;"><span style="font-size: 10pt;">Mobile: 386.478.8599</span></div> <div \
style="margin: 0in 0in 0pt;"><span style="font-size: 10pt;">Home<span \
style="mso-spacerun: yes;">&nbsp; </span>: 386.847.3150</span></div> <div \
style="margin: 0in 0in 0pt;"><span style="font-size: 10pt;">E-Fax<span \
style="mso-spacerun: yes;">&nbsp; </span>: 510.985.2255</span></div> <span \
style="margin-bottom: 5px; display: block;"><br /></span><br /> <div><span \
style="font-family: Tahoma; font-size: xx-small;">CONFIDENTIALITY NOTICE: This \
electronic message (and any attachments) is intended to be for the use only of the \
named recipient, and may contain information that is confidential or privileged. If \
you are not the intended recipient, you are hereby notified that any disclosure, \
copying, distribution or use of the contents of this message is strictly prohibited. \
If you have received this message in error or are not the named recipient, please \
notify us immediately by contacting the sender at the electronic mail address noted \
above, and delete and destroy all copies of this message (and any attachments). Thank \
you.</span></div> </div>
------------------------------------------------------------------------------ Find \
and fix application performance issues faster with Applications Manager Applications \
Manager provides deep performance insights into multiple tiers of your business \
applications. It resolves application problems quickly and reduces your MTTR. Get \
your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________ \
Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the \
following page to unsubscribe or change other options: \
https://lists.sourceforge.net/lists/listinfo/net-snmp-users</div> </blockquote>



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic