Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Problem to start hbagent

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


Anne.Lienard at thomson

Jul 1, 2008, 9:07 AM

Post #1 of 15 (309 views)
Permalink
Problem to start hbagent

Hello,



We need to install LINUX-HA MIB with hbagent client on our Linux-HA
cluster (linux ha version 2.1.3 on Redhat 5.1 64 bits).



>From the source package linux-ha heartbeat-2.1.3-22.1.src.rpm, I've
compiled with the following option:



./ConfigureMe configure --enable-snmp-subagent



I obtained a new heartbeat RPM, and I replaced the old one on the two
nodes.



But when I started heartbeat, I obtained the following error:



heartbeat[30489]: 2008/07/01_14:51:10 info: Starting
"/usr/lib64/heartbeat/hbagent -d" as uid 0 gid 0 (pid 30489)

lha-snmpagent[30489]: 2008/07/01_14:51:11 info: node 1: group1, type:
ping, status: ping

lha-snmpagent[30489]: 2008/07/01_14:51:12 info: node 2: prd-x3650-6,
type: normal, status: active

lha-snmpagent[30489]: 2008/07/01_14:51:12 info: node 3: prd-x3650-5,
type: normal, status: active

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: node: group1, interface:
group1, status: up

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: node: prd-x3650-6,
interface: bond1, status: up

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: node: prd-x3650-5,
interface: bond1, status: up

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: g_hash_table_insert hd =
[0x1ef43350]

lha-snmpagent[30489]: 2008/07/01_14:51:13 ERROR: oc_ev_activate error
[1]

lha-snmpagent[30489]: 2008/07/01_14:51:13 ERROR: CIB connection signon
failed.

lha-snmpagent[30489]: 2008/07/01_14:51:13 ERROR: init_cib() failed.



Our configuration file is set with linux-ha v1-style option (crm set to
off).

Is there an option to start hbagent with linux-ha v1-style?



I saw that a patch exists, but for 2.0.6 version
(http://lists.community.tummy.com/pipermail/linux-ha-dev/2006-July/01326
1.html)

Is this patch available for most recent versions?



Or maybe, the hbagent rights are not set correctly (I started it with
root)...



Here is our configuration file:



debugfile /var/log/ha-debug

logfile /var/log/ha-log

logfacility local0

keepalive 2

deadtime 60

warntime 30

udpport 694

bcast bond1 # Linux

auto_failback off

crm off

node PRD-X3650-5

node PRD-X3650-6

ping_group group1 172.16.2.13 172.16.2.249

respawn hacluster /usr/lib64/heartbeat/ipfail

respawn root /usr/lib64/heartbeat/hbagent -d



Thank you.

Anne

_______________________________________________
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


Anne.Lienard at thomson

Jul 3, 2008, 8:11 AM

Post #2 of 15 (290 views)
Permalink
RE: Problem to start hbagent [In reply to]

Sorry to keep you going on that subject...

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



Thank you for your answer.
Anne



________________________________

De : Lienard Anne (SII)
Envoyé : mardi 1 juillet 2008 18:07
À : 'linux-ha[at]lists.linux-ha.org'
Objet : [Linux-HA] Problem to start hbagent



Hello,



We need to install LINUX-HA MIB with hbagent client on our Linux-HA cluster (linux ha version 2.1.3 on Redhat 5.1 64 bits).



>From the source package linux-ha heartbeat-2.1.3-22.1.src.rpm, I've compiled with the following option:



./ConfigureMe configure --enable-snmp-subagent



I obtained a new heartbeat RPM, and I replaced the old one on the two nodes.



But when I started heartbeat, I obtained the following error:



heartbeat[30489]: 2008/07/01_14:51:10 info: Starting "/usr/lib64/heartbeat/hbagent -d" as uid 0 gid 0 (pid 30489)

lha-snmpagent[30489]: 2008/07/01_14:51:11 info: node 1: group1, type: ping, status: ping

lha-snmpagent[30489]: 2008/07/01_14:51:12 info: node 2: prd-x3650-6, type: normal, status: active

lha-snmpagent[30489]: 2008/07/01_14:51:12 info: node 3: prd-x3650-5, type: normal, status: active

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: node: group1, interface: group1, status: up

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: node: prd-x3650-6, interface: bond1, status: up

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: node: prd-x3650-5, interface: bond1, status: up

