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