Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] Network Stats

Featured Replies

  • Author
@dorgan just to clarify you did mean /usr/local/emhttp/plugins/networkstats?
 

Yes sorry, autocorrect strikes again
  • Replies 311
  • Views 81.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • new release is out there, its rough, but it brings this plugin back to life from having additional steps to get it working.  Any and all feedback is appreciated and will be considered.

  • currently because of dependency changes from 6.9 to 6.10, this plugin isnt fully working by itself at least the image outputs arent.  in order to fix the outputs you would have to install the missing

  • outrigger999
    outrigger999

    Installing the dependencies worked for me. There is however a typo in the above script which has to do with the install of freetype-2.6.3. Find the line below in the above script and you will notice i

Posted Images

lol no worries.

  • Author

@MMW, new version released, please uninstall the current version and install the new one.  Also can you post back the log from the install if it doesnt work...

Edited by dorgan
typo

I think this is the log you need.

Oct 6 16:53:35  root: plugin: running: anonymous
Oct 6 16:53:35  vnstatd[4539]: SIGTERM received, exiting.
Oct 6 16:53:59  emhttpd: req (4): cmd=/plugins/community.applications/scripts/pluginInstall.sh&arg1=install&arg2=https://raw.githubusercontent.com/dorgan/unraid-networkstats/master/networkstats.plg&csrf_token=****************
Oct 6 16:53:59  emhttpd: cmd: /usr/local/emhttp/plugins/community.applications/scripts/pluginInstall.sh install https://raw.githubusercontent.com/dorgan/unraid-networkstats/master/networkstats.plg
Oct 6 16:53:59  root: plugin: creating: /boot/config/plugins/networkstats/networkstats-2018.10.06b-x86_64-1.txz - downloading from URL https://raw.githubusercontent.com/dorgan/Unraid-networkstats/master/archive/networkstats-2018.10.06b-x86_64-1.txz
Oct 6 16:54:00  root: plugin: creating: /boot/config/plugins/networkstats/networkstats-2018.10.06b-x86_64-1.md5 - downloading from URL https://raw.githubusercontent.com/dorgan/Unraid-networkstats/master/archive/networkstats-2018.10.06b-x86_64-1.md5
Oct 6 16:54:00  root: plugin: skipping: /boot/config/plugins/networkstats/networkstats.cfg already exists
Oct 6 16:54:00  root: plugin: running: anonymous
Oct 6 16:54:01  vnstatd[15481]: vnStat daemon 1.18 started. (pid:15481 uid:0 gid:0)
Oct 6 16:54:01  vnstatd[15481]: Monitoring: eth0 (1000 Mbit) 

I updated the plugin via the menu system after installing via http link to the plg instead of through Apps.  I can verify it's now working for me also. 

 

Previously it was throwing the following error.

 

Error: pidfile "/var/run/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.

Edited by prongATO

  • Author

EXCELLENT!! Thank you everyone for sticking with me on this. It was my first plugin.

It's not working for me, i still get the lock failed message. Should I uninstall and then remove the left over networkstats.cfg file before reinstalling

  • Author
It's not working for me, i still get the lock failed message. Should I uninstall and then remove the left over networkstats.cfg file before reinstalling

Yes, please try that
1 minute ago, MMW said:

It's not working for me, i still get the lock failed message. Should I uninstall and then remove the left over networkstats.cfg file before reinstalling

I initially installed it via the Apps tab option.  I then uninstalled it and used one of the direct links posted here and while I was reading this thread I went back to plugins tab and it showed it had an update so I updated it and it's now working flawlessly.  If the remove and reinstall doesn't work I can give you an exact step-by-step on how I got it working.

Same error, @prongATO could you do me those instructions?

Thanks

13 minutes ago, MMW said:

Same error, @prongATO could you do me those instructions?

Thanks

Sure,

 

Uninstall the .plg file via the web interface under PLUGINS

 

reinstall via the tab under PLUGINS-INSTALL PLUGIN (via direct http link)  from here "https://raw.githubusercontent.com/dorgan/Unraid-networkstats/master/networkstats.plg"

 

Check the PLUGINS tab again and it will show there's an update for the app, go ahead and update it. 

 

If that doesn't work I did one more thing you can try and give the group/user that runs this app write access to the vnstat.pid file in /var/run

 

 

Edited by prongATO

That won't help me on the link as its the same place the community application gets it from so now it the latest version anyway.

I tried the chmod option as well and that does'nt appear to have helped either.

 

same for me, still 

 

Oct 6 12:57:00 Tower vnstatd[23408]: Error: pidfile "/var/run/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.

9 minutes ago, MMW said:

That won't help me on the link as its the same place the community application gets it from so now it the latest version anyway.

I tried the chmod option as well and that does'nt appear to have helped either.

 

I know the version didn't work but I listed the steps that worked for me.  If they don't work following each step then I have no idea.  It worked for me in that specific order.  I just did them less than 45 minutes ago.

 

No update showing on the system.

Question  - as shown below the rc.vnstat is looking for the PDFILE in /var/run/vnstat/vnstat.pid 

rc.vnstat 
 
CONFIGFILE=/etc/vnstat.conf
PIDFILE=/var/run/vnstat/vnstat.pid
DAEMON=vnstatd
 

But the vnstat.conf is looking in 


# file used as daemon pid / lock file
PidFile "/var/run/vnstat.pid"

 

could this be causing the issue?

  • Author

The install should be copying vnstat.con from /usr/local/emhttp/plugins/networkstats/vnstat.conf and overwriting the one in /etc/vnstat.conf fixing all the path issues.

So do we think it's not doing the copy? If I tried the copy manually?

  • Author
Just now, MMW said:

So do we think it's not doing the copy? If I tried the copy manually?

you can definitely do it manually, but I am really interested in why its not copying for you. 

2 minutes ago, dorgan said:

The install should be copying vnstat.con from /usr/local/emhttp/plugins/networkstats/vnstat.conf and overwriting the one in /etc/vnstat.conf fixing all the path issues.

Thus it may need the write permission I wrote about.

more than willing to help, I can wait if you want to try something else.

 

  • Author
4 minutes ago, dorgan said:

you can definitely do it manually, but I am really interested in why its not copying for you. 

@MMWJust thought of something.  Do you have a cache drive setup??

Edited by dorgan

3 minutes ago, MMW said:

more than willing to help, I can wait if you want to try something else.

 

Just a thought

 

By default, at least on my system, the file vnstat.pid that is unavailable is root/root.  If the process is trying to replace that file then it would need elevated permissions.  Try chmod +w vnstat.pid in /var/run/

 

image.png.f31b08a7bbf1f496117a7fc44f6bcbc9.png

Edited by prongATO

  • Author
3 minutes ago, prongATO said:

Thus it may need the write permission I wrote about.

The permissions are all pretty much the same in unraid

  • Author
1 minute ago, prongATO said:

By default, at least on my system, the file vnstat.pid that is unavailable is root/root.  If the process is trying to replace that file then it would need elevated permissions.  Try chmod +w vnstat.pid in /var/run/

I can add that to the setup to see if it helps.

No cache drive on this system, as a network storage and plex unit I found it not really necessary.

 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.