View Issue Details

IDProjectCategoryView StatusLast Update
0015114CentOS-7net-snmppublic2018-08-02 10:20
ReporterFengChen 
PrioritynormalSeverityminorReproducibilitysometimes
Status newResolutionopen 
PlatformLinuxOSCentOSOS Version7.5
Product Version7.5.1804 
Target VersionFixed in Version 
Summary0015114: snmpd cannot listen ports except default
Descriptionwhen add
OPTIONS="udp:21001 -LS0-6d"
to /etc/sysconfig/snmpd, it cannot listen to udp:21001 or other ports
5.7.2-28 in CentOS7.4 is normal
5.7.2-33 is abnormal
TagsNo tags attached.
abrt_hash
URL

Activities

pgreco

pgreco

2018-07-28 11:26

developer   ~0032379

can you post the result of ls -l /etc/sysconfig/snmpd, and pgrep -a snmpd ?
TrevorH

TrevorH

2018-07-28 13:38

manager   ~0032380

Also, does it work after running `setenforce 0` to put selinux into permissive mode? If it does then it sounds like you need to use semanage to add a port definition to allow it to work.
FengChen

FengChen

2018-07-29 11:34

reporter   ~0032385

OPTIONS="udp:21001 -LS0-6d"
Only One line
pgreco

pgreco

2018-07-29 12:47

developer   ~0032386

@FengChen
I asked about pgrep (to see if your options were passed to snmpd)
and ls of the file (to see if it was a problem with permissions)
and then @TrevorH asked another test (about selinux, to account for another set of permissions)
FengChen

FengChen

2018-07-30 02:01

reporter   ~0032390

pgrep -a snmpd
21385 /usr/sbin/snmpd udp:21001 -LS0-6d -f
FengChen

FengChen

2018-07-30 02:03

reporter   ~0032391

ls -l /etc/sysconfig/snmpd
-re-r--r--, 1 root root 111 Jul 12 14.03 snmpd
pgreco

pgreco

2018-08-02 10:20

developer   ~0032419

Ok, we can see that the arguments are passed to the service, no problem there.
Were you able to test what @TrevorH asked?

Issue History

Date Modified Username Field Change
2018-07-28 05:39 FengChen New Issue
2018-07-28 11:26 pgreco Note Added: 0032379
2018-07-28 13:38 TrevorH Note Added: 0032380
2018-07-29 11:34 FengChen Note Added: 0032385
2018-07-29 12:47 pgreco Note Added: 0032386
2018-07-30 02:01 FengChen Note Added: 0032390
2018-07-30 02:03 FengChen Note Added: 0032391
2018-08-02 10:20 pgreco Note Added: 0032419