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.

Vnstat on Unraid 6.1.9

Featured Replies

Hello,

 

 

This is my first topic and sorry for my bad english but i need your help

 

I have a Unraid Server 6.1.9 with 24 TB HDD

 

 

and i really need vnstat on my machine but i can´t install it like

wget http://humdi.net/vnstat/vnstat-1.11.tar.gz

cd vnstat-1.15

make

make install

 

i cant "make" because the commando dosent found.

 

can anyone show my how i can install vnstat on my home server ?

 

 

Thank you for your help

 

lordextreme

You could try installing the txz package from here.

 

Save it in /boot/packages and install like this

 

installpkg /boot/packages/name-of-package

 

If this works, you can add the package in /boot/extra and it will install on each boot. If the extra folder doesn't exist, create it.

  • Author

okay thank you but unraid say : root@Tower:~# Installpkg /boot/packages/vnstat-1.13-x86_64-1_slack.txz

-bash: Installpkg: command not found

 

 

Is there another possibility ?

The command starts with a lower case 'i' (Linux is case sensitive).

  • Author

man thank you i didn't see the big I

 

is running right now  ;D

 

 

but  how can I restart it ?

 

i have change the config for myself

 

man thank you i didn't see the big I

 

is running right now  ;D

 

 

but  how can I restart it ?

 

i have change the config for myself

Sorry about the big letter. Autocorrect..

 

Would this work maybe

 

/etc/rc.d/rc.vnstat stop

 

/etc/rc.d/rc.vnstat start

  • Author

no problem saarg

 

 

 

Unfortunately does not work the stop and start

 

unraid say

 

root@Tower:~# /etc/rc.d/rc.vnstat stop

-bash: /etc/rc.d/rc.vnstat: Permission denied

root@Tower:~# su

root@Tower:~# /etc/rc.d/rc.vnstat start

bash: /etc/rc.d/rc.vnstat: Permission denied

 

I do not want my server restart for vnstat  :-\

 

Edit:

in the dir from /etc/rc.d/ i cannot the rc.vnstat

 

 

  • 8 months later...

I know that this thread is old, but if anyone ever has the same issue, this worked for me (on 6.2.4):

 

I have downloaded the package in my /boot/extra folder (packages in this folder are automatically installed at each boot)

mkdir /boot/extra
cd /boot/extra
wget http://packages.slackonly.com/pub/packages/14.1-x86_64/network/vnstat/vnstat-1.13-x86_64-1_slack.txz

 

then I installed and started the vnstat daemon using these commands:

pkginstall vnstat-1.13-x86_64-1_slack.txz
chdmod +x /etc/rc.d/rc.vnstat
/etc/rc.d/rc.vnstat start

 

then I updated my /boot/config/go file to add the vnstat startup commands on every reboot

nano /boot/config/go

added these 2 lines at the bottom of the file:
chmod +x /etc/rc.d/rc.vnstat
/etc/rc.d/rc.vnstat start

"ctrl-x then enter" to save file

 

The rc.vnstat file is not created as executable when installing the package so it needs to be chmod'ed +x manually.

 

The logs wont survive a reboot though, and you need to create a backup script for that if you wish to keep them.

Anything in /boot/packages has to be manually installed, on every boot if you want it.  Any package in /boot/extra is automatically installed on every boot, before go is executed.  It would surprise me if it isn't chmod'ed correctly too, but you'd need to test that.

  • 2 weeks later...

Anything in /boot/packages has to be manually installed, on every boot if you want it.  Any package in /boot/extra is automatically installed on every boot, before go is executed.  It would surprise me if it isn't chmod'ed correctly too, but you'd need to test that.

 

It really is. I have moved my package to the /boot/extra folder so that it installs automatically. Here is the result of the file attribute after a reboot:

 

root@Tower:~# ls /etc/rc.d/rc.vnstat -la
-rw-r--r-- 1 root root 1383 Apr 27  2015 /etc/rc.d/rc.vnstat

 

I will update my "guide" in my previous post to save a line in "go" :)

 

  • 1 year later...
pkginstall vnstat-1.13-x86_64-1_slack.txz

This is incorrect, and should be:

installpkg vnstat-1.13-x86_64-1_slack.txz

and this is also wrong:

chdmod +x /etc/rc.d/rc.vnstat

should be:

chmod +x /etc/rc.d/rc.vnstat

And this is the latest version I could find on slack: https://slackonly.com/pub/packages/14.2-x86_64/network/vnstat/vnstat-1.17-x86_64-1_slonly.txz

 

I also made logs persistent by changing /etc/vnstat.conf:

DatabaseDir "/mnt/user/appdata/vnstat"

and then adding this line to the GO file:

cp /mnt/user/appdata/vnstat/vnstat.conf /etc/

 

Edited by d2dyno

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

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.