-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.bat
More file actions
46 lines (40 loc) · 1.1 KB
/
Copy pathtest.bat
File metadata and controls
46 lines (40 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
REM SentinelX Test Script
REM This script runs basic health checks on the platform
echo ========================================
echo SentinelX Health Checks
echo ========================================
echo.
echo [1/4] Checking if backend is running...
curl -s http://localhost:8000/health >nul 2>&1
if errorlevel 1 (
echo [ERROR] Backend is not running or not accessible
echo Please start the backend with start.bat
echo.
pause
exit /b 1
) else (
echo [OK] Backend is running
curl -s http://localhost:8000/health
echo.
)
echo.
echo [2/4] Testing Wazuh health endpoint...
curl -s http://localhost:8000/api/wazuh/health
echo.
echo.
echo [3/4] Testing MongoDB connection...
echo (Check backend logs for MongoDB connection status)
echo.
echo [4/4] Testing threat intelligence endpoint...
echo Testing IP lookup for 8.8.8.8...
curl -s http://localhost:8000/api/intel/ip/8.8.8.8
echo.
echo.
echo ========================================
echo Health Check Complete
echo ========================================
echo.
echo API Documentation: http://localhost:8000/docs
echo.
pause