jaque project

Check-based monitoring engine

Status: production-ready

Theme:

docs

jaque.sh

A monitoring engine with a record of every move.

jaque checks hosts, services and network gear and keeps the states you are used to: soft and hard, acknowledged, in downtime, depending on something else. Every change of state is written to a log before anything else happens, so you can always go back and see what the engine saw. It comes as one binary.

$ curl -fsSL https://pkgs.jaque.sh/install.sh | sh

[ install ] [ live demo ] [ coming from Nagios ]

jaquev0.3.222status console
Search /◑Settings

Hosts

9total
9up
0down
0unreachable
0warning
0unknown
0pending

Services

19total
19ok
0warning
0critical
0unreachable
0unknown
0pending

Unhandled problems (0)

ObjectStatusOutputLast change
No unhandled problems.
Handled problems (0)
No handled problems.

event log14:02:00

14:02:00  all quiet
Figure 1: the status console through one scripted incident. Drag the clock to move through the night; click the critical row to acknowledge it yourself.

An incident, replayed

The status console at the top of the page plays an ordinary night once, when the page loads. A database stops answering and the engine marks it critical, soft, and retries sooner than usual instead of paging. The third failed check makes it hard, and one page goes out. The service that depends on the database is marked unreachable and stays quiet instead of paging too. Someone acknowledges, the problem moves from unhandled to handled, and the recovery closes it. The event log under the console is what the engine wrote while it happened. Drag its clock to move through the night, or click the critical row and acknowledge it yourself.

That incident is scripted. demo.jaque.sh is a real jaque you can look at, read-only, watching nine hosts, with its config published so you can see what each state rests on.

Nothing to abandon

Most of us have a shelf of check scripts that took years to get right. They run unchanged: the plugin protocol, exit code plus output plus perfdata, is fixed in jaque and stays fixed. Routers and switches are checked over SNMP, since network gear does not run agents, and there are native checks for the common cases, so you do not need a script for a ping.

jaque import reads your Nagios object files and writes a native config, with a report of what mapped, what it approximated and what it could not carry over; coming from Nagios walks through it. The host below is one it has read and what it wrote back. From then on the config is yours. It is typed, so a mistake is caught when you load the config rather than during an incident.

objects.cfg

define host {
    host_name           gw
    address             192.168.1.1
    check_command       check-host-alive
    max_check_attempts  3
}

jaque.cue

hosts: gw: {
    address: "192.168.1.1"
    check: {
        type:         "command"
        command:      "check-host-alive"
        max_attempts: 3
    }
}
Figure 2: a Nagios host and the config the importer writes for it

jaque speaks Livestatus, so the dashboards and consoles you already use keep working. Livestatus, the plugin protocol and the config language are open, so nothing you write for jaque is tied to it.

One binary, any shape

One file holds the event log, the state machine, the scheduler, the API and the dashboard. There is no database or broker to look after. When one machine is no longer enough, the same binary runs one role per process, engines, workers, notifiers, event handlers and sinks, and the config stays as it was. The deployment guides cover one node and split roles on systemd, compose and Kubernetes.

One nodeSeveral nodes
systemd host (deb/rpm) Single node, systemd: one host, the packaged unit, nothing external. Split by role, systemd: one unit per role across hosts you manage yourself.
Docker Compose Single node, compose: one container, a named volume for the event log. Split by role, compose: one container per role plus a log server, all in one stack.
Kubernetes Single node, Kubernetes: the Helm chart in standalone mode, one pod. Split by role, Kubernetes: the chart in split mode, one workload per role.
the check pipeline in one process
Figure 3: a check result through the pipeline. The same stages run as one process, as one role per process, or with several engines sharing the objects; the queue and the log server are outside jaque in the last two.

When it pages you, you can see why

Every state change is computed from the log, so replaying the log gives the same states. If the process dies mid-check it comes back with the same history. Paging follows the thresholds and policies you wrote; nothing scores or guesses in between.

The engine handover is a TLA+ model and the state machine is property-tested. How it is verified has the models and the invariants, for anyone who wants to check our work.

Status

jaque is in production use. The status page lists each capability with the evidence behind it, and it says plainly what is missing: the Nagios importer has not yet seen a config from outside this project, and the remote agent is not built.

capabilitystate
soft/hard states, flap detection, acks, downtimes, dependencies, escalationsshipped
event-log replay survives kill -9shipped
Livestatus: LQL parser and nine tablesshipped
signed packages, apt and yum repositories, image and chartshipped
Nagios importerimplemented, unverified
remote agentunbuilt

It is not a time-series database; perfdata goes out to ClickHouse, remote_write or OTLP. There is no anomaly detection and no model in the loop.

A soak of 10000 objects holds a p99 check drift under 5ms in half a gigabyte of memory; the benchmarks page has the machine, the method and every other cell.

Start

Install it and point it at one host; the quickstart takes it from there. If you run Nagios, run jaque import on your object files and tell us what did not come across; that is what the importer needs most. Write to [email protected], or check the status page first.