Keepalived loses contact with snmpd when snmpd restarts
Tom Limoncelli <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <CAHVFxgkFH5jM96dDtDEjExaF=A2rog7zmD9MkyM++bQNjENUcA@mail.gmail.com> |
I'm just starting to experiment with enabling SNMP on keepalived (the "-x" option) and I'm seeing some strangeness. In particular, sometimes snmpd loses contact with keepalived and all SNMP requests are rejected. I've narrowed the problem down to the following situation: keepalived has to start after snmpd. If you restart snmpd, SNMP queries related to keepalived fail until keepalived is restarted. Simply reloading snmpd doesn't have this problem. Here's a session where I demonstrate the problem: # # snmpwalk -v2c -c public localhost KEEPALIVED-MIB::vrrpInstanceTable KEEPALIVED-MIB::vrrpInstanceName.1 = STRING: VI_V4_LO ...(good output)... # service snmpd reload <<< RELOAD WORKS FINE Reloading snmpd: [ OK ] # snmpwalk -v2c -c public localhost KEEPALIVED-MIB::vrrpInstanceTable KEEPALIVED-MIB::vrrpInstanceName.1 = STRING: VI_V4_LO ...(good output)... # service snmpd restart <<< RESTART... NOW WE'LL HAVE TROUBLE Stopping snmpd: [ OK ] Starting snmpd: [ OK ] # snmpwalk -v2c -c public localhost KEEPALIVED-MIB::vrrpInstanceTable KEEPALIVED-MIB::vrrpInstanceTable = No Such Object available on this agent at this OID # snmpwalk -v2c -c public localhost KEEPALIVED-MIB::vrrpInstanceTable KEEPALIVED-MIB::vrrpInstanceTable = No Such Object available on this agent at this OID # service keepalived restart <<< RESTART KEEKALIVED TO FIX Stopping keepalived: [ OK ] Starting keepalived: [ OK ] # snmpwalk -v2c -c public localhost KEEPALIVED-MIB::vrrpInstanceTable KEEPALIVED-MIB::vrrpInstanceName.1 = STRING: VI_V4_LO ...(good output)... # # # cat /etc/redhat-release CentOS release 6.6 (Final) # keepalived --version Keepalived v1.2.13 (03/19,2015) # snmpd --version NET-SNMP version: 5.5 Web: http://www.net-snmp.org/ Email: [email protected] Sadly the fix is to restart keepalived. If the host is master, the system transitions to being BACKUP. Can anyone else reproduce this situation? is there a fix or workaround? Thanks! Tom -- Email: [email protected] Work: [email protected] Skype: YesThatTom Blog: http://EverythingSysadmin.com ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel