Get the most out of OpenFrame

Skip to content

Create a Monitoring Query

CONFIGURATIONDOCUMENTATIONGUIDEIT OPERATIONSMONITORINGOPENFRAMETUTORIAL

Phase 4 — Monitoring & Policies · Step 3

Section

June 19, 2026

Published

Vladislav Marchenko

Vladislav Marchenko

Head of Marketing

Create a Monitoring Query

Phase 4 — Monitoring & Policies · OpenFrame Onboarding

Where a policy judges a device (pass/fail), a query just collects data from it on a schedule. Use queries for visibility — inventory, performance, configuration — when you want the information but don't need a compliance verdict. They're osquery too, so it's the same SQL, different purpose.


Quick steps

  1. Go to Automation → Queries → Add Query.
  2. Enter a name, a Frequency (for example every 1 hour), a description and the osquery SQL.
  3. Click Test Query, then choose devices under Devices.
  4. Click Save Query.

Before you start

  • You need an Admin role.
  • Target devices need the Fleet/osquery agent installed and online.
  • Decide your cadence up front: how often do you actually need this data refreshed? Hourly is plenty for most inventory; tighter intervals mean more frequent collection.

Create the query

  1. Go to Automation → Queries → Add Query. The New Query page opens.
  2. Name — what it collects, e.g. Windows Machine Summary.
  3. Frequency — a number plus a unit (Minutes by default; switch to Hours for slower cadences). This is the schedule the query runs on — e.g. set it to run every 1 hour.
  4. Description — spell out what it gathers, e.g. Collects machine summary: hostname, CPU, memory, hardware details, OS version, and uptime for Windows devices.
  5. Query — the osquery SQL that returns the data you want. Unlike a policy, you're not writing for pass/fail — you're selecting the columns you care about. The Osquery Documentation link lists the available tables.

Scheduled vs. on-demand

  • Scheduled — the Frequency you set makes the query run automatically on that cadence, so the data stays fresh without you touching it.
  • On-demand — click Test Query to run it right now against real devices. Use this to check your SQL works (and preview the output) before you commit to a schedule.

So: Test Query to prove it out once, Frequency to keep it running.


Assign devices

In the Devices section, under Select Specific Devices, choose which machines the query collects from — individually, filtered by Device Tags, or Add All Devices. (Select Devices by Criteria is marked Coming soon.) Same selector as policies; full detail in Assign Devices to a Monitoring Policy. Scope it to where the data is relevant (e.g. a Windows-only summary → Windows devices).


Save

Click Save Query. It appears on the Queries tab with its Frequency shown (e.g. Every 1h), and starts collecting on schedule. Each row's … menu lets you manage it later.


Policy or query? A quick gut-check

  • "Tell me which machines fail a standard" → Policy (Create Your First Monitoring Check).
  • "Gather this data from these machines every hour" → Query (this guide).

You'll often use both: queries to see the lay of the land, policies to enforce the standards you care about.


Common questions

Can OpenFrame collect inventory data on a schedule? Yes. A query runs osquery SQL on the devices you choose, at the Frequency you set.

How often can a query run? You set a number of minutes or hours. Hourly is plenty for most inventory.

Can I run a query right now? Yes. Test Query runs it immediately against real devices and shows the output.

What is the difference from a policy? A query only collects data. A policy also judges each device pass or fail.

Can I edit or remove a query later? Yes, from the … menu on its row in the Queries tab.


Quick checklist

  • Named the query and described what it collects
  • Set a sensible Frequency
  • Wrote the osquery SQL to return the columns you want
  • Used Test Query to confirm output before scheduling
  • Scoped it to the right devices, then saved

What's next

You can now both check and collect. Next, get precise about which devices these run on — Assign Devices to a Monitoring Policy — and learn how failures surface in Understanding Alerts — Triage & Resolution.


Checked against OpenFrame 1.7 (November 2026). Screens and defaults may shift between releases — when in doubt, what's in your console wins.

Vladislav Marchenko

Head of Marketing

Hi all! My name is Vlad and I’ve been brought on to head the marketing team at Flamingo. Thankfully, this isn’t the first time I will be building a marketing department from scratch, so the experience should come in handy. Now it’s time to dive into the world of MSPs and find myself in this new world.

More in Phase 4 — Monitoring & Policies

Related Content

Frequently Asked Questions

/onboarding-guides/create-a-monitoring-query

Still deciding?

Mingo answers from our docs and customer stories.

Loading related content and questions