The roles are clear :
- the server maintains a database (mysql/mariadb) for the inventory of materials (hardware and software),
- the agent, installed on any hardware (PC or servers), uploads its inventory to the server on a daily basis.
You must, of course, install an agent on the server itself so that the server itself is inventoried.