Skip to content

Install on Linux

  1. Download the file for your server: metrivo-<version>-linux-amd64.tar.gz (Intel and AMD) or metrivo-<version>-linux-arm64.tar.gz (ARM).

  2. Extract it and copy the program to /usr/bin:

    Terminal window
    tar -xzf metrivo-*-linux-amd64.tar.gz
    sudo install -m 0755 metrivo-*-linux-amd64/metrivo /usr/bin/metrivo
  3. Create the metrivo user, with no login and no privileges:

    Terminal window
    sudo useradd --system --no-create-home --shell /sbin/nologin metrivo
  4. Create the service in /etc/systemd/system/metrivo.service:

    /etc/systemd/system/metrivo.service
    [Unit]
    Description=Metrivo Database Monitor agent
    After=network-online.target
    Wants=network-online.target
    [Service]
    User=metrivo
    Group=metrivo
    ExecStart=/usr/bin/metrivo serve -config /etc/metrivo/metrivo.yaml
    Restart=on-failure
    StateDirectory=metrivo
    ConfigurationDirectory=metrivo
    NoNewPrivileges=yes
    ProtectSystem=strict
    ProtectHome=yes
    [Install]
    WantedBy=multi-user.target
  5. Start the service and have it start with the server:

    Terminal window
    sudo systemctl daemon-reload
    sudo systemctl enable --now metrivo
  6. Check that it is running and see the panel addresses:

    Terminal window
    sudo -u metrivo metrivo status
    Agent: running
    Panel: https://dbmon01:9443/
    https://10.0.0.15:9443/
    Firewall: firewalld active, port 9443/tcp open

The data is kept in /var/lib/metrivo. The configuration file /etc/metrivo/metrivo.yaml is optional: without it, the agent uses port 9443 and the defaults. Everything else is set up in the panel.

If status says the port is not open, see Firewall and port 9443. Then go on to the first sign-in.

Metrivo Database Monitor · metrivodb.com