unRAID tGUI for console stats display.


Recommended Posts

Warning noob stuff contained within.

 

Looking to you guys for input on this, i know the script can be improved upon and was trying to see if i can get some feedback from you guys as to what to change / add etc...

 

Added ability to monitor Plex, Sb, CP, unRAID, Mumble, Minecraft, uTorrent and sends a txt if down.

 

rTpvQIi.png

2nmjJJv.jpg

 

edit .bash_profile to run the following script.

 

Link to gist: https://gist.github.com/Pyrater/9022562 (latest code)

 

#!/bin/bash
while :
do

hdspacetot=$(df -h /mnt/user/ ~ | awk 'NR==2 {print $2}')
hdspacefree=$(df -h /mnt/user/ ~ | awk 'NR==2 {print $4}')

curl http://192.168.2.4 -s -m 4 -f -o /dev/null && ur='\e[42;30mUP\e[0m' || ur='\e[41;30mUP\e[0m'
curl http://192.168.2.11:8080/gui -s -m 2 -f -o /dev/null && ut='\e[42;30mUP\e[0m' || ut='\e[41;30mDN\e[0m'
curl http://192.168.2.11:8081 -s -f -m 2 -o /dev/null && sb='\e[42;30mUP\e[0m' || sb='\e[41;30mDN\e[0m'
curl http://192.168.2.11:8082 -s -f -m 2 -o /dev/null && ch='\e[42;30mUP\e[0m' || ch='\e[41;30mDN\e[0m'
curl http://192.168.2.12:32400/web -s -f -m 2 -o /dev/null && px='\e[42;30mUP\e[0m' || px='\e[41;30mDN\e[0m'
curl http://192.168.2.12:32400/web -s -f -m 2 -o /dev/null && px='\e[42;30mUP\e[0m' || px='\e[41;30mDN\e[0m'
exec 6<>/dev/tcp/192.168.2.12/64738 && mb='\e[42;30mUP\e[0m' || mb='\e[41;30mDN\e[0m' 
exec 6<>/dev/tcp/192.168.2.105/25565 && mc='\e[42;30mUP\e[0m' || mc='\e[41;30mDN\e[0m' 


clear
echo -e "+==============================================================================+"
echo -e "=                                                                              ="
echo -e "=           \e[1;34m:\e[0m\e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;31m=====\e[0m    \e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;37m:\e[0m\e[1;31m====\e[0m     \e[1;34m:\e[0m\e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;31m====\e[0m     \e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;37m:\e[0m\e[1;31m====\e[0m     \e[1;34m:\e[0m\e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;31m===\e[0m             ="
echo -e "=           \e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;37m:\e[0m         \e[1;34m:\e[0m\e[1;37m:\e[1;34m:\e[0m  \e[1;37m===\e[0m    \e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;37m:\e[0m  \e[1;37m===\e[0m    \e[1;34m:\e[0m\e[1;37m:\e[0m\e[1;34m:\e[0m  \e[1;37m===\e[0m    \e[1;37m:\e[0m\e[1;34m:\e[0m\e[1;37m:\e[0m                ="
echo -e "=           \e[1;31m===         ===  ===    =======     =======      =====\e[0m             ="
echo -e "=           \e[1;37m===         ===  ===    === ===     ===             ===\e[0m            ="
echo -e "=            \e[1;31m=======\e[0m  \e[1;32m=\e[0m  \e[1;31m======\e[0m  \e[1;32m=\e[0m  \e[1;31m===  ===\e[0m \e[1;32m=\e[0m  \e[1;31m===\e[0m      \e[1;32m=\e[0m   \e[1;31m======\e[0m            ="
echo -e "=                                                                              ="
echo -e "=                Combined Operations in Rack Portable Storage                  ="
echo -e "=                                                                              ="
echo -e "=               VM Resource Pool                     Application Status        ="
echo -e "=       *------------------------------*           *-------------------*       ="
echo -e "=       | unRaid     vCPU 1 / 2698 MEM |           | unRAID:       $ur  |       ="
echo -e "=       | Arch       vCPU 2 / 2045 MEM |           | Plex:         $px  |       ="
echo -e "=       | Windows7   vCPU 8 / 3072 MEM |           | SickBeard:    $sb  |       ="
echo -e "=       *------------------------------*           | CouchPotato:  $ch  |       ="
echo -e "=                                                  | uTorrent:     $ut  |       ="
echo -e "=                  Raid Space                      | Mumble        $mb  |       ="
echo -e "=       *------------------------------*           | MC Server     $mc  |       ="
echo -e "=       | $hdspacefree TB Free / $hdspacetot TB Total |           *-------------------*       ="
echo -e "=       *------------------------------*                                       ="
echo -e "=                                                                              ="
echo -e "=                 IP 192.168.2.4 / 255.255.255.0 / 192.168.2.1                 ="
echo -e "+==============================================================================+"
sleep 60
done
# add temp? CPU type info? unraid Version?

Link to comment

Cool! I like stuff like this, good for integrated LCD screens on cases  ;D  Ditch the large header to fit more information in though, maybe offer an option to include an ASCI unRAID logo or something.

 

Memory, CPU, total network / disk throughput, and top 5 CPU hogging processes would be ideal. Then more specific unRAID info to top it off. Keep it on a refresh loop of x seconds.

Link to comment

Thank you, working on adding txt message support but the script isnt firing correct.

 

curl http://192.168.2.11:8081 -s -f -m 2 -o /dev/null && sb='\e[42;30mUP\e[0m' || sb='\e[41;30mDN\e[0m' && curl "http://textbelt.com/text" -d number=XXXXXXXXXX -d "message=SickBeard is Down"

 

The problem is that it fires off a text whether  Sickbeard is up or down...... the issue is something here || sb='\e[41;30mDN\e[0m' &&.

 

aka If the website is null than change the variable to DN and fire off a text...

Link to comment

I would look into tmux - its a screen/window mgr - can have multi seperate windows on a screen and multi screens.

 

You an direct a process to a "pane" i guess is what they call them and not have scrape from utils etc

 

I use it here on my nzb indexer for all the different processes runing

 

myk

 

Link to comment

many things are/can be started from the go file - unMenu is the main one that comes to mind

 

Myk

 

True, but any array related activities should be started/stopped based on the event system which exists now.

 

Modifying the go file programmably is not very flexible, the better way is to use the plugin system.

Link to comment
  • 7 years later...

Sorry to revive an old thread. New to unraid and recently built a machine with a 5700g, not realizing that there isn't much useful info that will display on the monitor connected to the actual unraid machines attached monitor.

 

Been searching for some kind of status plugin or something that will display useful info on the machines monitor. This old post is sort of what I'm looking for. But it hasn't been updated in a while.

 

Is there something like this that is current, or can someone suggest search terms to help me find something that will display stats or statuses of some sort on the monitor connected to the actual unraid box?

Edited by KayakNate
  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.