LordExtreme

Vnstat on Unraid 6.1.9

11 posts in this topic

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

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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 ?

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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

 

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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

 

 

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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

 

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

Copyright © 2005-2017 Lime Technology, Inc. unRAID® is a registered trademark of Lime Technology, Inc.