Operating System - Linux
1748161 Members
3780 Online
108758 Solutions
New Discussion юеВ

SNMP Agents not working DL380G5 SLES10

 
SOLVED
Go to solution

SNMP Agents not working DL380G5 SLES10

Hi,
I've installed psp-8.31.sles10.x86_64.en.tar.gz on a DL380G5 with SLES10 SP2 with 2.6.16.60-0.42.7-smp kernel.
If I try to start the snmp agets I get this:
--------------------------------------------
modinfo: could not find module /opt/hp/hp-OpenIPMI/bin/2.6.16.60-0.42.7-smp/ipmi_si.ko
modinfo: could not find module /opt/hp/hp-OpenIPMI/bin/2.6.16.60-0.42.7-smp/ipmi_si.ko
Using Proliant High Performance
IPMI based System Health Monitor
hpasmxld: Attempting Rebuild of hp-OpenIPMI package
make[3]: gcc: Command not found
/bin/sh: gcc: command not found
make[4]: *** [/opt/hp/hp-OpenIPMI/drivers/char/ipmi/ipmi_msghandler.o] Error 127
make[3]: *** [_module_/opt/hp/hp-OpenIPMI/drivers/char/ipmi] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [build] Error 1
Can not rebuild the hp-OpenIPMI drivers!
See /var/log/hp-health/hpasmd.log for details.
See hp-OpenIPMI(4) and hpasm(4) for options.
/opt/hp/hp-OpenIPMI

/etc/init.d/hp-health: failed to start! Please review log file for details.
The log file locations are documented in the hp-health(4) man page.
----------------------------------------------

/var/log/hp-health/hpasmd.log shows this

----------------------------------------------
WARNING: THERE IS NO BUILD DIRECTORY FOR VERSION: 2.6.16.60-0.21-smp
The LINUX_BUILD_DIR resolves to: /lib/modules/2.6.16.60-0.21-smp/source

Building KERNEL VERSION 2.6.16.60-0.42.7-smp LINUX_BUILD_DIR: /lib/modules/2.6.16.60-0.42.7-smp/source
make[1]: Entering directory `/usr/src/linux-2.6.16.60-0.42.7-obj/x86_64/smp'
make -C ../../../linux-2.6.16.60-0.42.7 O=../linux-2.6.16.60-0.42.7-obj/x86_64/smp modules
make -C /usr/src/linux-2.6.16.60-0.42.7-obj/x86_64/smp \
KBUILD_src=/usr/src/linux-2.6.16.60-0.42.7 \
KBUILD_EXTMOD="/opt/hp/hp-OpenIPMI/drivers/char/ipmi" -f /usr/src/linux-2.6.16.60-0.42.7/Makefile modules
rm -rf /opt/hp/hp-OpenIPMI/drivers/char/ipmi/.tmp_versions
mkdir -p /opt/hp/hp-OpenIPMI/drivers/char/ipmi/.tmp_versions
make -f /usr/src/linux-2.6.16.60-0.42.7/scripts/Makefile.build obj=/opt/hp/hp-OpenIPMI/drivers/char/ipmi
gcc -Wp,-MD,/opt/hp/hp-OpenIPMI/drivers/char/ipmi/.ipmi_msghandler.o.d -nostdinc -isystem -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.16.60-0.42.7/include -include /usr/src/linux-2.6.16.60-0.42.7-obj/x86_64/smp/include/linux/autoconf.h -I/opt/hp/hp-OpenIPMI/drivers/char/ipmi -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fno-common -ffreestanding -fno-delete-null-pointer-checks -Os -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ipmi_msghandler)" -D"KBUILD_MODNAME=KBUILD_STR(ipmi_msghandler)" -c -o /opt/hp/hp-OpenIPMI/drivers/char/ipmi/.tmp_ipmi_msghandler.o /opt/hp/hp-OpenIPMI/drivers/char/ipmi/ipmi_msghandler.c
make[1]: Leaving directory `/usr/src/linux-2.6.16.60-0.42.7-obj/x86_64/smp'
BUILD ERROR: Build for KERNEL VERSION: 2.6.16.60-0.42.7-smp LINUX_BUILD_DIR: /lib/modules/2.6.16.60-0.42.7-smp/source FAILED
Failed to Build for the currently running kernel. Exiting...

WARNING: Build did not complete successfully!

Can not rebuild the hp-OpenIPMI drivers!
See /var/log/hp-health/hpasmd.log for details.
See hp-OpenIPMI(4) and hpasm(4) for options.
----------------------------------------------

Is there a chance to get them running?

Best Regards
Nico
9 REPLIES 9
THAKUR
Frequent Advisor

Re: SNMP Agents not working DL380G5 SLES10

Looks like hp-OpenIPMI is not installed on properly on the server. Plz check whether it is installed or not?

Re: SNMP Agents not working DL380G5 SLES10

Thanks for the reply
I've checked it with rpm -q, installed is
hp-OpenIPMI-8.3.1-11.sles10
Best regards
Nico
THAKUR
Frequent Advisor

Re: SNMP Agents not working DL380G5 SLES10

Can you please once confirm by going to the location /opt/hp/hp-OpenIPMI/bin/ ?
at the , we will be having kernel files. if these files are missing, then it will try to rebuild those kernel binaries which is failing in your case.

One simple solution will be to remove all the hp components and then install SS once again.

Re: SNMP Agents not working DL380G5 SLES10

Ah...
The directory
/opt/hp/hp-OpenIPMI/bin/2.6.16.60-0.42.7-smp
is empty.
How can I fix it?

Re: SNMP Agents not working DL380G5 SLES10

Reading before writig ;-)
I'll try to deinstall and install again
THAKUR
Frequent Advisor
Solution

Re: SNMP Agents not working DL380G5 SLES10

If after installing again it is not working, then can ypu please make sure that the GCC compiler is installed and kernel source is present.

Re: SNMP Agents not working DL380G5 SLES10

That was the clou :-))
This server was one of the frist ones in our environment, it was installed without the compiler. After installing the compiler and reinstalling psp, the agents are running fine. Thanks for figuring that out.
Best regards
Nico

Re: SNMP Agents not working DL380G5 SLES10

Hi Nico,
ist eine Weile her, aber ich meine, wir waren zusammen in Herzogenrath auf dem Gymnasium.
Melde Dich doch mal, wenn Du es sein solltest.
Lieben Gruss
Christian Schroeder

Re: SNMP Agents not working DL380G5 SLES10

Ach ja: chris.schroedi@web.de