Yes I did restart snmpd. Output of netstat -na | grep agentx: unix 2 [ ACC ] STREAM LISTENING 5018 /var/agentx/master
I added "respawn root /usr/lib/heartbeat/hbagent -d" to the ha.cf If I start it manually I get the following output: lha-snmpagent[3825]: 2009/04/17_08:39:49 debug: PID=3825 lha-snmpagent[3825]: 2009/04/17_08:39:49 debug: Signing in with heartbeat lha-snmpagent[3825]: 2009/04/17_08:39:51 info: node 1: xxx.xxx.xxx.xxx, type: ping, status: ping lha-snmpagent[3825]: 2009/04/17_08:39:52 info: node 2: mail2, type: normal, status: active lha-snmpagent[3825]: 2009/04/17_08:39:53 info: node 3: mail1, type: normal, status: active lha-snmpagent[3825]: 2009/04/17_08:39:54 info: node: xxx.xxx.xxx.xxx, interface: xxx.xxx.xxx.xxx, status: up lha-snmpagent[3825]: 2009/04/17_08:39:55 info: node: mail2, interface: eth1, status: up lha-snmpagent[3825]: 2009/04/17_08:39:55 info: node: mail2, interface: eth1, status: up lha-snmpagent[3825]: 2009/04/17_08:39:55 info: node: mail2, interface: eth0, status: up lha-snmpagent[3825]: 2009/04/17_08:39:55 info: node: mail2, interface: eth0, status: up lha-snmpagent[3825]: 2009/04/17_08:39:56 info: node: mail1, interface: eth1, status: up lha-snmpagent[3825]: 2009/04/17_08:39:56 info: node: mail1, interface: eth1, status: up lha-snmpagent[3825]: 2009/04/17_08:39:56 info: node: mail1, interface: eth0, status: up lha-snmpagent[3825]: 2009/04/17_08:39:57 info: node: mail1, interface: eth0, status: up lha-snmpagent[3825]: 2009/04/17_08:39:57 info: g_hash_table_insert hd = [0x9879138] lha-snmpagent[3825]: 2009/04/17_08:39:57 ERROR: oc_ev_activate error [1] lha-snmpagent[3825]: 2009/04/17_08:39:57 debug: Membership service currently not available. Will try again later. errno [2] lha-snmpagent[3825]: 2009/04/17_08:39:57 ERROR: CIB connection signon failed. lha-snmpagent[3825]: 2009/04/17_08:39:57 ERROR: init_cib() failed. Output of ps uax | grep hbagent: root 3841 0.0 0.0 4164 720 pts/0 R+ 08:51 0:00 grep hbagent Snmp itself works. Part of output of snmpwalk -v1 -c<community> <hostname> system SNMPv2-MIB::sysDescr.0 = STRING: Linux mail2 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 snmpwalk -v1 -c<community> <hostname> enterprises.4682 is not giving any output. snmpwalk -v1 -c<community> -mLINUX-HA-MIB <host> enterprises.4682 is also not giving any output. But the MIB is in the right folder. If I use "snmptranslate -m +LINUX-HA-MIB -IR -On LHAMembershipChange" I get the output: .1.3.6.1.4.1.4682.900.5 2009/4/16, Michael Schwartzkopff <[email protected]>: > Am Donnerstag, 16. April 2009 13:48:43 schrieb elziege7: > > Hello! > > > > I have succesfully configured HA with DRBD on two servers (Debian Lenny). > > Now I would like to monitor HA with snmp, but it is not working. > > > > I have followed the manual and changed the snmpd.conf according to the > > manual (master agentx, trap2sink ....). > Did you restart the snmpd? What does > netstat -na | grep agentx > tell you? Is agentx really listening? > > > But the problem is that snmpwalk fails with the follwing error message: > > > > LinuxHA: Unknown Object Identifier (b-id not found: (top) -> LinuxHA) > Did you start the Linux-HA SNMP subagent? Something like > /usr/lib/heartbeat/hbagent -d > Or did you respawn it through the ha.cf? What is the output of ps uax | grep > hbagent? > > > The MIB ist in the directory /usr/share/snmp/mibs and hbagent is in the > > directory /usr/lib/heartbeat as it should be. > Does snmp really work? Is the output of > snmpwalk -v1 -c<community> <hostname> system > resonable? Now you can check the subagent: > snmpwalk -v1 -c<community> <hostname> enterprises.4682 > Does it answer somehow? > Now you add the MIB to your request: > snmpwalk -v1 -c<community> -mLINUX-HA-MIB <host> enterprises.4682 > > Now go on and read about SNMP how to make the MIB persistant. > > -- > Dr. Michael Schwartzkopff > MultiNET Services GmbH > Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany > Tel: +49 - 89 - 45 69 11 0 > Fax: +49 - 89 - 45 69 11 21 > mob: +49 - 174 - 343 28 75 > > mail: [email protected] > web: www.multinet.de > > Sitz der Gesellschaft: 85630 Grasbrunn > Registergericht: Amtsgericht München HRB 114375 > Geschäftsführer: Günter Jurgeneit, Hubert Martens > > --- > > PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B > Skype: misch42 > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