lha-snmpagent[30489]: 2008/07/01_14:51:13 info: g_hash_table_insert hd = [0x1ef43350]

lha-snmpagent[30489]: 2008/07/01_14:51:13 ERROR: oc_ev_activate error [1]

lha-snmpagent[30489]: 2008/07/01_14:51:13 ERROR: CIB connection signon failed.

lha-snmpagent[30489]: 2008/07/01_14:51:13 ERROR: init_cib() failed.



Our configuration file is set with linux-ha v1-style option (crm set to off).

Is there an option to start hbagent with linux-ha v1-style?



I saw that a patch exists, but for 2.0.6 version (http://lists.community.tummy.com/pipermail/linux-ha-dev/2006-July/013261.html)

Is this patch available for most recent versions?



Or maybe, the hbagent rights are not set correctly (I started it with root)...



Here is our configuration file:



debugfile /var/log/ha-debug

logfile /var/log/ha-log

logfacility local0

keepalive 2

deadtime 60

warntime 30

udpport 694

bcast bond1 # Linux

auto_failback off

crm off

node PRD-X3650-5

node PRD-X3650-6

ping_group group1 172.16.2.13 172.16.2.249

respawn hacluster /usr/lib64/heartbeat/ipfail

respawn root /usr/lib64/heartbeat/hbagent -d



Thank you.

Anne

_______________________________________________
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


misch at multinet

Jul 3, 2008, 9:30 AM

Post #3 of 15 (289 views)
Permalink
Re: Problem to start hbagent [In reply to]

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.
_______________________________________________
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


ryan at pet

Jul 3, 2008, 2:08 PM

Post #4 of 15 (284 views)
Permalink
Re: Problem to start hbagent [In reply to]

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


Anne.Lienard at thomson

Jul 3, 2008, 11:50 PM

Post #5 of 15 (284 views)
Permalink
RE: Problem to start hbagent [In reply to]

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


Anne.Lienard at thomson

Jul 7, 2008, 3:09 AM

Post #6 of 15 (260 views)
Permalink
RE: Problem to start hbagent [In reply to]

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


Anne.Lienard at thomson

Jul 8, 2008, 2:43 AM

Post #7 of 15 (254 views)
Permalink
RE: Problem to start hbagent [In reply to]

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

_______________________________________________
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


misch at multinet

Jul 8, 2008, 2:49 AM

Post #8 of 15 (251 views)
Permalink
Re: Problem to start hbagent [In reply to]

Am Dienstag, 8. Juli 2008 11:43 schrieb Lienard Anne (SII):
> 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

It seems that the hbagent is still not running, so the master agent does not
know anything about the state of the cluster. Did you check if hbagent is
running (ps uax | grep hbagent)?

You have to start hbagent AFTER snmpd.

Greetings,

--
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: misch[at]multinet.de
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
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Anne.Lienard at thomson

Jul 8, 2008, 3:07 AM

Post #9 of 15 (251 views)
Permalink
RE: Problem to start hbagent [In reply to]

To be sure, I've stopped heartbeat and hbagent, then snmpd.



I've started snmpd:

# service snmpd start

Starting snmpd: [ OK ]



Then heartbeat

# /etc/init.d/heartbeat start

Starting High-Availability services:

2008/07/08_11:59:29 INFO: IPaddr Resource is stopped

[ OK ]



I've checked the hbagent daemon:

# ps -ef

...

root 12241 1 0 11:59 ? 00:00:00 heartbeat: master control process

nobody 12244 12241 0 11:59 ? 00:00:00 heartbeat: FIFO reader

nobody 12245 12241 0 11:59 ? 00:00:00 heartbeat: write: bcast bond1

nobody 12246 12241 0 11:59 ? 00:00:00 heartbeat: read: bcast bond1

nobody 12247 12241 0 11:59 ? 00:00:00 heartbeat: write: ping_group group1

nobody 12248 12241 0 11:59 ? 00:00:00 heartbeat: read: ping_group group1

24 12261 12241 0 11:59 ? 00:00:00 /usr/lib64/heartbeat/ipfail

root 12262 12241 0 11:59 ? 00:00:00 /usr/lib64/heartbeat/hbagent -d





But snmpwalk still gives the same result:

# 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)



Could it be permission access problem?



I've had in ha.cf file



apiauth lha-snmpagent uid=root





But I still have the problem...



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 Michael Schwartzkopff
Envoyé : mardi 8 juillet 2008 11:49
À : General Linux-HA mailing list
Objet : Re: [Linux-HA] Problem to start hbagent



Am Dienstag, 8. Juli 2008 11:43 schrieb Lienard Anne (SII):

> 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



It seems that the hbagent is still not running, so the master agent does not

know anything about the state of the cluster. Did you check if hbagent is

running (ps uax | grep hbagent)?



You have to start hbagent AFTER snmpd.



Greetings,



--

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: misch[at]multinet.de

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

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


misch at multinet

Jul 8, 2008, 3:21 AM

Post #10 of 15 (252 views)
Permalink
Re: Problem to start hbagent [In reply to]

Am Dienstag, 8. Juli 2008 12:07 schrieb Lienard Anne (SII):
> To be sure, I've stopped heartbeat and hbagent, then snmpd.
>
> I've started snmpd:
>
> # service snmpd start
>
> Starting snmpd: [ OK ]
>
> Then heartbeat
>
> # /etc/init.d/heartbeat start
>
> Starting High-Availability services:
>
> 2008/07/08_11:59:29 INFO: IPaddr Resource is stopped
>
> [ OK ]
>
>
>
> I've checked the hbagent daemon:
>
> # ps -ef
>
> ...
>
> root 12241 1 0 11:59 ? 00:00:00 heartbeat: master control
> process
>
> nobody 12244 12241 0 11:59 ? 00:00:00 heartbeat: FIFO reader
>
> nobody 12245 12241 0 11:59 ? 00:00:00 heartbeat: write: bcast
> bond1
>
> nobody 12246 12241 0 11:59 ? 00:00:00 heartbeat: read: bcast
> bond1
>
> nobody 12247 12241 0 11:59 ? 00:00:00 heartbeat: write:
> ping_group group1
>
> nobody 12248 12241 0 11:59 ? 00:00:00 heartbeat: read: ping_group
> group1
>
> 24 12261 12241 0 11:59 ? 00:00:00 /usr/lib64/heartbeat/ipfail
>
> root 12262 12241 0 11:59 ? 00:00:00
> /usr/lib64/heartbeat/hbagent -d


Hm. If heartbeat is stopped, why are there still the ehartbeat processes
around? Or did you start heartbeat again?

> But snmpwalk still gives the same result:
>
> # 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)
>
> Could it be permission access problem?
>
> I've had in ha.cf file
>
> apiauth lha-snmpagent uid=root
>
> But I still have the problem...

It could be such a problem. For a test, please do NOT start hbagent from
heartbeat. So please delete that line from ha.cf and restart heartbeat.

Please start hbagent manually from the command line.

/usr/lib/heartbeat/hbagent -d

Please also check snmpd.conf. Is the view the the SNMP client limited to a
part of the OIDs? Please can you post your snmpd.conf WITHOUT the actual
community strings? Thanks.


--
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: misch[at]multinet.de
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
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Anne.Lienard at thomson

Jul 8, 2008, 3:35 AM

Post #11 of 15 (254 views)
Permalink
RE: Problem to start hbagent [In reply to]

I've retested by manually starting hbagent

# /etc/init.d/heartbeat start
# /usr/lib64/heartbeat/hbagent -d
lha-snmpagent[14878]: 2008/07/08_12:25:44 debug: PID=14878
lha-snmpagent[14878]: 2008/07/08_12:25:44 debug: Signing in with heartbeat
lha-snmpagent[14878]: 2008/07/08_12:25:45 info: node 1: group1, type: ping, stat
us: ping
lha-snmpagent[14878]: 2008/07/08_12:25:46 info: node 2: prd-x3650-6, type: norma
l, status: active
lha-snmpagent[14878]: 2008/07/08_12:25:47 info: node 3: prd-x3650-5, type: norma
l, status: active
lha-snmpagent[14878]: 2008/07/08_12:25:48 info: node: group1, interface: group1,
status: up
lha-snmpagent[14878]: 2008/07/08_12:25:48 info: node: prd-x3650-6, interface: bo
nd1, status: up
lha-snmpagent[14878]: 2008/07/08_12:25:49 info: node: prd-x3650-5, interface: bo
nd1, status: up
lha-snmpagent[14878]: 2008/07/08_12:25:49 info: sending hbagent trap. status:1



Here is my snmpd.conf without # lines :

# cat /etc/snmp/snmpd.conf |grep -v ^# |grep -v ^$
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
access notConfigGroup "" any noauth exact systemview none none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root[at]localhost> (configure /etc/snmp/snmp.local.conf)
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
rwcommunity public
master agentx
trap2sink localhost

Is there some parameter to modify?
Thanks,
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 Michael Schwartzkopff
Envoyé : mardi 8 juillet 2008 12:22
À : General Linux-HA mailing list
Objet : Re: [Linux-HA] Problem to start hbagent

Am Dienstag, 8. Juli 2008 12:07 schrieb Lienard Anne (SII):
> To be sure, I've stopped heartbeat and hbagent, then snmpd.
>
> I've started snmpd:
>
> # service snmpd start
>
> Starting snmpd: [ OK ]
>
> Then heartbeat
>
> # /etc/init.d/heartbeat start
>
> Starting High-Availability services:
>
> 2008/07/08_11:59:29 INFO: IPaddr Resource is stopped
>
> [ OK ]
>
>
>
> I've checked the hbagent daemon:
>
> # ps -ef
>
> ...
>
> root 12241 1 0 11:59 ? 00:00:00 heartbeat: master control
> process
>
> nobody 12244 12241 0 11:59 ? 00:00:00 heartbeat: FIFO reader
>
> nobody 12245 12241 0 11:59 ? 00:00:00 heartbeat: write: bcast
> bond1
>
> nobody 12246 12241 0 11:59 ? 00:00:00 heartbeat: read: bcast
> bond1
>
> nobody 12247 12241 0 11:59 ? 00:00:00 heartbeat: write:
> ping_group group1
>
> nobody 12248 12241 0 11:59 ? 00:00:00 heartbeat: read: ping_group
> group1
>
> 24 12261 12241 0 11:59 ? 00:00:00 /usr/lib64/heartbeat/ipfail
>
> root 12262 12241 0 11:59 ? 00:00:00
> /usr/lib64/heartbeat/hbagent -d


Hm. If heartbeat is stopped, why are there still the ehartbeat processes
around? Or did you start heartbeat again?

> But snmpwalk still gives the same result:
>
> # 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)
>
> Could it be permission access problem?
>
> I've had in ha.cf file
>
> apiauth lha-snmpagent uid=root
>
> But I still have the problem...

It could be such a problem. For a test, please do NOT start hbagent from
heartbeat. So please delete that line from ha.cf and restart heartbeat.

Please start hbagent manually from the command line.

/usr/lib/heartbeat/hbagent -d

Please also check snmpd.conf. Is the view the the SNMP client limited to a
part of the OIDs? Please can you post your snmpd.conf WITHOUT the actual
community strings? Thanks.


--
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: misch[at]multinet.de
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
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


misch at multinet

Jul 8, 2008, 3:44 AM

Post #12 of 15 (251 views)
Permalink
Re: Problem to start hbagent [In reply to]

Am Dienstag, 8. Juli 2008 12:35 schrieb Lienard Anne (SII):

> Here is my snmpd.conf without # lines :
>
> # cat /etc/snmp/snmpd.conf |grep -v ^# |grep -v ^$
> com2sec notConfigUser default public
> group notConfigGroup v1 notConfigUser
> group notConfigGroup v2c notConfigUser
> view systemview included .1.3.6.1.2.1.1
> view systemview included .1.3.6.1.2.1.25.1.1
> access notConfigGroup "" any noauth exact systemview none
> none syslocation Unknown (edit /etc/snmp/snmpd.conf)
> syscontact Root <root[at]localhost> (configure /etc/snmp/snmp.local.conf)
> pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
> rwcommunity public
> master agentx
> trap2sink localhost
>

Well, if you do not let your client look into the etnerprises MIB it really
cannot!

Please consider:
com2sec readonly 1.2.3.4/24 linuxha
group MyROGroup v1 readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none

Please feel free to use an other community string, SNMP version or view. But
beware the .enterprises.linux-ha (1.3.6.1.4.1.4682) is included into the
view!

Greetings,

--
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: misch[at]multinet.de
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
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Anne.Lienard at thomson

Jul 8, 2008, 6:28 AM

Post #13 of 15 (243 views)
Permalink
RE: Problem to start hbagent [In reply to]

Thank you very much!

I've just followed snmp_subagent README, and I've not review the whole snmpd.conf file.

Now I can ask my nodes status :-)

