init
This commit is contained in:
23
scripts/health-check.sh
Normal file
23
scripts/health-check.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Health Check Script with Authentication
|
||||
|
||||
BASE_URL="http://localhost:8080"
|
||||
|
||||
echo "================================"
|
||||
echo "1. Health Check (No Auth)"
|
||||
echo "================================"
|
||||
curl -s "${BASE_URL}/monitor/health" | jq .
|
||||
echo ""
|
||||
|
||||
echo "================================"
|
||||
echo "2. Health Check with Details (With Auth)"
|
||||
echo "================================"
|
||||
curl -s -u admin:admin123 "${BASE_URL}/monitor/health" | jq .
|
||||
echo ""
|
||||
|
||||
echo "================================"
|
||||
echo "3. DiskSpace Only (With Auth)"
|
||||
echo "================================"
|
||||
curl -s -u admin:admin123 "${BASE_URL}/monitor/health" | jq '.components.diskSpace'
|
||||
echo ""
|
||||
Reference in New Issue
Block a user