dev-utils/monitor/all_servers.sh
2023-10-23 14:38:37 +02:00

9 lines
490 B
Bash
Executable File

#!/bin/sh
tmux new-session -d "ssh -t uniworx3 \"watch -c SYSTEMD_COLORS=1 systemctl status -n0 'uni2work@*.service'\""
tmux split-window -h "ssh -t uniworx4 \"watch -c SYSTEMD_COLORS=1 systemctl status -n0 'uni2work@*.service'\""
tmux split-window -h "ssh -t uniworx5 \"watch -c SYSTEMD_COLORS=1 systemctl status -n0 'uni2work@*.service'\""
tmux split-window -h "ssh -t uniworxdb2 \"sudo -Hsu postgres pg_top -I -s 1\""
tmux select-layout even-horizontal
tmux -2 attach-session -d