hardware diagram / database

Hi - we are looking for a (hopefully free/opensource) solution for diagramming our rack/hardware configuration. the rack solution seems easier to find than the hardware piece. i.e. on our IBM 770 with two CEC's, a method of noting what hardware points to what... for example, on the primary CEC, C2T1 has WWN number such and such, was connected by whoever and plugged into switch whatever and used for this, that an the other (free text). at this point, i am almost ready to take a picture of the back of the device and creating a html map pulling from a home made mysql database. a spread sheet is our current method - which works i suppose. i believe there is a nifty little web application out there that would be better. thanks!