python-meraki-netbox-plugin-pdu
Port variant py311
Summary Power Distribution Unit plugin for Netbox (3.11)
Package version 0.0.9
Homepage https://github.com/minitriga/axians-netbox-plugin-pdu
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 07 JAN 2023, 04:18:24 UTC
Port created 07 JAN 2023, 04:18:24 UTC
Subpackage Descriptions
single # Netbox PDU Plugin A plugin for [Netbox] to get power distribution unit Information. `axians-netbox-plugin-pdu` is using [Easy SNMP], [Django-RQ] and [RQ-Scheduler] to display PDU information within Netbox. ## Installation The plugin is available as a Python package in pypi and can be installed with pip ``` pip install axians-netbox-plugin-pdu ``` > The plugin is compatible with NetBox 2.9.1 and higher Once installed, the plugin needs to be enabled in your `configuration.py` ```python PLUGINS = ["axians_netbox_pdu"] # PLUGINS_CONFIG = { # "axians_netbox_pdu": { # ADD YOUR SETTINGS HERE # } # } ``` There are a number of default settings that can be altered using the following list of settings: * `schedule`: Boolean (default True). If True, this will enable automatic polling of your PDU Devices. * `schedule_interval`: Integer (default 300 seconds). Length of time between each scheduled poll. * `snmp_read`: String (default public) SNMP read value for your SNMP enabled PDU's. * `snmp_write`: String (default private) SNMP write value for your SNMP enabled PDU's. * `rack_view_pdu_devices`: Boolean (default True), if True, the power usage per PDU will be displayed on the rack page. * `rack_view_usage_summary`: Boolean (default True), if True, the a summary information tile will appear within the rack page to show true power utilization within the rack. * `rack_view_summary_unit`: String (default watts), option to display watts/kilowatts on the rack summary view. If "kilowatts" is used the power usage summary will display in Kilowatts. ## Usage ### Preparation For this plugin to work there must be a new worker added to your Netbox installation. The new worker is a custom scheduler that will schedule the PDU Tasks to run on an interval and utilize the django-rq library. > You can utilize this library without the automated tasks by feeding Netbox the power usage information via the `axians_netbox_pdu` API. ### Default Environment For the standard install please use the included [netbox-pdu.service] and install using the standard [Netbox Documentation]. ### Docker Environment To use within Docker make sure you have a container running that runs the following command: `python manage.py pduschedule` ### Adding a new PDU Configuration Once installed and the `pduscheduler` is running you can attach a `PDUConfig` to a DeviceType. To do this you must have a DeviceType configured with PowerOutlets. You can specify the DeviceType, PDU SNMP OID and the Unit. This enables the plugin to know what SNMP OID to collect per DeviceType. Now a PDUConfig has been created a device must be created with a management IP. Once this is done the plugin can poll the PDU via SNMP and save the power usage. This can also be done via Bulk Import or via the API. > If a a PDUConfig is not created for a DeviceType and the Device does not have a Primary IP no data will be collected. ### API The plugin includes several endpoints to manage the PDUConfig and PDUStatus. ``` GET /api/plugins/pdu/pdu-config/ List PDUConfig POST /api/plugins/pdu/pdu-config/ Create PDUConfig PATCH/PUT /api/plugins/pdu/pdu-config/{id}/ Edit a specific PDUConfig DELETE /api/plugins/pdu/pdu-config/{id}/ Delete a specific PDUConfig GET /api/plugins/pdu/pdu-status/ List PDUStatus POST /api/plugins/pdu/pdu-status/ Create PDUStatus PATCH/PUT /api/plugins/pdu/pdu-status/{id}/ Edit a specific PDUStatus DELETE /api/plugins/pdu/pdu-status/{id}/ Delete a specific PDUStatus ``` ## Screen Shots List of PDUConfig Instances
Configuration Switches (platform-specific settings discarded)
PY310 OFF Build using Python 3.10 PY311 ON Build using Python 3.11
Package Dependencies by Type
Build (only) python-pip:single:py311
autoselect-python:single:standard
Build and Runtime python311:single:standard
Runtime (only) python-easysnmp:single:py311
python-invoke:single:py311
python-rq-scheduler:single:py311
Download groups
main mirror://PYPIWHL/35/1f/37f6fc6fed2c9b74f561a7d1d5a1cea5683b03e5920ee69e2dd8d99cfd2d
Distribution File Information
b5e3e45555ca4edd37a49bd1a35da51efe9380a81c29be7ad868bb530e3bf70f 27903 meraki_netbox_plugin_pdu-0.0.9-py3-none-any.whl
Ports that require python-meraki-netbox-plugin-pdu:py311
No other ports depend on this one.