Welcome
| | | | | |
| | | | ___| | ___ ___ _ __ ___ ___
| |/\| |/ _ \ |/ __/ _ \| '_ ` _ \ / _ \
\ /\ / __/ | (_| (_) | | | | | | __/
\/ \/ \___|_|\___\___/|_| |_| |_|\___|
This is a Golang static binary I use on my servers when I login.
Features
It checks and displays several things
- Your hostname as ASCII art (random font by default)
- The date and time
- The server uptime
- The total RAM and CPU % usage
- For all ZFS volumes (if any)
- Capacity left in %
- Health status
- Data data errors
- Usage % of other partitions
- Docker (if installed)
- Docker version
- Docker compose version (only with
--compose
as it takes one second)
- Number of containers running
- Unhealthy and restarting containers as warnings
- Network information
- hostname
- Main LAN IP address
- Public IP address (only with
--network
flag as it takes 100-300 milliseconds)
- Checks multiple websites are up (only with
--network
flag as it takes 100-300 milliseconds)
Setup
wget -qO ~/welcome https://github.com/qdm12/welcome/releases/download/v0.1.0/welcome_0.1.0_linux_amd64
chmod +x ~/welcome
# And then, depending on your shell
echo "~/welcome" >> ~/.zshrc
Usage
Usage of welcome:
-compose
show docker-compose version (slow)
-network
verify network connectivity
-requiredContainers string
comma separated list of required running container names to check for (default "dns,ddns")
-websitesToCheck string
comma separated list of websites to check, only enabled if --network is specified (default "https://qqq.ninja,https://1.1.1.1")
TODOs
- Check run as root
- Fix RAM usage
- Read partitions using advanced
df --help
- Check for non-imported encrypted zpool and prompt to import them
zpool import poolname -l
- If Docker is not running, launch it
systemctl start docker
- Change colors depending on % used
- Add emojis
- Go routines
- Bandwidth download, then upload
- Ping
- Docker Stats
- ZFS
- Use
zpool events
- Check scrub time
- Check error numbers with
zpool status POOLNAME