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).
Before you start
Section titled “Before you start”| Item | Details |
|---|---|
| Site | Each install key is scoped to a site in Monozu Cloud |
| Install key | Generated 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 |
| Network | Outbound 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 |
| Approval | Agents are approved automatically when they enrol with a valid key — Host Agent Approval |
| Privileges | Installer must be run elevated: Administrator on Windows, root on Linux (see System requirements) |
System requirements
Section titled “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
.debor.rpmfor your distribution. - macOS: installs from a
.pkgpackage (see below).
1. Obtain an install key
Section titled “1. Obtain an install key”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.
2. Windows installation
Section titled “2. Windows installation”Interactive (pilot)
Section titled “Interactive (pilot)”- 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).
- Run the installer. When prompted, enter the install key and confirm the site.
- 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 90ENROLLKEY= 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.
3. Linux and macOS installation
Section titled “3. Linux and macOS installation”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.
# 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.
Transport mode
Section titled “Transport mode”Every install key works the same way regardless of transport mode — you only need one key per site.
| Mode | Behavior | When 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 directly | Almost always — this is the default for a reason |
edge | Never talks to the internet directly; waits for the edge appliance to be reachable | Hosts that must have no outbound internet access at all |
cloud | Always talks to Monozu Cloud directly, even if an edge appliance is on the LAN | Hosts 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.
4. Verify installation
Section titled “4. Verify installation”- On the host: the one-line installer already ran
hostzu status --wait 90for you (or run it yourself:hostzu status --wait 90). It printsenrolled as <hostname> via edge/<device>orvia cloudon success, or an error (enroll error: invalid_key/site_mismatchmeans 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).
Troubleshooting
Section titled “Troubleshooting”| Symptom | What 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 added | Check 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 fails | Confirm OS version supported; check installer logs on the host |
| Service stops | Review host logs; contact Monozu support with site and hostname |
Transport mode edge host never enrolls, or auto never uses the appliance | Confirm 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.