Installation¶
This guide covers how to install the NetBox HealthCheck Plugin in various NetBox environments.
Requirements¶
Before installing, ensure you meet the following requirements:
- NetBox >= 4.5.0
- Python >= 3.12.0
- Redis (for NetBox's cache and task queue)
- PostgreSQL (NetBox's database)
Installation Methods¶
Using pip¶
The simplest way to install the plugin:
Using netbox-docker¶
If you're using netbox-docker:
- Add to your
plugin_requirements.txt:
- Rebuild your NetBox container:
From Source¶
For development or testing the latest changes:
git clone https://github.com/netbox-community/netbox-healthcheck-plugin.git
cd netbox-healthcheck-plugin
pip install -e .
Configuration¶
After installation, enable the plugin in your NetBox configuration file.
Basic Configuration¶
Add to /opt/netbox/netbox/netbox/configuration.py (or /configuration/plugins.py for netbox-docker):
Restart NetBox¶
After configuration, restart NetBox services:
Verification¶
Verify the installation by visiting the health check endpoint:
You should see a page displaying health check results for:
- ✅ Database connectivity
- ✅ Cache operations
- ✅ Redis cache instance
- ✅ Redis tasks instance
Troubleshooting¶
Plugin Not Found¶
If NetBox reports the plugin is not installed:
-
Verify the plugin is installed in the correct Python environment:
-
Ensure NetBox is using the same Python environment where the plugin was installed
Import Errors¶
If you see import errors:
-
Check that all dependencies are installed:
-
Verify your NetBox version meets the minimum requirement (>= 4.5.0)
Health Check Failures¶
If health checks are failing:
- Database: Verify PostgreSQL is running and NetBox can connect
- Cache: Check Redis is running and configured correctly in NetBox's
REDISsettings - Redis instances: Verify both
cachingandtasksRedis instances are accessible
For more configuration options, see the Configuration guide.
Next Steps¶
- Configuration Options - Customize which health checks run
- Contributing - Help improve the plugin