NetBox plugin for HealthCheck.
Project description
NetBox HealthCheck Plugin
A NetBox plugin that provides comprehensive health monitoring for your NetBox installation.
Features
This plugin integrates django-health-check with NetBox to provide health monitoring of critical services:
- Database - PostgreSQL connectivity and operations
- Cache - Django cache framework (Redis-backed)
- Redis Instances - Both caching and task queue Redis connections
- Extensible - Add custom health checks via configuration
Health status is exposed at /plugins/netbox_healthcheck_plugin/healthcheck/ with both HTML and JSON response formats for integration with monitoring systems.
Installation
pip install netbox-healthcheck-plugin
Add to your NetBox configuration.py:
PLUGINS = ['netbox_healthcheck_plugin']
PLUGINS_CONFIG = {
"netbox_healthcheck_plugin": {}
}
Restart NetBox and visit: https://your-netbox/plugins/netbox_healthcheck_plugin/healthcheck/
Compatibility
| NetBox Version | Plugin Version | Python Version |
|---|---|---|
| 4.5+ | 0.3.0 | 3.12, 3.13, 3.14 |
| 4.0 - 4.4 | 0.2.0 | 3.10, 3.11, 3.12 |
| 3.4 - 3.7 | 0.1.x | 3.10, 3.11, 3.12 |
See COMPATIBILITY.md for detailed version information.
Configuration
Customize which health checks run via PLUGINS_CONFIG:
PLUGINS_CONFIG = {
"netbox_healthcheck_plugin": {
"checks": [
"health_check.Database",
"health_check.cache.backends.CacheBackend",
"netbox_healthcheck_plugin.backends.redis.NetBoxRedisCacheHealthCheck",
"netbox_healthcheck_plugin.backends.redis.NetBoxRedisTasksHealthCheck",
]
}
}
You can add custom health checks or disable specific checks. See the Configuration Guide for more options.
Documentation
Full documentation is available at: https://netbox-community.github.io/netbox-healthcheck-plugin/
Development
This plugin uses Ruff for linting and formatting:
# Install development dependencies
pip install -e ".[test,docs]"
# Run linting and formatting
ruff check .
ruff format .
# Run tests
pytest
# Install pre-commit hooks
pre-commit install
# Build documentation
mkdocs serve
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Source: GitHub Repository
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netbox_healthcheck_plugin-0.3.0.tar.gz.
File metadata
- Download URL: netbox_healthcheck_plugin-0.3.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fafcebf37d9e0e239a1e8636aad95cdf21f94d383aa7b4afcff8299d00d108af
|
|
| MD5 |
3806902b314a5efe1815cf47f6090181
|
|
| BLAKE2b-256 |
0779d44dd7eb08934fca985383844b2eed0a7d8accaecc02fb0a3c017b79ff29
|
Provenance
The following attestation bundles were made for netbox_healthcheck_plugin-0.3.0.tar.gz:
Publisher:
publish-pypi.yml on netbox-community/netbox-healthcheck-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_healthcheck_plugin-0.3.0.tar.gz -
Subject digest:
fafcebf37d9e0e239a1e8636aad95cdf21f94d383aa7b4afcff8299d00d108af - Sigstore transparency entry: 938057916
- Sigstore integration time:
-
Permalink:
netbox-community/netbox-healthcheck-plugin@122014c7dd899c699cad4f400909b03d5d0cce57 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/netbox-community
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@122014c7dd899c699cad4f400909b03d5d0cce57 -
Trigger Event:
push
-
Statement type:
File details
Details for the file netbox_healthcheck_plugin-0.3.0-py3-none-any.whl.
File metadata
- Download URL: netbox_healthcheck_plugin-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
049ebdcb80fc53c0262a5432bec8dd649ebb406e3f9ca4a1a9323c2172eed382
|
|
| MD5 |
b5fd5d6709879904cd88ee5bc01e0f76
|
|
| BLAKE2b-256 |
aa30288c6fe05dfebfe14a6cefb8689940b22cc49775f002a5d8c1670c39e109
|
Provenance
The following attestation bundles were made for netbox_healthcheck_plugin-0.3.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on netbox-community/netbox-healthcheck-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_healthcheck_plugin-0.3.0-py3-none-any.whl -
Subject digest:
049ebdcb80fc53c0262a5432bec8dd649ebb406e3f9ca4a1a9323c2172eed382 - Sigstore transparency entry: 938057920
- Sigstore integration time:
-
Permalink:
netbox-community/netbox-healthcheck-plugin@122014c7dd899c699cad4f400909b03d5d0cce57 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/netbox-community
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@122014c7dd899c699cad4f400909b03d5d0cce57 -
Trigger Event:
push
-
Statement type: