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

=> Same result.


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 <[EMAIL PROTECTED]> (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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [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

Reply via email to