Jump to content
dorgan

[Plugin] Network Stats

209 posts in this topic Last Reply

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

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
2019.02.11 release

Share this post


Link to post
5 hours ago, dorgan said:

(I am working on getting added to the community application)

 

This is one of the apps caught in the weird problems with the appfeed in community applications.  Until the next release of CA and it's replacement application feed (next few days), it is unavailable from within CA.

Share this post


Link to post

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

 

Share this post


Link to post
But, It won't start the service for me.  Always shows stopped.

 

It’s miss detecting, known bug, will be fixed in a release either this week or weekend.

 

Share this post


Link to post
55 minutes ago, dorgan said:

New update has been released, that corrects this issue.

Still no go.  (Unless a reboot is required)

Share this post


Link to post
Still no go.  (Unless a reboot is required)

Reboot should not be required. Let me dig in a little more tomorrow night.

Share this post


Link to post
Not starting for me either

I have identified the problem and will release a fix tonight.

Share this post


Link to post
So I have updated the plugin but unfortunately, it is still not starting for me :/

And what about if you go into the setting and click start?

Share this post


Link to post
I tried that and no luck. I tried to remove the plug in and reinstall, I tried to reboot. No luck

And what happens when you go into settings?

Share this post


Link to post

 

Same issue. Details:

Plugins | Network Stats

Network Stats Settings

Interfaces to capture :  (ALL) eth0 eth1 (ALL)

VNSTAT Daemon: Stopped start (clicking start does nothing)


Stats | Network Stats:

vnstat service must berunning started to view network stats.

 

Share this post


Link to post
 

Same issue.

 

What version of unRaid are you running?

 

Also if you run

/etc/rc.d/rc.vnstat start

from the terminal what is the output you get?

 

 

Share this post


Link to post
10 hours ago, dorgan said:

/etc/rc.d/rc.vnstat start

Still not working. See the screenshot for more details.

873749420_Screenshot-04_10_201823_07_59.png.13faead9b172c47707848b35bf53d3bb.png

 

 

Share this post


Link to post
51 minutes ago, FlorinB said:

Still not working. See the screenshot for more details.

873749420_Screenshot-04_10_201823_07_59.png.13faead9b172c47707848b35bf53d3bb.png

 

 

SAME HERE 😮

Share this post


Link to post

Ok maybe I need to double check how the page is detecting if the daemon is running. I’ll take a look.

Share this post


Link to post
Here you go
564788259_Screenshot2018-10-04at8_49_51PM.png.04fc697aa7ee6b8264afb34c7217baa9.png

Ok there in lies the problem. Mine is /var/run/vnstat/vnstat.pid.

I’ll release an update tomorrow night that detects either or.

Share this post


Link to post

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.