Add files via upload

This commit is contained in:
kneutron 2021-07-08 00:26:36 -05:00 committed by GitHub
parent 6535b05ce6
commit 3e7b48093f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 108 additions and 0 deletions

61
ZFS/mon1.sh Normal file
View File

@ -0,0 +1,61 @@
#!/bin/bash
# for 1440x900
# Useful to monitor I/O for ZFS 96 disks
# For icewm all-desktops - see ~/.icewm/winoptions
#http://www.osnews.com/story.php/7774/IceWM--The-Cool-Window-Manager/page5/
# Setup 3 xxterms for monitoring on 2ndary scrn
# Used ' xwininfo ' to get geom
# Occupy-all
xterm -bg black -fg green -sl 1 -rightbar -geometry 87x29+0+0 \
-name montop \
-e top -d 7&
#cmdstr='bwm 2' # Check for bwm-ng and use it if there
#[ -e /usr/bin/bwm-ng ] && cmdstr='bwm-ng -t 2000'
#xterm -bg black -fg green -sl 1 -rightbar -geometry 80x17-0+0 \
#xterm -bg black -fg green -sl 1 -rightbar -geometry 80x17+488+0 \
#xterm -bg black -fg green -sl 1 -rightbar -geometry 80x13+536+0 \
# -name monbwm \
# -e $cmdstr &
#-geometry 80x26+1772+0
# linux mint 11
#xterm -bg black -fg green -sl 2000 -rightbar -geometry 69x24-0+0 \
# -name mondf \
# -e watch --no-title -n 61 df -T -h -x{tmpfs,usbfs,devtmpfs,debugfs} &
# linux mint 13
#xterm -bg black -fg green -rightbar -geometry 92x20-0+180 \
#xterm -bg black -fg green -rightbar -geometry 92x23-0+180 \
#xterm -bg black -fg green -rightbar -geometry 84x29--14-26 \
xterm -bg black -fg green -rightbar -geometry 104x29-0-33 \
-name mondf \
-e "watch -n 61 'df -T -h |grep -v tmpfs'" &
# -e "watch -n 61 df -T -h -x {tmpfs,usbfs,devtmpfs,debugfs}" &
# -e watch --no-title -n 61 df -h&
# Corners: +931+24 -1+24 -1-560 +931-560
# -geometry 84x24-0+0
# IOSTAT for vmware-lvm
# Check for debian vs ubuntu
#cmdstr='iostat 5 -k'
#[ -e /usr/bin/iceweasel ] && cmdstr='iostat -k 5 sd{a,b,c,d,e,f,g,h,i,j,k,l,m}'
#xterm -bg black -fg green -sl 2000 -rightbar -geometry 74x24-0+345 \
#xterm -bg black -fg green -sl 2000 -rightbar -geometry 74x31-0-22 \
#xterm -bg black -fg green -sl 2000 -rightbar -geometry 72x33-0+0 \
# -name IOSTAT \
# -e "$cmdstr" &
# Corners: +955+369 -1+369 -1-215 +955-215
# -geometry 80x24-0+345
# 4MAC
xterm -bg black -fg green -rightbar -geometry 61x24+1092+0 \
-name mac-tempwatch \
-e ~/bin/mac-tempwatch.sh &
# switch to virtual desktop #2
sleep 1; wmctrl -s 1; mon96.sh

47
ZFS/mon96.sh Normal file
View File

@ -0,0 +1,47 @@
#!/bin/bash
# 2021 Dave Bechtel
# for 1440x900
# Setup 4 xterms for monitoring I/O for (90) drives
# Used ' xwininfo ' to get geom
# Occupy-all
cmdstr="iostat -k 5 --dec=0 -y -z sd{a..z}"
xterm -bg black -fg green -sl 2000 -rightbar -geometry 72x33+0+31 \
-name IOSTAT \
-e "$cmdstr" &
# Corners: +955+369 -1+369 -1-215 +955-215
# -geometry 80x24-0+345
cmdstr="iostat -k 5 --dec=0 -y -z sda{a..z}"
xterm -bg black -fg green -sl 2000 -rightbar -geometry 72x33+0-0 \
-name IOSTAT \
-e "$cmdstr" &
# Corners: +955+369 -1+369 -1-215 +955-215
# -geometry 80x24-0+345
cmdstr="iostat -k 5 --dec=0 -y -z sdb{a..z}"
xterm -bg black -fg green -sl 2000 -rightbar -geometry 72x33-0+31 \
-name IOSTAT \
-e "$cmdstr" &
# Corners: +955+369 -1+369 -1-215 +955-215
# -geometry 80x24-0+345
cmdstr="iostat -k 5 --dec=0 -y -z sdc{a..z}"
xterm -bg black -fg green -sl 2000 -rightbar -geometry 72x33-0-0 \
-name IOSTAT \
-e "$cmdstr" &
# Corners: +955+369 -1+369 -1-215 +955-215
# -geometry 80x24-0+345
cmdstr='bwm 2' # Check for bwm-ng and use it if there
[ -e /usr/bin/bwm-ng ] && cmdstr='bwm-ng -t 2000'
xterm -bg black -fg green -sl 1 -rightbar -geometry 80x13+536+0 \
-name monbwm \
-e $cmdstr &
cmdstr="watch -n 5 /sbin/zpool status -v|awk 'NF>0'"
xterm -bg black -fg green -sl 1 -rightbar -geometry 92x57+434-28 \
-name zps \
-e $cmdstr &