A NetBox plugin for pinging and discovering IPs in your network.
- Ping IPs and subnets directly from NetBox
- Auto-discover new IPs
- Track IP status with custom fields and tags
- Bulk scan operations
- Dark mode compatible UI
pip install netbox-pingAdd to your configuration.py:
PLUGINS = ['netbox_ping']
PLUGINS_CONFIG = {
'netbox_ping': {
'coming_soon': True
}
}- Install the plugin
- Navigate to Plugins > NetBox Ping
- Click "Create Required Fields & Tags"
- Start scanning your networks!
- NetBox 4.0 or later
- Python 3.8 or later
pingcommand available on the system
- Install the package from your NetBox installation path:
source /opt/netbox/venv/bin/activate cd /opt/netbox pip install git+https://github.com/DenDanskeMine/netbox-prefix-pinger.git
- Add the plugin to
PLUGINSin/opt/netbox/netbox/netbox/configuration.py:PLUGINS = [ 'netbox_ping', ]
- Apply database migrations:
cd /opt/netbox python3 manage.py migrate
- Collect static files:
python3 manage.py collectstatic
- Restart the NetBox service:
sudo systemctl restart netbox
- Navigate to the "Plugins" menu in NetBox
- Select "Network Tools" from the dropdown
- You'll see a list of all prefixes in your NetBox instance
- Two actions are available for each prefix:
- Check Status: Checks all existing IPs in the prefix
- Scan Subnet: Discovers and adds new active IPs
- 🟢 Online Tag: IP is responding to ping
- 🔴 Offline Tag: IP is not responding
- Custom Field "Up_Down": Boolean indicator of IP status
No additional configuration is required. The plugin will automatically:
- Create required custom fields
- Create online/offline tags
- Set up necessary permissions
Users need the following permissions to use the plugin:
ipam.view_prefixipam.view_ipaddress
To set up a development environment:
-
Clone the repository:
git clone https://github.com/yourusername/netbox-ping.git cd netbox-ping -
Create a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install development dependencies:
pip install -e .
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or need help, please:
- Open an issue on GitHub
- Check existing issues for answers
- Contact the maintainer
- Built for NetBox (https://github.com/netbox-community/netbox)
- Inspired by the need for simple IP status tracking, this is my first plugin for NetBox.
- I'm not a good python developer, so this is probably not the best way to do this.
- The plugin
netbox-interface-synchronizationgave me a lot of inspiration, code wise, as the offical NetBox development repo had some issues, i couldn't get around. - The plugin netbox-interface-synchronization is a great plugin, and i recommend using it if you need to synchronize interfaces.