I've spent the past couple days messing with this, and I've mostly got it working, though there are still a few bugs. The HP AMS code assumes a lot of things exist on the system that obviously aren't there with DSM, and that means it segfaults non stop. I finally got a build to work, and the main bug I notice is that in iLO only the first HDD is listed. This is in AHCI mode, it's possible the drive details show up OK in RAID mode. Also, I didn't really see any fan speed changes once I got this working, it was 10% before, and 9% after.
Here's a dump of what I've been testing. No idea how correct any of it is, haven't done any development in a long time This was built against the latest bromolow DSM source and is running on 5.2-5592 Update 3, I dunno if it works on other versions of DSM. Use at you own risk, though I can't imagine there's much risk involved with something that is basically just an SNMP wrapper.
Kernel Module - Steps mostly from here: http://xpenology.com/wiki/en/building_xpenology
Download DSM 5.2 source and toolchain:
http://sourceforge.net/projects/dsgpl/f ... z/download
http://sourceforge.net/projects/dsgpl/f ... z/download
Extract toolchain to /usr/local, extract source somewhere
cd source/linux-3.10.x
cp synoconfigs/bromolow .config
make ARCH=x86_64 CROSS_COMPILE=/usr/local/x86_64-linux-gnu/bin/x86_64-linux-gnu- menuconfig
Go into Device Drivers -> Misc Devices, hit M at "Channel interface driver for the HP iLO processor" to build the kernel module
Save and Exit
make ARCH=x86_64 CROSS_COMPILE=/usr/local/x86_64-linux-gnu/bin/x86_64-linux-gnu- modules
copy drivers/misc/hpilo.ko to /usr/lib/modules/3.10.35 on NAS
vi /usr/lib/modules/3.10.35/modules.dep and add this line:
/lib/modules/3.10.35/hpilo.ko:
modprobe hpilo should work with no errors
lsmod | grep hpilo should show that hpilo is loaded
HP AMS
I couldn't get any of the executables provided in the debs or rpms to run without segfaulting. So I searched around, and found some source on github:
https://github.com/marker55/hp-ams
It's not the absolutely latest from what I can tell (seems to be 2.1), but it's close, as 2.2 is the most recent rpm I could find. What's important is it has the new command line args that 2.0 and below don't have, which let use chose which MIBs to query
So git clone that repo, or just download the source zip.
Download http://sourceforge.net/projects/net-snm ... z/download and copy it to the hp-ams-master folder
Run make
From what I can tell, it's not too important what compilers are used to build. I wasted a day adding cross compile support into all the Makefiles so I could build with the Synology toolchain to see if that would fix the numerous segfaults, but it doesn't seem to be necessary.
After build is complete, copy the hpHelper executable to /sbin/hpHelper on the NAS
chmod +x /sbin/hpHelper
Test it
Assuming you've already modprobed hpilo, run this as root to test if AMS works
/sbin/hpHelper -f -L -I0 -M1,5,14,16,18,23,99
Should see a message like 'NET-SNMP version 5.7.2 AgentX subagent connected'
Give it a minute or so, and see if things start showing up in iLO.
There are two other MIBs, 0 and 11, but including either of those just causes it to segfault. Might be fixable, but I haven't dug into the code.
Run at start
Ctrl-C your test run to stop it, then create a startup script.
vi /usr/local/etc/rc.d/S99HP-AMS.sh
#!/bin/sh
modprobe hpilo
/sbin/hpHelper -I0 -M1,5,14,16,18,23,99
chmod +x /usr/local/etc/rc.d/S99HP-AMS.sh
/usr/local/etc/rc.d/S99HP-AMS.sh
ps | grep hpHelper
Should show it is running, and iLO should still report correctly.
Download
5.2 - hp-ams.tar.gz
6.0 (thanks to ema) - https://mega.nz/#!gt0HTCJZ!PeXq-qutvb6mZT7ZuP3Htfi-abkEdOYNZ_HcCVTd-6Y
6.1 (thanks to ema) - https://mega.nz/#!R8dUhDJb!dyYEVSsrWSohPfU5O7Uxo-GisuMKZPZbG4HbeiIeHk0
Note the modules.dep.hpilo file, that's so you don't extract blindly and overwrite say the modules.dep file for VirtualBox. Rename to modules.dep if you don't have one, or copy the contents into your existing modules.dep.
Unfortunately, I really don't have a lot of time to work on this, so I doubt I'll ever have a proper package available or keep things up to date. But I figured I could at least dump what I had, so anyone else that wants to mess around with it can.