Jump to content
LordExtreme

Vnstat on Unraid 6.1.9

13 posts in this topic Last Reply

Recommended Posts

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

Share this post


Link to post

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.

Share this post


Link to post

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 ?

Share this post


Link to post

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

Share this post


Link to post

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

 

Share this post


Link to post

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

Share this post


Link to post

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

 

 

Share this post


Link to post

I don't know vnstat, so not more I can help you with unfortunately.

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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" :)

 

Share this post


Link to post
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

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.