[Plugin] Network Stats


dorgan

Recommended Posts

Introduction

Network Stats  is a plugin to visualize bandwidth within unRAID.

 

Support Fund

If you wish to do so, you can lear more here.

 

Installation

Community Applications - Network Stats is available via Community Applications plugin.

 

- Plugins Tab (manual)

Go to the Plugins tab

Click on Install Plugin

Paste the following address in the input field: https://raw.githubusercontent.com/dorgan/Unraid-networkstats/master/networkstats.plg

Click Install

 

Running the plugin

After installing the plugin, you can modify the settings in the web UI, via the following method:

 

Go to Settings > Network Services

Click on Network Stats

You can now choose which interfaces to display

 

Once configured you can view the graphs by going to Stats and there will be a new tab called "Network Stats" on that page

 

Changelog

2020.04.21a - Update to make sure interfaces get added

2020.04.21 - Updating to FA icon

2020.04.15a - Removing Stray function

2020.04.15 - Cleaning up layout and adding a button for stopping/starting the vnstat daemon

2020.04.14c - Added the ability to set an alias (friendly name) for each interface

2020.04.14b - Correcting PHP Syntax issue

2020.04.14a - Longer interface names were getting truncated, this is now fixed

2020.04.14 - Add ability to track more interfaces

2020.02.16 - Remove external dep of vnstat and make it pull the specific version from the plugin repo

2019.12.24a - Updated to vnstat 2.4 and corrected MD5 hash issue

2019.02.11 - Correct image output

2018.12.11b - Fix vnstat.conf issue and remove dependency on dynamix plugin

2018.10.10 - Fix breaking unRaid

  Remove using DOCKER_CONFIG_APP_PATH

  Revert to  use /var/lib/vnstat for vnstat db

  future release will add functionality for data to persist across reboots and will utilize events on when to move data in/out of memory.

 

2018.10.07a - Update vnstat.conf and set MaxBandwidth to 0

2018.10.07 - Update plugin to use docker appdata path

2018.10.06c - Updated plugin to work on non cache drive systems.

2018.10.06b - Corrected order of creating folders and copying configs

2018.10.06a - corrected file paths and pid paths

2018.10.03 -   Fixed plugin to properly detect vnstat daemon status

2018.10.03 -   Fix Broken Plugin

  Correct install and plugin to start vnstat daemon

 

2018.10.02 -   More fixes

  Add ability for user to start/stop vnstat

  Fix detecting of vnstat daemon

  Make data persist across restarts

 

2018.09.29 - A bunch of fixes and updates

  Changing icons and Correcting sizes

  Update settings to detect interfaces

  Update install script to detect interfaces

 

2018.09.27d - Correction to start vnstat

 

2018.09.27c - Quick Tweaks

  Changed author to actual name

  Corrected Status label on settings screen

 

2018.09.27b - Initial Release

  Initial release, right now using default image output from vnstati, but will be updating to a better library soon

Edited by dorgan
2020.04.21a release
Link to comment
  • limetech changed the title to [Plugin] Network Stats

Available now (if you update CA).  But, It won't start the service for me.  Always shows stopped.

Oct 2 19:19:21 ServerA root: plugin: creating: /boot/config/plugins/networkstats/networkstats.cfg - from INLINE content
Oct 2 19:19:21 ServerA root: plugin: running: anonymous
Oct 2 19:19:23 ServerA vnstatd[32070]: vnStat daemon 1.18 started. (pid:32070 uid:0 gid:0)
Oct 2 19:19:23 ServerA vnstatd[32070]: Monitoring: docker0 (1000 Mbit) as0t5 (10 Mbit) vnet1 (10 Mbit) as0t1 (10 Mbit) as0t10 (10 Mbit) as0t8 (10 Mbit) gretap0 (1000 Mbit) veth4967533 (10000 Mbit) as0t4 (10 Mbit) virbr0-nic (1000 Mbit) vnet0 (10 Mbit) gre0 (1000 Mbit) as0t0 (10 Mbit) veth3a83667 (10000 Mbit) veth78066bc (10000 Mbit) as0t7 (10 Mbit) veth3e4db68 (10000 Mbit) as0t3 (10 Mbit) ip_vti0 (1000 Mbit) veth70a7165 (10000 Mbit) as0t11 (10 Mbit) tunl0 (1000 Mbit) br0 (1000 Mbit) virbr0 (1000 Mbit) veth4b0ff1d (10000 Mbit) ...
Oct 2 19:19:23 ServerA vnstatd[32070]: SIGTERM received, exiting.
Oct 2 19:19:27 ServerA vnstatd[32241]: vnStat daemon 1.18 started. (pid:32241 uid:0 gid:0)
Oct 2 19:19:27 ServerA vnstatd[32241]: Monitoring: docker0 (1000 Mbit) as0t5 (10 Mbit) vnet1 (10 Mbit) as0t1 (10 Mbit) as0t10 (10 Mbit) as0t8 (10 Mbit) gretap0 (1000 Mbit) veth4967533 (10000 Mbit) as0t4 (10 Mbit) virbr0-nic (1000 Mbit) vnet0 (10 Mbit) gre0 (1000 Mbit) as0t0 (10 Mbit) veth3a83667 (10000 Mbit) veth78066bc (10000 Mbit) as0t7 (10 Mbit) veth3e4db68 (10000 Mbit) as0t3 (10 Mbit) ip_vti0 (1000 Mbit) veth70a7165 (10000 Mbit) as0t11 (10 Mbit) tunl0 (1000 Mbit) br0 (1000 Mbit) virbr0 (1000 Mbit) veth4b0ff1d (10000 Mbit) ...
Oct 2 19:19:45 ServerA ool www[31175]: /usr/local/emhttp

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.