I recently cloned a centos 6.5 virtual machine from one location to
another. In the process, the IP and netmask of the system changed. For
awhile after the clone everything seemed to work fine, and then
suddenly SNMP monitoring stopped working.
I restarted the snmp service - the restart succeeded but snmpwalks and
remote snmp monitoring still didn't work. I rebooted my VM and
everything resumed working, until a few hours later when SNMP stopped
again.
Rebooting helps for awhile, but then snmpwalks take longer and longer
until they simply don't complete at all.
Here's my /etc/snmp/snmpd.conf file:
rocommunity supersecret
syslocation "Our Location"
syscontact [email protected]
disk / 10% # list / (root) disk
#includeAllDisks 10% # list all disks
master agentx
I've tried:
- Turning off iptables
- Disabling selinux
- Uninstalling and Re-installing VMware tools
- Uninstalling and Re-installing the NIC
- Doing the SNMPWALK with 127.0.0.1 as well as the internal DNS name,
and internal IP
- Removing masterx
If I stop the snmpd service and instead start it from the cli as:
/usr/sbin/snmpd -f -Lo -C --rwcommunity=supersecret --master=agentx
snmpwalks work just fine
If I start the service back up - failures. So clearly something about
snmpd starting as a service vs interactively is the key but I'm at a
loss as to what that might be.
Can anyone provide any suggestions or ideas for what else I might check?
Thanks
Brad
Additional Details:
- I'm using net-snmp version 5.5 (from the default centos repository).
- I can also ping my gateway, other devices, and other devices can
ping me so this doesn't appear to be a network connectivity issue.
0 netstat -anp shows the snmpd running and listening:
udp 126408 0 0.0.0.0:161 0.0.0.0:*
22958/snmpd
unix 2 [ ] STREAM CONNECTED 2937161
22958/snmpd /var/agentx/master
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users