Agent
Flags and settings
Every installer flag and every config.yaml key, with the agent version each one needs.
There are two places to change how the agent behaves: options passed to the installer, and settings in /etc/monilogix/config.yaml. This page lists all of both.
Installer options
The installer is served by your own Monilogix deployment, always at its current version. So whether a flag exists never depends on which agent you are installing — only what a flag does can, and only the two host-access options actually do.
| Option | Agent | What it does |
|---|---|---|
--key <mlx_…>--key=<mlx_…> | Any | The agent key for this box. Without it on a terminal you are asked; without it anywhere else the agent is installed and left stopped rather than hanging. On a box that already has a key, it replaces that one line and nothing else. Letters, digits and underscores only, and it must start with mlx_. |
--server <url>--server=<url> | Any | Where to send metrics. Defaults to the host that served the script. On an update, only an explicit --server replaces the one already in the config. Needs the scheme, and may not contain whitespace — the value becomes one line in the config file. |
--version <x.y.z>--version=<x.y.z> | Any | Install that release rather than the one the URL was served for. Only releases this deployment lists can be installed — a withdrawn one is refused by both the URL and the flag. |
--quiet | Any | Print progress but not the commands and their output. Also quietens the download, the config read-back and the status shown after start-up. For cloud-init, image builds and fleet rollouts, where nobody reads the log. |
-v--verbose | Any | Trace every shell command as well (set -x), for when you are debugging the installer itself. It is the last of -v and --quiet that wins, so the order they are given in matters. |
--no-verify | Any | Install without checking against SHA256SUMS. Only for a mirror that genuinely publishes no checksums — a missing SHA256SUMS is otherwise an error, not a warning. |
--allow-downgrade | Any | Install a release older than the one already on the box. Refused without it, so an old pinned command cannot roll an agent back by accident. |
--enable-host-access | 0.4.0+ | Let a server analysis run a fixed set of read-only commands on this box. Off by default. Refused before anything is downloaded if the release being installed is older than 0.4.0, whose parser is the first to know the setting. |
--disable-host-access | 0.4.0+ | Turn host access back off. On a fresh install it writes nothing, since an absent setting already means off. It is the last of the two host-access flags that wins. |
--disable-docker | 0.5.0+ | Stop reading this box's containers. Container reporting is ON by default from 0.5.0, so this is the flag that does something on a fresh install — it writes docker_enabled: false. Refused before anything is downloaded if the release being installed is older than 0.5.0, whose parser is the first to know the setting. |
--enable-docker | 0.5.0+ | Turn container reporting back on. On a fresh install it writes nothing, since an absent setting already means on. It is the last of the two docker flags that wins. |
--help-h | Any | Print the options and exit. Every error the installer prints ends by suggesting it. |
Passing options through a pipe
When the script is piped to a shell, the options belong to sh, not to curl — and sh needs -s -- before them, or it reads the first one as a filename:
$curl -sSf https://monilogix.jpjapos.com/install.sh | sh -s -- --key mlx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxEvery other option goes in the same place, after the --, and several can be given at once. Downloading the script and running it separately avoids the question entirely, and lets you read it before it runs as root — both forms are shown on Install the agent.
When the installer refuses
Three checks run before anything is downloaded:
- A downgrade. Installing a release older than the one already on the box is refused unless
--allow-downgradeis given, so an old pinned command re-run to fix a box cannot quietly roll it back. - Host access on an agent that predates it. Either host-access option against a release older than
0.4.0is refused, because that agent's parser does not know the setting and would not start with it. - An existing config the old agent cannot read. This one needs no option at all: installing a release older than
0.4.0on a box whoseconfig.yamlalready hashost_access_enabledis refused, because that agent would install and then fail to start.
Uninstaller options
The uninstaller is a separate script, and deliberately has no version in its URL: removing a package downloads nothing, so there is no release to pin. By default it removes everything — see Uninstall the agent.
| Option | What it does |
|---|---|
--keep-config | Remove the package but keep the config file and the monilogix-reader user — apt-get remove rather than purge. Reinstalling later picks the same agent key back up, which also means the key stays on disk. Without this, everything goes. |
-y--yes | Do not ask for confirmation. Without it, and with a terminal to ask on, you are shown exactly what will be deleted and have to type yes. With no terminal the script goes ahead either way — piping it into a shell is the instruction. |
--quiet | Print progress but not the commands and their output. For fleet rollbacks and image builds, where nobody reads the log. |
-v--verbose | Trace every shell command as well (set -x), for when you are debugging the uninstaller itself. |
--help-h | Print the options and exit, changing nothing. Every error the uninstaller prints ends by suggesting it. |
Config file settings
One setting per line in /etc/monilogix/config.yaml. The Agent column is the first release whose parser knows the setting — writing a newer setting into an older agent's config stops it starting.
| Setting | Required | Agent | Description |
|---|---|---|---|
server_url | Yes | 0.2.0+ | Where to send metrics. Your Monilogix API. |
agent_key | Yes | 0.2.0+ | This box's key. The agent will not start without it. |
cm_cpu_enabled | No | 0.2.0+ | Collect CPU from /proc/stat. Defaults to true. |
cm_memory_enabled | No | 0.2.0+ | Collect memory from /proc/meminfo. Defaults to true. |
cm_disk_enabled | No | 0.2.0+ | Collect disk usage per mount. Defaults to true. |
host_access_enabled | No | 0.4.0+ | Lets a server analysis run a fixed set of read-only commands on this host as the unprivileged monilogix-reader user. Optional — absent means false — and understood by agent 0.4.0 and newer only; an older agent refuses to start if this line is in its config. See Server analysis in the docs. |
docker_enabled | No | 0.5.0+ | Reads this host's containers over the Docker socket — what is running, its status and its logs — and reports them to your dashboard. Read-only: the agent has no way to start, stop or exec anything. Defaults to true, so the line is only needed to turn it off. Understood by agent 0.5.0 and newer only; an older agent refuses to start if this line is in its config. |
connections_enabled | No | 0.9.0+ | Reports who reached this host, on which port, and whether the connection got through, read from the kernel's own connection tracking. Defaults to true; nothing is executed and nothing is written. Understood by agent 0.9.0 and newer only; an older agent refuses to start if this line is in its config. |
control_enabled | No | 0.10.0+ | Lets the server run a fixed set of named control actions on this host — in v1, blocking or unblocking a source address at its firewall (see ADR 0006). Off unless this line says otherwise, the more conservative default of the two write-capable settings here, since this is the first one that can change the host rather than only read it. Not yet shipped in a released agent — "dev" means a source build only, and the installer does not yet write this line for any release. |
threshold_actions_enabled | No | 0.10.0+ | The host's opt-out for threshold actions (see ADR 0007): when a metric holds at one of the box's levels, the server may ask this host to reboot, or to run a script the box's owner wrote, as root. Defaults to true, and nothing runs until the owner turns threshold actions on in the dashboard — set it to false to refuse every threshold action on this host whatever the dashboard says. The installer never writes this line. |
terminal_enabled | No | 0.10.0+ | Lets the server open an interactive shell on this host, as root if terminal_user below says so (see ADR 0005). Off unless this line says otherwise — granting it needs somebody who already has root on the box, since it can only be turned on by editing this file. Not yet shipped in a released agent — "dev" means a source build only, and the installer does not yet write this line for any release. |
terminal_user | No | 0.10.0+ | Who a terminal session's shell runs as. Defaults to the unprivileged monilogix-reader; set to "root" for an actual root shell, which is a second, deliberate opt-in on top of terminal_enabled. Not yet shipped in a released agent — "dev" means a source build only, and the installer does not yet write this line for any release. |
sudo systemctl restart monilogix-agentRetired settings
Listed because a config written by an older agent may still carry one, and because a setting vanishing from the docs is indistinguishable from a setting nobody wrote down. Nothing here needs adding to a new config.
| Setting | Agent | What happened |
|---|---|---|
cm_interval_in_seconds | 0.2.0+, out of new configs from 0.10.0 | Seconds between collections. No longer written into any new config — every new box collects every 15 seconds — but still read when present, so a box that already carries the line keeps the interval its operator chose. Clamped to between 5 and 3600. |
quick_fix_enabled | 0.4.1 – 0.4.2 | Existed only in 0.4.1, where it gated a feature that was never built. From 0.4.2 the agent accepts the line and ignores it, so a box installed on 0.4.1 keeps starting after an upgrade; it can be deleted. On 0.4.0 and older the line stops the agent, because that parser does not know the key. |
Which release introduced what is on Versions and features. Turning host access on, and what it lets an analysis read, is on Server analysis.