Agent skill
server-log-health-check
Quick health check of IQRight server pipeline. Shows packet reception, lookups, LoRa responses, and MQTT publishing status. Use when checking if the server is working or after deploying.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/server-log-health-check
SKILL.md
Server Log Health Check
Perform a 4-stage pipeline health check on the CaptureLora.py server logs.
Step 1: Locate and Assess Active Log
The server logs are at logs/IQRight_Daemon.debug with rotated backups at logs/IQRight_Daemon.debug.MMDDYY.
- Check file sizes with
du -h logs/IQRight_Daemon.debug* - Read the last 50 lines of the active log to see current state
- Extract first/last timestamps to show the date range covered
Step 2: Run Pipeline Health Check
Count packets at each of the 4 pipeline stages. Use Grep for each:
- LoRa Reception: pattern
Received data from scannerinlogs/IQRight_Daemon.debug - Data Lookups: pattern
Using local results|Using API resultsinlogs/IQRight_Daemon.debug - LoRa Responses: pattern
Sent DATA to scanner|Sent CMDinlogs/IQRight_Daemon.debug - MQTT Successes: pattern
MQTT-TX.*SUCCESSinlogs/IQRight_Daemon.debug - MQTT Failures: pattern
MQTT-TX.*FAILEDinlogs/IQRight_Daemon.debug
Present these 5 numbers in a clear table.
Step 3: Check Adaptive Logging State
Look for state transitions to understand operational timeline:
SWITCHING TO ACTIVE MODE= operation started (HELLO received)SWITCHING TO IDLE MODE= operation ended (15 min no packets)Server started in IDLE mode= server restart
Step 4: Recent Errors
Find the last 15 ERROR lines to identify current issues. Categorize by type:
- LoRa errors: "Error in sendDataScanner", "create_packet"
- API errors: "Connection reset", "timed out", "Client error"
- MQTT errors: "MQTT-TX.*FAILED"
- Data errors: "Couldn't find Code", "Invalid DATA packet"
Step 5: Summary Report
Report:
- Time range: First and last log entry timestamps
- Operational state: IDLE or ACTIVE, last state change
- Pipeline status: All 4 stages working? Where are gaps?
- Error count: Total errors, top 3 types
- Recommendation: Is the server healthy? What needs attention?
Reference: See docs/LOG_ANALYSIS_SKILLS.md for detailed patterns and baselines.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?