# snmpwalk -v2c localhost -c public LHANodeStatus.2
LINUX-HA-MIB::LHANodeStatus.2 = INTEGER: active(3)

Thanks a lot!

But, I still have a problem :-\
I can't ask resources status in LHAResourceGroupTable (LinuxHA.4)...

# snmpwalk -v2c localhost -c public LinuxHA.4
LINUX-HA-MIB::LHAResourceGroupTable = No Such Object available on this agent at this OID

It seems hbagent can't access to this information...
Any idea why?

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 Michael Schwartzkopff
Envoyé : mardi 8 juillet 2008 12:44
À : General Linux-HA mailing list
Objet : Re: [Linux-HA] Problem to start hbagent

Am Dienstag, 8. Juli 2008 12:35 schrieb Lienard Anne (SII):

> Here is my snmpd.conf without # lines :
>
> # cat /etc/snmp/snmpd.conf |grep -v ^# |grep -v ^$
> com2sec notConfigUser default public
> group notConfigGroup v1 notConfigUser
> group notConfigGroup v2c notConfigUser
> view systemview included .1.3.6.1.2.1.1
> view systemview included .1.3.6.1.2.1.25.1.1
> access notConfigGroup "" any noauth exact systemview none
> none syslocation Unknown (edit /etc/snmp/snmpd.conf)
> syscontact Root <root[at]localhost> (configure /etc/snmp/snmp.local.conf)
> pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
> rwcommunity public
> master agentx
> trap2sink localhost
>

