Skip to content

Install Host Agent

Install the Host Agent on servers and workstations you want in the CMDB. Deployment is typically handled by your IT team using the same tools you use for other endpoint software (GPO, Microsoft Intune, Ansible, or manual install).

ItemDetails
SiteEach install key is scoped to a site in Monozu Cloud
Install keyGenerated by a tenant administrator on the site’s Install Keys tab; time-limited. A single key works for every OS and every transport mode — no separate CA file to download for a normal rollout
NetworkOutbound HTTPS to api.monozu.cloud by default. With transport mode edge, only LAN access to the site’s edge appliance is required — no outbound internet needed
ApprovalAgents are approved automatically when they enrol with a valid key — Host Agent Approval
PrivilegesInstaller must be run elevated: Administrator on Windows, root on Linux (see System requirements)

The Host Agent targets Windows, Linux and macOS servers and workstations. It collects OS, hardware, network, and installed-software inventory as a background service — it is not a management agent and does not require ongoing elevated access to run once installed.

  • Windows: installs and runs as a Windows service.
  • Linux: installs and runs as a systemd service, packaged as .deb or .rpm for your distribution.
  • macOS: installs from a .pkg package (see below).

Install keys are scoped to a site and time-limited. Generate one on the site’s Install Keys tab in Monozu Cloud (or ask your Monozu onboarding contact for one during rollout). The tab shows a ready-to-copy, one-line install command per OS with the key already embedded — copy the line for your platform and run it. Note the key expiry — generate a new one if rollout is delayed beyond the validity window.

Copy the key exactly as shown, as one complete string — it already contains everything the agent needs to recognize your site’s edge appliance in transport mode auto (see Transport mode); there is nothing extra to configure. The key is shown once — copy it or the full install command before closing the dialog.

  1. Download the Host Agent MSI from the distribution channel Monozu provides for your tenant (or the direct download link shown on the Install Keys tab, when configured for your environment).
  2. Run the installer. When prompted, enter the install key and confirm the site.
  3. Complete the wizard. The service starts automatically.

Silent rollout (GPO / Intune / command line)

Section titled “Silent rollout (GPO / Intune / command line)”

The Install Keys tab gives you the exact one-liner, in the form:

msiexec /i hostzu-agent-<version>-x64.msi ENROLLKEY=<your-install-key> /qn && "%ProgramFiles%\HostZu\hostzu.exe" status --wait 90

ENROLLKEY= is the only required property. The status --wait 90 at the end polls for up to 90 seconds and prints whether enrollment succeeded — see Verify installation. To pin the transport mode explicitly, add -Transport (interactive installer) or the TRANSPORT=edge|cloud MSI property.

Copy the one-line command shown on the Install Keys tab for your platform. It installs the package and enrolls in one step; the packaged agent runs hostzu status --wait 90 on its own at the end, so you see the result immediately.

Terminal window
# Linux (.deb)
sudo HOSTZU_ENROLL_KEY=<your-install-key> dpkg -i hostzu-agent_<version>_amd64.deb
# macOS (.pkg)
sudo HOSTZU_ENROLL_KEY=<your-install-key> installer -pkg hostzu-agent-<version>-universal.pkg -target /

(.rpm distributions use rpm -i / dnf install with the same HOSTZU_ENROLL_KEY environment variable.) To pin the transport mode, add HOSTZU_TRANSPORT=edge or HOSTZU_TRANSPORT=cloud to the same command.

Every install key works the same way regardless of transport mode — you only need one key per site.

ModeBehaviorWhen to use
auto (default, no parameter needed)Looks for the site’s edge appliance on the LAN; uses it when found and trusted, otherwise talks to Monozu Cloud directlyAlmost always — this is the default for a reason
edgeNever talks to the internet directly; waits for the edge appliance to be reachableHosts that must have no outbound internet access at all
cloudAlways talks to Monozu Cloud directly, even if an edge appliance is on the LANHosts you want on the internet path regardless of a nearby appliance

Set it with HOSTZU_TRANSPORT=edge|cloud (Linux/macOS environment variable) or TRANSPORT=edge|cloud (Windows MSI property) / -Transport (interactive installer). Leave it unset for auto.

If you need to point an older installer at a manually-downloaded CA file, the Install Keys tab still has a Download Devices CA button as a fallback (edge-ca.pem) — most rollouts don’t need this.

  • On the host: the one-line installer already ran hostzu status --wait 90 for you (or run it yourself: hostzu status --wait 90). It prints enrolled as <hostname> via edge/<device> or via cloud on success, or an error (enroll error: invalid_key/site_mismatch means the key is wrong or for the wrong site — regenerate it rather than retrying; a timeout usually means a network or gateway-reachability problem).
  • In Monozu Cloud: open the site’s Install Keys tab — the Recently added panel lists hosts that enrolled in the last 24 hours in real time, showing hostname, OS, and whether they came in via Cloud or a named edge appliance. You can also check the Host Agents list in the main navigation.
  • No approval step is needed: the host begins inventory uploads once enrolled (see Host Agent approval).
SymptomWhat to try
hostzu status --wait 90 times out or prints enroll error: ...invalid_key/site_mismatch are unrecoverable — regenerate the install key on the Install Keys tab and reinstall; a timeout with no error usually means outbound HTTPS to api.monozu.cloud is blocked, or (transport mode edge) the edge appliance isn’t reachable on the LAN yet
Host not in Host Agents list / not in Recently addedCheck outbound HTTPS to api.monozu.cloud (or LAN access to the edge appliance, transport mode edge); verify the key wasn’t expired at install time
Install failsConfirm OS version supported; check installer logs on the host
Service stopsReview host logs; contact Monozu support with site and hostname
Transport mode edge host never enrolls, or auto never uses the applianceConfirm the edge appliance is reachable on the LAN and its Devices CA matches what the install key expects; the Install Keys tab’s Download Devices CA button is the manual fallback if you suspect a mismatch. auto falls back to direct Cloud connectivity on any gateway error, so also check outbound HTTPS

See Troubleshooting for more scenarios.