Files
proxmox/rpc-translator-138/scripts/check-service.sh
defiQUG cb47cce074 Complete markdown files cleanup and organization
- Organized 252 files across project
- Root directory: 187 → 2 files (98.9% reduction)
- Moved configuration guides to docs/04-configuration/
- Moved troubleshooting guides to docs/09-troubleshooting/
- Moved quick start guides to docs/01-getting-started/
- Moved reports to reports/ directory
- Archived temporary files
- Generated comprehensive reports and documentation
- Created maintenance scripts and guides

All files organized according to established standards.
2026-01-06 01:46:25 -08:00

31 lines
699 B
Bash
Executable File

#!/bin/bash
# Check service status on a VMID
# Usage: ./scripts/check-service.sh <VMID> <VMIP>
set -e
VMID="${1:-}"
VMIP="${2:-}"
if [ -z "$VMID" ] || [ -z "$VMIP" ]; then
echo "Usage: $0 <VMID> <VMIP>"
echo "Example: $0 2400 192.168.11.240"
exit 1
fi
echo "Checking RPC Translator service on VMID $VMID ($VMIP)..."
echo ""
# Check if service is running
echo "Service status:"
ssh "root@$VMIP" "systemctl status rpc-translator-138.service --no-pager -l" || true
echo ""
echo "Recent logs:"
ssh "root@$VMIP" "journalctl -u rpc-translator-138.service -n 20 --no-pager" || true
echo ""
echo "Health check:"
curl -s "http://$VMIP:9545/health" | jq '.' || echo "Health check failed"
echo ""