Well, if you do not let your client look into the etnerprises MIB it really
cannot!

Please consider:
com2sec readonly 1.2.3.4/24 linuxha
group MyROGroup v1 readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none

Please feel free to use an other community string, SNMP version or view. But
beware the .enterprises.linux-ha (1.3.6.1.4.1.4682) is included into the
view!

Greetings,

--
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: misch[at]multinet.de
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
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


misch at multinet

Jul 8, 2008, 11:53 PM

Post #14 of 15 (223 views)
Permalink
Re: Problem to start hbagent [In reply to]

Am Dienstag, 8. Juli 2008 15:28 schrieb Lienard Anne (SII):
(...)
> But, I still have a problem :-\
> I can't ask resources status in LHAResourceGroupTable (LinuxHA.4)...
>
> # snmpwalk -v2c localhost -c public LinuxHA.4
> LINUX-HA-MIB::LHAResourceGroupTable = No Such Object available on this
> agent at this OID
>
> It seems hbagent can't access to this information...
> Any idea why?
>
> Anne

Hi,

what version of linux-ha do you have? There was a problem with an outdated
version. Please try pacemaker.
Project webseite: www.clusterlabs.org
Binary packages:
http://download.opensuse.org/repositories/server:/ha-clustering/

--
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: misch[at]multinet.de
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
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Anne.Lienard at thomson

