소스 정보
- 저장소
- Automattic/jetmon
- 최근 소스 활동
- 2026년 2월 20일 22:58
- 감지된 SKILL.md 언어
- 영어
- 스타
- 17
- 포크
- 4
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Automattic/jetmon --skill rebuild-addon명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | rebuild-addon |
| description | Rebuild the C++ native addon after making changes to http_checker.cpp |
| allowed-tools | Bash(npm run*), Bash(node-gyp*), Bash(docker*), Bash(cp*), Bash(ls*), Read, Glob, Grep |
Use this skill after making changes to the C++ native addon (src/http_checker.cpp or src/http_checker.h).
/rebuild-addon - Rebuild the addon and restart Jetmon/rebuild-addon docker - Rebuild inside Docker container/rebuild-addon test - Rebuild and run a quick testnpm run rebuild-run
This runs node-gyp rebuild, copies the addon to lib/, and starts Jetmon.
node-gyp rebuild
cp build/Release/jetmon.node lib/
node lib/jetmon.js
docker compose exec jetmon npm run rebuild-run
Or manually inside the container:
docker compose exec jetmon bash
cd /jetmon
node-gyp rebuild
cp build/Release/jetmon.node lib/
node lib/jetmon.js
After building, verify the addon loads correctly:
node -e "require('./lib/jetmon.node'); console.log('Addon loaded successfully');"
Create a test script:
// lib/test-addon.js
var checker = require( './jetmon.node' );
checker.http_check( 'https://wordpress.com', 80, 0, function( index, rtt, http_code, error_code ) {
console.log( 'Index:', index );
console.log( 'RTT (microseconds):', rtt );
console.log( 'HTTP Code:', http_code );
console.log( 'Error Code:', error_code );
process.exit( 0 );
});
Run it:
node lib/test-addon.js
index: The index passed to the check (0 in this case)rtt: Round-trip time in microsecondshttp_code: HTTP response code (200 for success)error_code: 0 for success, non-zero for errors| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Connection failed |
| 2 | Timeout |
| 3 | SSL error |
| 4 | DNS resolution failed |
| 5 | Too many redirects |
| File | Purpose |
|---|---|
src/http_checker.cpp | Main HTTP checking implementation |
src/http_checker.h | Header with class definition |
binding.gyp | Node-gyp build configuration |
Missing OpenSSL headers:
fatal error: openssl/ssl.h: No such file or directory
Solution: Install OpenSSL development package:
# macOS
brew install openssl
# Ubuntu/Debian
apt-get install libssl-dev
Node version mismatch: If you see ABI version errors, clean and rebuild:
node-gyp clean
node-gyp rebuild
Addon not found:
Error: Cannot find module './jetmon.node'
Solution: Copy the built addon:
cp build/Release/jetmon.node lib/
Symbol errors: Usually indicates Node.js version changed. Rebuild the addon.
In src/http_checker.cpp, set:
#define DEBUG_MODE 1
Debug output goes to stderr.
For memory leaks, use Valgrind (Linux):
valgrind --leak-check=full node lib/jetmon.js
The binding.gyp file configures the build:
{
"targets": [{
"target_name": "jetmon",
"sources": ["src/http_checker.cpp"],
"include_dirs": ["<!(node -e \"require('nan')\")"],
"libraries": ["-lssl", "-lcrypto"]
}]
}
Key settings:
SOC 직업 분류 기준