mgmt/pve/diagnose-ch4.sh

23 lines
525 B
Bash
Executable File

#!/bin/bash
echo "=== Nomad Cluster Status ==="
nomad node status
echo -e "\n=== Ch4 Node Details ==="
curl -s https://nomad.git-4ta.live/v1/nodes | jq '.[] | select(.Name == "ch4")'
echo -e "\n=== Nomad Server Members ==="
nomad server members
echo -e "\n=== Checking ch4 connectivity ==="
ping -c 3 ch4.tailnet-68f9.ts.net
echo -e "\n=== SSH Test ==="
ssh -o ConnectTimeout=5 -o BatchMode=yes ch4.tailnet-68f9.ts.net "echo 'SSH OK'" 2>&1 || echo "SSH failed"
echo -e "\n=== Nomad Jobs Status ==="
nomad job status