SNMPD setup

Issues related to configuring your network
Post Reply
panpanbebe
Posts: 15
Joined: 2018/12/10 21:28:57

SNMPD setup

Post by panpanbebe » 2018/12/21 14:40:13

Does anyone know how to setup SNMP V2 on CentOS? I am trying to set it up so my Solarwinds can talk to CentOS VM. Even I followed the steps I am still getting this error from the shell

[root@982834-CR43-35C-AnalyticsWorker-2 snmp]# snmpwalk -v 1 -c public -O e 127.0.0.1
Timeout: No Response from 127.0.0.1

[root@982834-CR43-35C-AnalyticsWorker-2 snmp]# cat /etc/snmp/snmpd.conf
rocommunity public
syslocation here
syscontact root@localhost

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SNMPD setup

Post by TrevorH » 2018/12/21 14:48:13

Did you (re)start snmpd?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

panpanbebe
Posts: 15
Joined: 2018/12/10 21:28:57

Re: SNMPD setup

Post by panpanbebe » 2018/12/21 14:50:44

yes, with command

systemctl restart snmpd

panpanbebe
Posts: 15
Joined: 2018/12/10 21:28:57

Re: SNMPD setup

Post by panpanbebe » 2018/12/21 14:51:43

here is my out put of netstat

[root@982834-CR43-35C-AnalyticsWorker-2 snmp]# netstat -lnp | grep snmpd
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 62078/snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:* 62078/snmpd

panpanbebe
Posts: 15
Joined: 2018/12/10 21:28:57

Re: SNMPD setup

Post by panpanbebe » 2018/12/21 17:59:16

Still getting no response from localhost

[root@982834-CR43-35C-AnalyticsWorker-2 ~]# snmpwalk -v 2c -c public localhost
Timeout: No Response from localhost

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: SNMPD setup

Post by aks » 2018/12/26 07:21:36

Why is the tcp version of snmp listening on port 199 (unless I'm cross eyed)? Usually it's port 161.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SNMPD setup

Post by TrevorH » 2018/12/26 14:59:31

It's a different part of the service. Perhaps https://bugzilla.redhat.com/show_bug.cgi?id=110931 (ancient!) might help explain it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply