[Linux-HA] Problem to start hbagent

Lienard Anne (SII) Anne.Lienard at thomson.net
Tue Jul 8 03:43:29 MDT 2008


 

I installed the 2.0.6 version with the patch to enables snmp_subagent to work without CRM.
I've no more problems to start hbagent, now :-).

But after configuring snmpd: I get the following error when I start snmpwalk:

 

rot# snmpwalk -v2c localhost -c public LinuxHA

LINUX-HA-MIB::LinuxHA = No more variables left in this MIB View (It is past the end of the MIB tree)

 

Do you know what this error means?

 

Maybe somethink wrong in snmpd configuration?

 

I added these lines in snmpd.conf:

 

# create a SNMPv1/SNMPv2 community

rwcommunity  public

 

# this makes the snmpd a master snmp agent, which can

# support AgentX subagents.

master agentx

 

# this defines your localhost as the trapsink.  so traps

# or rather the SNMPv2 informs, will be sent to localhost.

trap2sink localhost

 

I restarted snmpd service and I can see agentx with netstat command:

 

netstat -nlp --protocol unix

Active UNIX domain sockets (only servers)

Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path

unix  2      [ ACC ]     STREAM     LISTENING     11835  3730/xfs            /tmp/.font-unix/fs7100

unix  2      [ ACC ]     STREAM     LISTENING     11711  3592/snmpd          /var/agentx/master

unix  2      [ ACC ]     STREAM     LISTENING     11259  3437/ha_logd: read  /var/lib/log_daemon

unix  2      [ ACC ]     STREAM     LISTENING     11940  3777/hald           @/var/run/hald/dbus-Dx0GpDNJFp

unix  2      [ ACC ]     STREAM     LISTENING     11080  3224/python         /var/run/audit_events

unix  2      [ ACC ]     STREAM     LISTENING     11093  3367/dbus-daemon    /var/run/dbus/system_bus_socket

unix  2      [ ACC ]     STREAM     LISTENING     11202  3418/acpid          /var/run/acpid.socket

unix  2      [ ACC ]     STREAM     LISTENING     11624  3568/heartbeat: mas /var/run/heartbeat/register

unix  2      [ ACC ]     STREAM     LISTENING     11939  3777/hald           @/var/run/hald/dbus-KKdKRqghSy

unix  2      [ ACC ]     STREAM     LISTENING     11742  3677/gpm            /dev/gpmctl

 

 

Thank you,

Anne

 

-----Message d'origine-----
De : linux-ha-bounces at lists.linux-ha.org [mailto:linux-ha-bounces at lists.linux-ha.org] De la part de Lienard Anne (SII)
Envoyé : lundi 7 juillet 2008 12:09
À : General Linux-HA mailing list
Objet : RE: [Linux-HA] Problem to start hbagent

 

Hello,

 

 

 

I've tried to modify linux-ha hbagent.c to disable v2 functions access. But I still can't access to the MIB by snmpwalk...

 

 

 

I think I have only two issues: 

 

- upgrade to linux-ha v2 style 

 

- or used heartbeat old linux-ha version

 

 

 

Did someone test the patch described here (http://lists.community.tummy.com/pipermail/linux-ha-dev/2006-July/013261.html): it enables snmp_subagent to work without CRM, ... but it can only be applied on 2.0.6 version...

 

 

 

Thank you for your responses ... or any other suggestions.

 

Anne 

 

      

 

 

 

 

 

-----Message d'origine-----

De : linux-ha-bounces at lists.linux-ha.org [mailto:linux-ha-bounces at lists.linux-ha.org] De la part de Lienard Anne (SII)

Envoyé : vendredi 4 juillet 2008 08:51

À : General Linux-HA mailing list

Objet : RE: [Linux-HA] Problem to start hbagent

 

 

 

It is exactly my problem... I would like to know if there is a way to compile snmp-subagent to allow hbagent to connect to heartbeat v1 (when option crm is set to off). I tried the option --enable-crm=no, but I have errors when hbagent is compiled in that way.

 

There is however two programs hbagent.c and hbagentv2.c in source package...

 

Maybe I should ask in linux-ha-dev mailing list?

 

 

 

Anne

 

 

 

-----Message d'origine-----

 

De : linux-ha-bounces at lists.linux-ha.org [mailto:linux-ha-bounces at lists.linux-ha.org] De la part de Ryan Thomson

 

Envoyé : jeudi 3 juillet 2008 23:08

 

À : General Linux-HA mailing list

 

Objet : Re: [Linux-HA] Problem to start hbagent

 

 

 

Michael Schwartzkopff wrote:

 

> Lienard Anne (SII) schrieb:

 

>> Sorry to keep you going on that subject... 

 

>> 

 

>> Is hbagent compatible with Linux-HA in v1-style?

 

>> 

 

>>  

 

>> 

 

>> Thank you for your answer.

 

>> Anne

 

> 

 

> Hi,

 

> 

 

> hbagent is a SUBagent, that connects to the local AgentX socket. All

 

> SNMP communications (v1, v3) is done by the Master Agent, which is

 

> net-snmp. So your question should be:

 

> 

 

> Is net-snmp v1 capable?

 

> 

 

> To answer is: YES!

 

> 

 

> Michael.

 

 

 

I believe Lienard was referring to Heartbeat v1, not SNMP v1.

 

 

 

While I don't have the answer, his problem was that starting up hbagent in his v1-style cluster fails because it tries to connect to the CIB and since it's a v1 haresources cluster, it obviously can't connect to the non-existent CIB and dies instead.

 

 

 

--Ryan

 

 

 

_______________________________________________

 

Linux-HA mailing list

 

Linux-HA at lists.linux-ha.org

 

http://lists.linux-ha.org/mailman/listinfo/linux-ha

 

See also: http://linux-ha.org/ReportingProblems

 

_______________________________________________

 

Linux-HA mailing list

 

Linux-HA at lists.linux-ha.org

 

http://lists.linux-ha.org/mailman/listinfo/linux-ha

 

See also: http://linux-ha.org/ReportingProblems

 

_______________________________________________

Linux-HA mailing list

Linux-HA at lists.linux-ha.org

http://lists.linux-ha.org/mailman/listinfo/linux-ha

See also: http://linux-ha.org/ReportingProblems



More information about the Linux-HA mailing list