Author Topic: Vnstat on Unraid 6.1.9  (Read 502 times)

Offline LordExtreme

  • Member
  • **
  • Posts: 4
Vnstat on Unraid 6.1.9
« on: April 10, 2016, 06:29:30 AM »
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

Offline saarg

  • Community Developer
  • Hero Member
  • *****
  • Posts: 1900
Re: Vnstat on Unraid 6.1.9
« Reply #1 on: April 10, 2016, 07:10:14 AM »
You could try installing the txz package from here.

Save it in /boot/packages and install like this

Code: [Select]
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.
« Last Edit: April 10, 2016, 08:47:07 AM by saarg »

Offline LordExtreme

  • Member
  • **
  • Posts: 4
Re: Vnstat on Unraid 6.1.9
« Reply #2 on: April 10, 2016, 07:41:33 AM »
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 ?

Offline itimpi

  • Hero Member
  • *****
  • Posts: 4615
Re: Vnstat on Unraid 6.1.9
« Reply #3 on: April 10, 2016, 07:44:00 AM »
The command starts with a lower case 'i' (Linux is case sensitive).
unRAID 6.3.0-rc4 Pro on Asus F1A55M-LE/AMD A8-3870, 16GB (2*8GB DDR3 2100MHz), Corsair CXM750,  CyberPower CP1500EPFCLCD Backup UPS, Verbatim Store'N'Go 2GB, 2*AOC-SASLP-MV8, 4*SuperMicro 5in3 cages in Antec 1200 case,  Parity: 1*8TB Seagate, Cache: 500GB WD,  Data:  2*8TB Seagate, 8*6TB WD Red, 2* 4TB WD Green, 2*3TB WD Green, 1*Seagate 2TB Green, VMs: 500GB SSD, Plugins: - dynamix, cache_dirs, apcups, powerdown, Dockers: ownCloud, VMs:  various

Offline LordExtreme

  • Member
  • **
  • Posts: 4
Re: Vnstat on Unraid 6.1.9
« Reply #4 on: April 10, 2016, 07:57:09 AM »
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

Offline saarg

  • Community Developer
  • Hero Member
  • *****
  • Posts: 1900
Re: Vnstat on Unraid 6.1.9
« Reply #5 on: April 10, 2016, 08:50:11 AM »
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

Code: [Select]
/etc/rc.d/rc.vnstat stop
Code: [Select]
/etc/rc.d/rc.vnstat start

Offline LordExtreme

  • Member
  • **
  • Posts: 4
Re: Vnstat on Unraid 6.1.9
« Reply #6 on: April 10, 2016, 12:02:00 PM »
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

« Last Edit: April 10, 2016, 12:06:36 PM by LordExtreme »

Offline saarg

  • Community Developer
  • Hero Member
  • *****
  • Posts: 1900
Re: Vnstat on Unraid 6.1.9
« Reply #7 on: April 10, 2016, 01:19:43 PM »
I don't know vnstat, so not more I can help you with unfortunately.

Offline vizi0n

  • Member
  • **
  • Posts: 22
Re: Vnstat on Unraid 6.1.9
« Reply #8 on: January 03, 2017, 11:24:56 AM »
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)
Code: [Select]
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:
Code: [Select]
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
Code: [Select]
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.
« Last Edit: January 11, 2017, 07:05:31 PM by vizi0n »
unRAID Plus 6.2.4
CASE: ZALMAN MS800 w/ 3x Rosewill 4-in-3 MB: Gigabyte GA-970A-DS3p CPU: AMD FX-4130 RAM: 8GB Kingston HyperX
CONTROLLER: Adaptec ASR-51245 DRIVES: 5x HGST UltraStar 2TB, 2x Seagate 500GB, 1x WD Blue 1TB, 1x Kingston 240GB

Offline RobJ

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6617
  • Epox MF570 (nForce570)
Re: Vnstat on Unraid 6.1.9
« Reply #9 on: January 03, 2017, 12:15:55 PM »
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.
Need V6 help? Read me first!      Guide to Upgrading to UnRAID v6      Tips and Tweaks
Need other help, start here:  Troubleshooting      Questions?  Try the FAQ      Please help update the unRAID Wiki

Offline vizi0n

  • Member
  • **
  • Posts: 22
Re: Vnstat on Unraid 6.1.9
« Reply #10 on: January 11, 2017, 06:52:48 PM »
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:

Code: [Select]
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" :)
unRAID Plus 6.2.4
CASE: ZALMAN MS800 w/ 3x Rosewill 4-in-3 MB: Gigabyte GA-970A-DS3p CPU: AMD FX-4130 RAM: 8GB Kingston HyperX
CONTROLLER: Adaptec ASR-51245 DRIVES: 5x HGST UltraStar 2TB, 2x Seagate 500GB, 1x WD Blue 1TB, 1x Kingston 240GB