Jul 11, 2008, 7:49 AM

Post #15 of 15 (205 views)
Permalink
RE: Problem to start hbagent [In reply to]

I used 2.0.6 version because I would like to have hbagent with no CRM - and a patch was available in that version.
Now, finally we've decided to update our cluster configuration in 2.1.3 with CRM.
Thank you very much for your help, especially for SNMP configuration.
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 Michael Schwartzkopff
Envoyé : mercredi 9 juillet 2008 08:54
À : General Linux-HA mailing list
Objet : Re: [Linux-HA] Problem to start hbagent

Am Dienstag, 8. Juli 2008 15:28 schrieb Lienard Anne (SII):
(...)
> But, I still have a problem :-\
> I can't ask resources status in LHAResourceGroupTable (LinuxHA.4)...
>
> # snmpwalk -v2c localhost -c public LinuxHA.4
> LINUX-HA-MIB::LHAResourceGroupTable = No Such Object available on this
> agent at this OID
>
> It seems hbagent can't access to this information...
> Any idea why?
>
> Anne

Hi,

what version of linux-ha do you have? There was a problem with an outdated
version. Please try pacemaker.
Project webseite: www.clusterlabs.org
Binary packages:
http://download.opensuse.org/repositories/server:/ha-clustering/

--
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: misch[at]multinet.de
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
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 users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.