Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server-pet.sh — Linux server dashboard

Bash SSH dashboard that turns server metrics into a living creature with health bars, warnings, and status quips.

Demo

What it do:

  • ASCII creature changes mood based on server health (happy/okay/worried/stressed/dead/sleeping)
  • Color-coded bar graphs for CPU, MEM, DISK, SWAP
  • Uptime, load, process count, network stats
  • Funny status messages per mood (rotating)
  • Warning panel with threshold alerts
  • Keyboard controls: q quit, r refresh, +/- speed

Run it:

# Demo mode (random simulated data)
./server-pet.sh --demo

# Real servers via SSH
./server-pet.sh -s admin@prod-1 -s admin@prod-2

# Custom refresh
./server-pet.sh -s admin@prod-1 -r 10

Thresholds: CPU/MEM warn at 70%, crit at 90%. Disk warn 80%, crit 95%. All configurable at top of script.

Demo mode runs with no servers configured — randomizes stats, occasional spikes. Try it: ./server-pet.sh

SSH key auth

If you already have keys but still get prompted, SSH multiplexing keeps one connection open and reuses it.

Add to ~/.ssh/config:

Host *
    ControlMaster auto
    ControlPath ~/.ssh/sockets/%r@%h-%p
    ControlPersist 600

Then mkdir -p ~/.ssh/sockets. One auth per server, reused for 10 minutes.


About

Bash dashboard that turns server metrics into a living creature with health bars, warnings, and status quips

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages