Central "Asset" thing

introduction

I've been thinking about the need for a central database of our systems.

Currently, we have

It would be nice to have a central place for this sort of thing and to push out config files for the others based on that data. So, to model what we have. Starting from the bottom.

thoughts about the model

At the bottom we have machines. These come and go. They have some attributes in common that are useful to other things: manufacturer/model impact the kind of manufacturer-specific monitoring we might have available to us, also what kind of disk stock for replacements we have available. Also what kind of remote access is available, whether they have dual power, etc. Machines have a location. they are in sb12, nb1, databanx... Next level up, we have hosts. Hosts are not 1:1 matched to machines. E.g. we have had more than one finan. Then, we have services. they are a high-level concept. Services run on top of hosts, but they are not 1:1 again. The whole lot is connected by the network. There are dependencies on paranahs etc.

current model

first, machines:

FieldTypeNullKeyDefaultExtra
idint(11)NOPRIauto_increment

then hosts, tying them to their current machines:

FieldTypeNullKeyDefaultExtra
idint(11)NOPRIauto_increment
current_machineint(11)YES
namevarchar(32)YES

we need services, although not sure what to give them yet:

FieldTypeNullKeyDefaultExtra
idint(11)NOPRIauto_increment

sample data