April 10, 201610 yr 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
April 10, 201610 yr 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.
April 10, 201610 yr 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 ?
April 10, 201610 yr Author man thank you i didn't see the big I is running right now but how can I restart it ? i have change the config for myself
April 10, 201610 yr man thank you i didn't see the big I is running right now 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
April 10, 201610 yr 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
January 3, 20179 yr 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.
January 3, 20179 yr 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.
January 12, 20179 yr 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"
June 23, 20188 yr 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 June 23, 20188 yr by d2dyno
September 28, 20187 yr I just released a plugin for vnstat on unRaid. Not only does it install vnstat, but it also adds a tab to the existing stats page to display the output. https://github.com/dorgan/UnRaid-networkstats/ ** Edit : it does not utilize Docker **
Archived
This topic is now archived and is closed to further replies.