danicat/aida/pack-osquery-monitoring

Claude Code and agent skill by danicat/aida

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Osquery daemon monitoring query pack. Contains queries for daemon status, execution metrics, query performance, and event drops using osquery_info, osquery_schedule, and osquery_events. Use to diagnose osquery performance, identify runaway queries, and ensure stable event subscriber operation.

Install

npx vskill@latest install danicat/aida/pack-osquery-monitoring

SKILL.md

Osquery Daemon Health & Telemetry Query Pack

The pack-osquery-monitoring skill equips agents with curated queries and diagnostic procedures from osquery_data/packs/osquery-monitoring.conf. This query pack focuses on osquery daemon health & telemetry query pack.

Threat Model & Scope

Ensuring the integrity and stability of the osquery telemetry pipeline itself is paramount. This pack guards against:

  • Runaway or unoptimized queries consuming excessive CPU or resident memory.
  • Event buffer overflows where kernel or filesystem events are dropped before ingestion.
  • Daemon crashes or watchdog restarts indicated by short uptime durations.

Triage & Investigation Runbook

Daemon Health Diagnostic Workflow
  1. Check Daemon Status: Execute SELECT * FROM osquery_info; to verify version and uptime.
  2. Analyze Query Latency: Run SELECT name, executions, wall_time, average_memory FROM osquery_schedule ORDER BY wall_time DESC LIMIT 5;.
  3. Inspect Event Publisher Drops: Run SELECT name, publisher, events, drops FROM osquery_events WHERE drops > 0;. If drops are high, tune buffer sizes or event filters.

Complete Query Catalog

1. schedule
  • Description: Report performance for every query within packs and the general schedule.
  • Interval: 7200 seconds
  • Minimum Osquery Version: 2.11.0
  • SQL Query:
sql
select name, interval, executions, output_size, wall_time, (user_time/executions) as avg_user_time, (system_time/executions) as avg_system_time, average_memory, last_executed, denylisted from osquery_schedule;
2. events
  • Description: Report event publisher health and track event counters.
  • Interval: 86400 seconds
  • Minimum Osquery Version: 1.5.3
  • SQL Query:
sql
select name, publisher, type, subscriptions, events, active from osquery_events;
3. osquery_info
  • Description: A heartbeat counter that reports general performance (CPU, memory) and version.
  • Interval: 600 seconds
  • Minimum Osquery Version: 1.2.2
  • SQL Query:
sql
select i.*, p.resident_size, p.user_time, p.system_time, time.minutes as counter from osquery_info i, processes p, time where p.pid = i.pid;

Referenced Table Schemas

osquery_events

Information about the event publishers and subscribers.

ColumnTypeDescription
nameTEXTEvent publisher or subscriber name
publisherTEXTName of the associated publisher
typeTEXTEither publisher or subscriber
subscriptionsINTEGERNumber of subscriptions the publisher received or subscriber used
eventsINTEGERNumber of events emitted or received since osquery started
refreshesINTEGERPublisher only: number of runloop restarts
activeINTEGER1 if the publisher or subscriber is active else 0
osquery_info

Top level information about the running version of osquery.

ColumnTypeDescription
pidINTEGERProcess (or thread/handle) ID
uuidTEXTUnique ID provided by the system
instance_idTEXTUnique, long-lived ID per instance of osquery
versionTEXTosquery toolkit version
config_hashTEXTHash of the working configuration state
config_validINTEGER1 if the config was loaded and considered valid, else 0
extensionsTEXTosquery extensions status
build_platformTEXTosquery toolkit build platform
build_distroTEXTosquery toolkit platform distribution name (os version)
start_timeINTEGERUNIX time in seconds when the process started
watcherINTEGERProcess (or thread/handle) ID of optional watcher process
platform_maskINTEGERThe osquery platform bitmask
osquery_schedule

Information about the current queries that are scheduled in osquery.

ColumnTypeDescription
nameTEXTThe given name for this query
queryTEXTThe exact query to run
intervalINTEGERThe interval in seconds to run this query, not an exact interval
executionsBIGINTNumber of times the query was executed
last_executedBIGINTUNIX time stamp in seconds of the last completed execution
denylistedINTEGER1 if the query is denylisted else 0
output_sizeBIGINTCumulative total number of bytes generated by the resultant rows of the query
wall_timeBIGINTTotal wall time in seconds spent executing (deprecated), hidden=True
wall_time_msBIGINTTotal wall time in milliseconds spent executing
last_wall_time_msBIGINTWall time in milliseconds of the latest execution
user_timeBIGINTTotal user time in milliseconds spent executing
last_user_timeBIGINTUser time in milliseconds of the latest execution
system_timeBIGINTTotal system time in milliseconds spent executing
last_system_timeBIGINTSystem time in milliseconds of the latest execution
average_memoryBIGINTAverage of the bytes of resident memory left allocated after collecting results
last_memoryBIGINTResident memory in bytes left allocated after collecting results of the latest execution

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/danicat/aida/pack-osquery-monitoring/badge)](https://verified-skill.com/skills/danicat/aida/pack-osquery-monitoring)

Something wrong with this skill or its page? Tell us.