A Configuration Management Database (CMDB) is the central repository that stores information about your IT infrastructure — hardware, software, network devices, services, and the relationships between them. For organizations managing hundreds or thousands of assets, a self-hosted CMDB provides complete data ownership, customizable data models, and integration with your existing monitoring and automation tools.
This guide compares the top self-hosted CMDB solutions: NetBox, GLPI, and Ralph — covering features, deployment, and use cases.
What Is a CMDB and Why Self-Host?
A CMDB goes beyond simple inventory management. It tracks not just what assets you have, but how they connect and depend on each other. When a switch fails, a CMDB tells you which servers, applications, and services are affected. When planning a migration, it reveals upstream and downstream dependencies.
Self-hosting your CMDB means:
- Full control over your infrastructure data — no third-party access
- Custom data models tailored to your environment
- Integration with internal tools via APIs without rate limits
- No per-device or per-user licensing fees
- Compliance with data sovereignty requirements
Comparing Self-Hosted CMDB Solutions
| Feature | NetBox | GLPI | Ralph |
|---|---|---|---|
| Primary focus | IPAM + DCIM + CMDB | ITSM + Helpdesk + CMDB | IT Asset Management |
| GitHub stars | 5,000+ | 3,000+ | 1,200+ |
| Web interface | ✅ Modern UI | ✅ Full ITSM portal | ✅ Admin panel |
| REST API | ✅ Comprehensive | ✅ Full API | ✅ REST API |
| IP address management | ✅ Best-in-class | ✅ Via plugin | ✅ Basic |
| Rack/device visualization | ✅ 3D rack view | ❌ | ❌ |
| Helpdesk/ticketing | ❌ | ✅ Built-in | ❌ |
| Network discovery | ✅ Via plugins | ✅ Via FusionInventory | ✅ Via scans |
| Custom fields | ✅ Extensible | ✅ Via dropdowns | ✅ Via models |
| Docker support | ✅ Official image | ✅ Via LinuxServer.io | ✅ Official image |
| License | Apache 2.0 | GPL 3.0 | Apache 2.0 |
Deploying NetBox as a CMDB
NetBox is the most popular open-source IPAM and DCIM tool, widely used as a CMDB for network and infrastructure teams. It models your entire infrastructure — from IP prefixes and VLANs to devices, circuits, and virtual machines — with full relationship tracking.
Docker Compose Configuration
The official NetBox Docker setup includes PostgreSQL and Redis:
| |
Initial Setup
| |
Configuring Custom Fields for CMDB
NetBox’s custom fields let you extend the data model:
| |
Deploying GLPI as an ITSM CMDB
GLPI is a full IT service management platform with a built-in CMDB. It combines asset management, helpdesk, license tracking, and project management in a single application.
Docker Compose Configuration
| |
Installing the FusionInventory Plugin
For automatic network discovery and inventory:
| |
Setting Up the CMDB Inventory
- Navigate to Assets → Computers to add your first asset
- Configure Network Discovery rules under Administration → Rules
- Set up Automatic Inventory via the FusionInventory agent on endpoints
- Define Relationships between assets (e.g., a server runs on a specific hypervisor)
Deploying Ralph for IT Asset Management
Ralph is an asset management and CMDB system designed for data centers and IT departments. It focuses on hardware lifecycle management, procurement tracking, and license management.
Docker Compose Configuration
| |
Importing Existing Assets
Ralph supports CSV import for bulk asset onboarding:
| |
Choosing the Right CMDB for Your Organization
Choose NetBox if:
- You need best-in-class IP address management and network documentation
- Your team is network/infrastructure focused
- You need API-first integration with automation tools (Ansible, Terraform)
- You want rack-level data center visualization
Choose GLPI if:
- You need a full ITSM platform (helpdesk + CMDB in one)
- You manage IT assets across multiple departments
- You need license management and contract tracking
- Your organization follows ITIL processes
Choose Ralph if:
- Your primary need is hardware lifecycle and procurement tracking
- You want a simple, focused asset management system
- You need cost tracking and depreciation calculations
- You prefer a lightweight system without ITSM overhead
Why Maintain a Self-Hosted CMDB?
Single Source of Truth — A CMDB consolidates infrastructure data that would otherwise live in spreadsheets, monitoring tools, and people’s heads. When an incident occurs, responders can immediately see what’s affected.
Change Impact Analysis — Before modifying a network device or retiring a server, a CMDB reveals all dependent services. This prevents outages caused by undocumented dependencies.
Compliance and Auditing — Regulatory frameworks (SOC 2, ISO 27001, PCI DSS) require documented asset inventories. A self-hosted CMDB provides an auditable, version-controlled record of your entire infrastructure.
Cost Optimization — By tracking hardware lifecycles, software licenses, and cloud resource assignments, a CMDB helps identify underutilized assets and upcoming renewals.
For related infrastructure management guides, see our IPAM comparison: phpIPAM vs NIPAP vs NetBox and IT asset management: Snipe-IT vs InvenTree vs PartKeepr.
FAQ
What is the difference between a CMDB and an asset inventory?
An asset inventory lists what you own (laptops, servers, licenses) and their basic attributes. A CMDB goes further by modeling relationships and dependencies between assets — which application runs on which server, which network switch connects to which firewall, and which business service depends on which infrastructure component. CMDBs support impact analysis, change management, and root cause investigation in ways that simple inventories cannot.
Should I use NetBox or GLPI for my CMDB?
Use NetBox if your focus is network infrastructure, IP address management, and data center documentation. NetBox excels at modeling physical and virtual network topology. Use GLPI if you need a broader ITSM platform that combines CMDB with helpdesk, procurement, license management, and project tracking. GLPI is better suited for IT departments that need end-to-end service management.
Can I integrate my CMDB with monitoring tools?
Yes. All three tools (NetBox, GLPI, Ralph) provide REST APIs for integration. NetBox is particularly popular with monitoring stacks — Prometheus can pull IP and device data, Ansible can use NetBox as an inventory source, and tools like PRTG and Zabbix can import network topology. GLPI integrates with monitoring via its FusionInventory plugin, which can automatically discover and inventory network devices.
How do I keep my CMDB data accurate and up to date?
The biggest challenge with any CMDB is data freshness. Best practices include: (1) Automate discovery using agents (FusionInventory for GLPI) or network scanning (Nmap integrations for NetBox). (2) Integrate with your provisioning system so new assets are automatically registered. (3) Implement change management processes that require CMDB updates before any infrastructure change. (4) Run periodic reconciliation audits comparing the CMDB against actual network state.
Is a self-hosted CMDB suitable for small teams?
For teams managing fewer than 50 devices, a spreadsheet may suffice. But even small teams benefit from a CMDB once they manage multiple services, cloud instances, and network devices. NetBox is lightweight enough for small deployments (runs on 1 GB RAM) and provides immediate value for IP address tracking alone. GLPI’s helpdesk features make it valuable even for teams of 5-10 people managing shared IT resources.
How much does it cost to self-host a CMDB?
All three tools discussed (NetBox, GLPI, Ralph) are free and open source. Infrastructure costs depend on scale: a small NetBox instance runs on a $5/month VPS with 1 GB RAM. GLPI requires slightly more resources (2 GB RAM recommended) due to its full ITSM feature set. For organizations with 1,000+ assets, plan for 4 GB RAM and a dedicated database server. Compare this to commercial CMDB platforms (ServiceNow, BMC Helix) that cost tens of thousands of dollars annually.
CMDB Implementation Checklist
- Define your data model — What asset types, relationships, and custom fields do you need?
- Choose your platform — NetBox for network focus, GLPI for full ITSM, Ralph for asset lifecycle
- Deploy with Docker — Use the compose configurations above for reproducible deployments
- Import existing inventory — Start with a CSV import of your current assets
- Set up network discovery — Configure automated scanning to keep data fresh
- Integrate with monitoring — Connect your CMDB to Prometheus, Zabbix, or Nagios
- Train your team — Establish processes for updating the CMDB during changes
- Schedule regular audits — Verify CMDB accuracy against actual infrastructure quarterly