host-onboard-diagnose

Diagnose why categraf hosts fail to appear in the Nightingale host list.

13.3k|1.8k|Updated Mar 3, 2020
One-click install
npx skills add https://github.com/ccfos/nightingale --skill host-onboard-diagnose
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: host-onboard-diagnose
Source: https://github.com/ccfos/nightingale/tree/main/aiagent/skill/embedded/builtin/host-onboard-diagnose
Command: npx skills add https://github.com/ccfos/nightingale --skill host-onboard-diagnose

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

A newly installed categraf agent is running, but the host never shows up in the Nightingale host list, or appears with unknown OS/CPU/version fields. This Skill pinpoints which segment of the 5-stage onboarding pipeline (local agent, heartbeat HTTP, server receive, target persistence, Redis/Prometheus metrics) is broken, instead of guessing at a single cause.

Core Features & Use Cases

  • One-shot pipeline probing: Calls probe_target_onboard_status to gather evidence across all 5 onboarding segments in a single step, returning a pre-aggregated likely_segment and likely_causes.
  • Segment-specific fix guidance: Decision table maps each stuck segment to concrete checks, such as heartbeat.enable, omit_hostname, TLS/BasicAuth errors, edge Redis configuration, and categraf version requirements (v0.2.35+).
  • Ident label verification: Runs three PromQL variant queries (exact match, fuzzy match, instance-label fallback) to distinguish a true no-data condition from an ident label problem.
  • Use Case: You deployed 3 categraf collectors via Helm but only 1 appears in Nightingale. The Skill probes the missing hosts, finds the heartbeat never reached the server, and gives you paste-ready journalctl and config.toml commands to fix it.

Quick Start

Ask the assistant why your newly installed categraf host does not appear in the Nightingale host list and provide the host's ident or name.

Frequently Asked Questions about host-onboard-diagnose

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why doesn't my newly installed categraf host show up in Nightingale?

A missing host means one of five onboarding pipeline segments is broken: the local categraf process, the heartbeat HTTP report, server-side receive, target table persistence, or the Redis/Prometheus metric stream. The probe_target_onboard_status tool checks all five at once and reports the likely segment and causes.

How do I fix a host that appears in Nightingale with unknown OS and version?

Unknown OS and agent_version fields mean heartbeat metadata was not persisted, which is segment 3 of the pipeline. Check categraf's config.toml for heartbeat enable=true and omit_hostname=false, and confirm the categraf version is v0.2.35 or newer.

Does this skill handle hosts that lost contact after working before?

No. Hosts that were previously onboarded and recently lost contact are handled by the host-health-diagnose skill instead. This skill only covers hosts that never completed onboarding at all.

Why does target_up return no data even though the host heartbeat works?

If Redis has the heartbeat but Prometheus has no data, the problem is in segment 5. Run three PromQL variants: exact ident match, fuzzy ident match, and instance-label fallback, to distinguish a true missing data stream from an ident label problem caused by special characters or global_labels overrides.

What are common causes when only some Helm-deployed categraf hosts appear?

When only some replicas appear, the missing ones usually fail at segment 1 or 2: the agent cannot reach the center due to connection refused, TLS certificate errors, or BasicAuth/token mismatches. Check systemctl status categraf and journalctl logs on the missing hosts.