January 10, 201412 yr UpStatsBoard Install Script UpsBoard allows you to monitor your Usenet services (SABnzbd+, Sick Beard, & CouchPotato), Plex, & your system (CPU Usage, Memory Usage, Bandwidth Usage, & Disk Space Usage). No longer supported. I have moved to docker as it is much more stable. Demo Page - https://mattsplex.tv/StatusBoard/ Project Link - https://forums.plex.tv/index.php/topic/93731-upsboard-usenet-plex-stats/ GitHub - https://github.com/smdion/upsb Installs: vnstat, npm, node.js, git, UpStatsBoard via Clone How-To: 1. Install Script: Install into default directories and default eth0 (for vnstat): location=/mnt/cache/appdata eth=eth0 curl https://raw.github.com/smdion/upsb/master/install.sh | sudo sh curl https://raw.github.com/smdion/upsb/master/installx64.sh | sudo sh Download install.sh and change the install directories: https://raw.github.com/smdion/upsb/master/install.sh Than run install.sh Edit to your configuration: (Pastebin of my config.js - http://pastebin.com/raw.php?i=JtHhxQM1). Use my setup of "bandwidthServers" /mnt/cache/appdata/UpStatsBoard/config.js Start UpStatBoards: nohup sudo node /mnt/cache/appdata/UpStatsBoard/app > /dev/null 2>&1 & If you want to see the debugging from UpStatsBoard than run: sudo node /mnt/cache/appdata/UpStatsBoard/app Stop UpStatsBoard: pkill -f /mnt/cache/appdata/UpStatsBoard/app rm -R /mnt/cache/appdata/UpStatsBoard/cache Change Log: .0.1 - Initial Release .0.2 - Moved away from screen to nohup .0.3 - Fixed vnstat. --dbdir flag you needed to initiate the database first. Added below line. Please set config.js to the pastebin above. You may need to change to eth1 depending on your setup .0.4 - cleaned up mkdir commands with -p flag. Move installpkg command to install.sh out of run.sh .0.5 - added vnstat to cron to take bandwidth history .0.6 - persists across reboot .0.7 - changed install directories to variables. .0.8 - removed trolley installer, was installing incorrect GIT .0.9 - moved packages off of git to dropbox Known Issues: Login features do not work - not built into UpStatsBoard yet - per developer Qwerks: If clicking on bandwidth only shows current usage and has empty values for "This Month" "Last Month" and "Total" killall crond && crond How to completely remove: rm -r /mnt/cache/appdata/UpStatsBoard rm -r /boot/config/plugins/UpStatsBoard vi /boot/config go remove following lines #version .0.6 vnstat cron - via UpStatsBoard & start UpStatBoard echo '# Start of vnstat crontab entries' >> /var/spool/cron/crontabs/root echo '* * * * * /usr/bin/vnstat -u -i eth0 --dbdir /mnt/cache/appdata/vnstat' >> /var/spool/cron/crontabs/root echo '# End of vnstat crontab entries' >> /var/spool/cron/crontabs/root su root /mnt/cache/appdata/UpStatsBoard/run.sh #end vnstat & UpStatBoard crontab -e remove following lines # Start of vnstat crontab entries * * * * * /usr/bin/vnstat -u -i eth0 --dbdir /mnt/cache/appdata/vnstat # End of vnstat crontab entries Thanks: *=Matt=* @ Plex Forums - developing this webpage Bobat - recommend move to nohup
January 17, 201412 yr Author Okay, I have an easy 1 line code install that downloads the dependencies and runs UpStatsBoard on unRAID. This installs UpStatsBoard to /mnt/cache/appdata/UpStatsBoard/ curl http://www.seandion.com/unraid/upsb/install.sh | sudo sh
January 18, 201412 yr I've got it installed, but am having config problems with disk, bandwith and services. Would it be possible to post your config.js (minus the user id/passwords)?
January 18, 201412 yr Thanks!!! That cleared up everything!!! Now if I can just get Plex to report what's currently being watched.
January 18, 201412 yr Now if I can just get Plex to report what's currently being watched. They DYNAMIX GUI has a plugin for 'Active Streams'..you might take a look at that and see if it detects the PLEX streams.
January 18, 201412 yr Only a bit off topic, but, 'Can anyone point me to instructions on installing GIT?' I ran your script, smdion, and it was great right up to line 17. Line 17 is "git clone https://github.com/lienma/UpStatsBoard.git" Sure enough, I don't have git installed. So I went looking around in the forums and on github for git. Are there instructions posted on unRAID Forums describing how to install git?
January 18, 201412 yr Author Whoops. I forgot to have it install GIT before the GIT clone. I have update my script. Try again.
January 18, 201412 yr Author Thanks!!! That cleared up everything!!! Now if I can just get Plex to report what's currently being watched. I had to change around the numbers for recent TV/Movies, but it is updating. "plex": { "protocol": "http://", "host": "domain.com", "port": 32400, "username": "email", "password": "pass", "recentTVSection": 1, "recentMovieSection": 2 },
January 18, 201412 yr I'm sooooo close! But then this: libutempter.so.0 [pre] ... [email protected] node_modules/stylus --- [email protected] --- [email protected] --- [email protected] --- [email protected] ([email protected], [email protected]) --- [email protected] [email protected] node_modules/nib --- [email protected] ([email protected], [email protected], [email protected], [email protected]. [email protected] node_modules/express-uglify --- [email protected] --- [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/jade --- [email protected] --- [email protected] --- [email protected] --- [email protected] ([email protected]) --- [email protected] ([email protected], [email protected], [email protected]) --- [email protected] ([email protected]) --- [email protected] ([email protected]) [email protected] node_modules/express --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] ([email protected]) --- [email protected] ([email protected]) --- [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) screen: error while loading shared libraries: libutempter.so.0: cannot open shared object file: No such file or directory root@Tower:~# [/pre] LOG_install_upsboard.txt.zip
January 18, 201412 yr Author Thanks for testing this for me.. first time trying to build any sort of install script on unRAID. I have added the utempter package. Try again. EDIT. Updated it again.. saved to wrong location. You may after you get it running have to do a sudo vi /boot/config/go and make sure there isn't multiple copies of running upsb (even though thats not fully working right now)
January 18, 201412 yr I'm sooooo close! But then this: libutempter.so.0 [pre] ... [email protected] node_modules/stylus --- [email protected] --- [email protected] --- [email protected] --- [email protected] ([email protected], [email protected]) --- [email protected] [email protected] node_modules/nib --- [email protected] ([email protected], [email protected], [email protected], [email protected]. [email protected] node_modules/express-uglify --- [email protected] --- [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/jade --- [email protected] --- [email protected] --- [email protected] --- [email protected] ([email protected]) --- [email protected] ([email protected], [email protected], [email protected]) --- [email protected] ([email protected]) --- [email protected] ([email protected]) [email protected] node_modules/express --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] --- [email protected] ([email protected]) --- [email protected] ([email protected]) --- [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) screen: error while loading shared libraries: libutempter.so.0: cannot open shared object file: No such file or directory root@Tower:~# [/pre] I had the same issue. I think it might have something to do with not having screen installed? The last line of the run.sh script invokes screen to run the app. I just did a nohup node /mnt/cache/Apps/UpStatsBoard/app & instead. Seems to be working for me. Though I can't seem to log in for some reason. I'm going to play with it some more tonight.
January 18, 201412 yr Author If you look thru the developer of UpStatsBoard he doesnt have the login in working. I will try nohup instead of screen. Thanks!
January 18, 201412 yr Thanks!!! That cleared up everything!!! Now if I can just get Plex to report what's currently being watched. I had to change around the numbers for recent TV/Movies, but it is updating. "plex": { "protocol": "http://", "host": "domain.com", "port": 32400, "username": "email", "password": "pass", "recentTVSection": 1, "recentMovieSection": 2 }, Thanks for the idea. However, on my system, they're correct. Strange.
January 18, 201412 yr Author Thanks!!! That cleared up everything!!! Now if I can just get Plex to report what's currently being watched. I had to change around the numbers for recent TV/Movies, but it is updating. "plex": { "protocol": "http://", "host": "domain.com", "port": 32400, "username": "email", "password": "pass", "recentTVSection": 1, "recentMovieSection": 2 }, Thanks for the idea. However, on my system, they're correct. Strange. Maybe a venture over to the Plex forums and ask the developer directly? - https://forums.plex.tv/index.php/topic/93731-upsboard-usenet-plex-stats/
January 18, 201412 yr One small tweak. I suggest using nohup node /mnt/cache/appdata/UpStatsBoard/app > /dev/null 2>&1 & Prevents the nohup.out file from getting created.
January 18, 201412 yr Author One small tweak. I suggest using nohup node /mnt/cache/appdata/UpStatsBoard/app > /dev/null 2>&1 & Prevents the nohup.out file from getting created. Thanks. Updated
January 21, 201412 yr Thanks for putting the time into this. It installs great! Only problem I have so far is: 2014-01-21 12:44:566 DEBUG COMMAND :: Excuting command (ref #1390308273566, local): vnstat --dbdir /mnt/cache/appdata/UpStatsBoard/database -i eth0 -tr 2014-01-21 12:44:573 DEBUG COMMAND :: Excuting command (ref #1390308273573, local): vnstat --dbdir /mnt/cache/appdata/UpStatsBoard/database -i eth0 --xml Command Err: { [Error: Command failed: ] killed: false, code: 1, signal: null }
January 21, 201412 yr Author Thanks for putting the time into this. It installs great! Only problem I have so far is: 2014-01-21 12:44:566 DEBUG COMMAND :: Excuting command (ref #1390308273566, local): vnstat --dbdir /mnt/cache/appdata/UpStatsBoard/database -i eth0 -tr 2014-01-21 12:44:573 DEBUG COMMAND :: Excuting command (ref #1390308273573, local): vnstat --dbdir /mnt/cache/appdata/UpStatsBoard/database -i eth0 --xml Command Err: { [Error: Command failed: ] killed: false, code: 1, signal: null } I forgot to update my example config.js. I moved the database from /mnt/cache/appdata/UpStatsBoard/database to /mnt/cache/appdata/vnstats and have a command that initiates the database. Change "vnstatDBDirectory": "/mnt/cache/appdata/UpStatsBoard/database", to "vnstatDBDirectory": "/mnt/cache/appdata/vnstat", there is also a cronjob that runs that is hard coded to the /mnt/cace/appdata/vnstat directory to pull bandwidth info when the UpStatsBoard page is not being viewed.
January 21, 201412 yr Author Version .0.6 released which starts UpStatsBoard on reboot. There has been a lot of changes with the /boot/config/go, this is how it should look #version .0.6 vnstat cron - via UpStatsBoard & start UpStatBoard echo '# Start of vnstat crontab entries' >> /var/spool/cron/crontabs/root echo '* * * * * /usr/bin/vnstat -u -i eth0 --dbdir /mnt/cache/appdata/vnstat' >> /var/spool/cron/crontabs/root echo '# End of vnstat crontab entries' >> /var/spool/cron/crontabs/root su root /mnt/cache/appdata/UpStatsBoard/run.sh #end vnstat & UpStatBoard
January 22, 201412 yr Thanks for putting the time into this. It installs great! Only problem I have so far is: 2014-01-21 12:44:566 DEBUG COMMAND :: Excuting command (ref #1390308273566, local): vnstat --dbdir /mnt/cache/appdata/UpStatsBoard/database -i eth0 -tr 2014-01-21 12:44:573 DEBUG COMMAND :: Excuting command (ref #1390308273573, local): vnstat --dbdir /mnt/cache/appdata/UpStatsBoard/database -i eth0 --xml Command Err: { [Error: Command failed: ] killed: false, code: 1, signal: null } Words Thanks alot! Fixed it, no more errors in the log. :-)
Archived
This topic is now archived and is closed to further replies.