I'm really liking collectl in place of sadc on my systems. It's great for poring over historic details when something triggered a monitoring alarm and I wasn't just sitting around twiddling my thumbs and waiting to catch it. :) It's also really cool that the stats can be correlated in so many useful ways! Thanks for a great tool.
Anyway, attached is a simple patch to fix a few snags I hit while installing on some Debian boxen. Meant to send this a while ago but just got around to it.
* It looks like the INSTALL script puts the initscripts into /opt/hp/collectl/initd/ by default but creates symlinks from /etc/init.d/collectl to files in /opt/hp/collectl/etc/init.d/, which doesn't exist.
* The UNINSTALL script does not remove the links created by the update-rc.d command contained in INSTALL because Debian doesn't have linkage between /etc/init.d/rc?.d/ and /etc/rc?.d/ like RedHat does.
* Debian and derived systems should have an /etc/debian_version file, something akin to RedHat's /etc/redhat-release, which should be a good indicator of distribution.