Monitoring and HTTP API
Endpoints
Default address: 127.0.0.1:4068 (--api-bind 0 disables). For LAN access, bind 0.0.0.0:4068 and allow-list any custom DNS hostname with --api-allow-host rig1.lan (other hostnames get HTTP 403). Expose only on a trusted network: /summary needs no login and shows your pool login.
| Request | Action |
|---|---|
GET /summary |
Rig + GPU stats, shares (H/s), pool, kernel, devfee, tuning. |
GET /mmpos |
mmpOS stats ("units": "ths"). |
POST /control/pause |
Pause all GPUs, or one via ?gpu=N (&free_vram=true releases VRAM; &secs=30 resumes by itself after 30 s). |
POST /control/resume |
Resume API-paused GPUs (?gpu=N for one). |
POST /control/intensity |
Set the duty cycle ?value=1..100 on all GPUs or one (&gpu=N). |
POST /control/restart |
Restart via watchdog (HTTP 409 if watchdog is off). |
Control endpoints require --api-token TOKEN (>= 12 chars) and Authorization: Bearer TOKEN. N is the card's device_id from /summary. A pause without secs lasts until resumed, also across watchdog restarts.
curl examples
# Read live stats
curl -s http://127.0.0.1:4068/summary
# Pause GPU 1 and free its VRAM, then resume
curl -X POST -H "Authorization: Bearer MySecretToken123" \
"http://127.0.0.1:4068/control/pause?gpu=1&free_vram=true"
curl -X POST -H "Authorization: Bearer MySecretToken123" \
"http://127.0.0.1:4068/control/resume?gpu=1"
# Trigger clean watchdog restart
curl -X POST -H "Authorization: Bearer MySecretToken123" \
http://127.0.0.1:4068/control/restart
katzeminer ctl
The same control from the command line, for hooks of a job scheduler or a reverse proxy (all commands: Options — Remote control):
export KATZEMINER_API_BIND=127.0.0.1:4068
export KATZEMINER_API_TOKEN=MySecretToken123
./katzeminer ctl status # cards, state, hashrate
./katzeminer ctl pause --secs 30 # pause now, resume by itself after 30 s
./katzeminer ctl resume # mine again as soon as your job is done
./katzeminer ctl intensity 50 --gpu 0
Example /summary response
{
"name": "katzeminer",
"version": "0.2.3",
"rig": "rig1",
"algorithm": "pearl",
"uptime": 930,
"hashrate": 498600000000000,
"hashrate_minute": 498100000000000,
"hashrate_15m": 497900000000000,
"unit": "H/s",
"accepted_count": 42,
"rejected_count": 0,
"stale_count": 0,
"invalid_count": 0,
"active_pool": { "url": "prl.kryptex.network:8048", "ping": 18, "tls": true, "index": 0, "retries": 0 },
"devfee": { "percent": 1.0, "state": "idle", "window": false },
"tuning": { "state": "available", "reason": "root" },
"gpus": [
{
"device_id": 0,
"pci_bus": "01:00.0",
"name": "RTX 5090",
"arch": "sm_120",
"hashrate": 498600000000000,
"efficiency": 1.25,
"temperature": 61,
"memory_temperature": 66,
"fan_speed": 60,
"power": 398,
"core_clock": 2895,
"memory_clock": 405,
"state": "mining",
"pause_reasons": [],
"vram_state": "held",
"kernel": { "alias": "perf-12", "mode": "auto", "power_w": 400, "limit_w": 400, "point_w": 400 },
"shares": { "accepted_count": 42, "rejected_count": 0, "stale_count": 0, "invalid_count": 0 }
}
]
}
Key fields
| Field | Meaning |
|---|---|
hashrate, hashrate_minute, hashrate_15m |
Instant, 1-min and 15-min rate in H/s (divide by 1e12 for TH/s). |
invalid_count |
Results rejected by KatzeMiner's local verifier before submit. |
devfee |
percent, window (true during mining/owed), state (idle, prewarm ~30 s before window, mining, owed, postponed). Share counters show your shares only. |
gpus[].kernel |
Active kernel alias, mode (auto/manual), active power_w/limit_w, and calibration point_w (null until loaded). |
gpus[].state / pause_reasons |
starting, tuning, mining, paused (e.g. ["api"], ["temp"]), restarting, failed, hung. vram_state: held or released. |
Console and logs
- UTC timestamps
[HH:MM:SSZ]; hashrate table every 30 s (--report-interval 5..3600). A/R/S= accepted / rejected / stale shares.+N?marks unanswered submits (no reply in 2 min or disconnect); late replies showlate answer.- Rotating log example (5 files x 50 MiB, no ANSI colors):
./katzeminer ... --log-file miner.log --log-mode rotate --log-file-max-size 50 --log-file-keep 5
For KatzeMiner 0.2.3.
