LordExtreme Posted April 10, 2016 Share Posted April 10, 2016 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 Quote Link to comment
saarg Posted April 10, 2016 Share Posted April 10, 2016 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. Quote Link to comment
LordExtreme Posted April 10, 2016 Author Share Posted April 10, 2016 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 ? Quote Link to comment
itimpi Posted April 10, 2016 Share Posted April 10, 2016 The command starts with a lower case 'i' (Linux is case sensitive). Quote Link to comment
LordExtreme Posted April 10, 2016 Author Share Posted April 10, 2016 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 Quote Link to comment
saarg Posted April 10, 2016 Share Posted April 10, 2016 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 Quote Link to comment
LordExtreme Posted April 10, 2016 Author Share Posted April 10, 2016 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 Quote Link to comment
saarg Posted April 10, 2016 Share Posted April 10, 2016 I don't know vnstat, so not more I can help you with unfortunately. Quote Link to comment
vizi0n Posted January 3, 2017 Share Posted January 3, 2017 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. Quote Link to comment
RobJ Posted January 3, 2017 Share Posted January 3, 2017 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. Quote Link to comment
vizi0n Posted January 12, 2017 Share Posted January 12, 2017 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" Quote Link to comment
d2dyno Posted June 23, 2018 Share Posted June 23, 2018 (edited) 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, 2018 by d2dyno Quote Link to comment
dorgan Posted September 28, 2018 Share Posted September 28, 2018 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 ** Quote Link to comment
Recommended Posts
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.