Home ·  Knowledge Base ·  News ·  Contact  





 Knowledge Base

 Categories



Web Servers



Mail Servers



FTP Servers



Firewall / Security



Intrusion Detection



FreeBSD General



Solaris General



Linux General



Miscellaneous



Samba



MRTG



SQL



 Search

 


 Miscellaneous

Go Back

Getting Comaq/HP server health monitoring working in Gentoo  


NOTE: These instructions are assuming you are running a 2.4 kernel. I couldn't get the hpasm modules to compile under 2.6. If you get it to work, please let me know!

If you've ever worked on the Compaq/HP servers, then you know that when the fans are running at full power, you couldn't hear fireworks going off in the server room. Thankfully, there is a way to manage those noisy fans. Sadly the solution provided by Compaq and HP is an rpm.

The good news is that hpasm is in portage in Gentoo. So, a simple "emerge hpasm" will get you off and running. However, the hpasm initscript that is created generates many errors. Also, it comes with a bunch of junk that you probably don't need. In fact, all you really need is the cpqasm and cpqevt kernel modules loaded.

I kludged together a little something and this is how I did it.

1) emerge libcompat hpasm - libcompat is needed for some of the libraries that the compaq stuff is going to look for

2) ln -s /usr/lib/libcrypto.so.0.9.7 /usr/lib/libcrypto.so.2 - you might have to change this link location if you have a newer/older version of libcrypto
ln -s /usr/lib/libssl.so.0.9.7 /usr/lib/libssl.so.2 - ditto for your libssl version
ln -s /etc/init.d/functions.sh /etc/init.d/functions - the initscript is looking for RedHat style /etc/init.d/functions, the gentoo functions.sh seems to placate it

3) Edit /opt/compaq/hpasm/etc/hpasm and edit the SCRIPTS and RSCRIPTS variables to only include cpqasm. You probably don't need all that other crap.

4) rc-update add hpasm default

5) Start it up! (either "rc" or "/etc/init.d/hpasm" should do the trick). Now your fans should behave themselves a little bit better. Plus, you'll get interesting hardware event information in syslog and dmesg.


 





How's your network?, Inc. © 2001-2024