Platforms

Where is the Ploi sudo password, and how do you monitor a Ploi server?

Ploi emails the sudo password when a server is provisioned. Lost it? A Ploi script running as root needs none and adds monitoring in about a minute.

By , Director of Softuvo Solutions (LinkedIn) · Updated

In short

Ploi emails the sudo password for the ploi user when it finishes provisioning a server, so search your inbox for that server’s name. You do not need it to add monitoring: a Ploi script set to run as root installs the Opservo agent in about a minute (Scripts are on Ploi’s paid plans). Over SSH, you need the password for sudo.

Where is the Ploi sudo password?

In the email Ploi sent when the server was ready. The ploi user logs in with your SSH key, but sudo asks for that password, which is why "sudo: a password is required" is the usual first error after SSH-ing into a Ploi server. Two ways round it:

  • •Run the command from Ploi instead of SSH: a Ploi script whose user is root runs without the sudo password
  • •Over SSH, log in as ploi, run sudo -i and enter the password from the provisioning email
ssh ploi@<server-ip>
sudo -i        # asks for the password from Ploi’s provisioning email
whoami         # root

What do you need?

  • •A Ploi-managed server with systemd (amd64 or arm64)
  • •An Opservo workspace; Free covers up to 2 servers
  • •Outbound HTTPS (port 443) to api.getopservo.com. Opservo opens no inbound port

How do you install it?

  • •In Opservo, click Add a new server, then Generate install command. The token in it works once and expires after one hour
  • •In Ploi, create a script, set its user to root, paste the command and run it on one server
  • •Or over SSH: log in as ploi, run sudo su with the sudo password Ploi emailed you, and paste the command
  • •Generate a fresh command for each further server, because each token is single-use
curl -sSL https://api.getopservo.com/install.sh | sudo env OPSERVO_API_URL=https://api.getopservo.com OPSERVO_TOKEN=<token> bash

For a batch, a reusable fleet key lets one script run enrol many servers. Fleet-enrolled servers are treated as disposable: one offline for 30 minutes is archived automatically instead of raising an offline alert, so prefer one-time tokens for long-lived servers.

What do you see afterwards?

Each server gets a 0–100 health score and findings with the command that fixes them: CPU, memory, disk and load; systemd services such as nginx, PHP-FPM, MySQL and Redis; Docker containers; listening ports; security checks; kernel-log errors; and laravel.log for sites in /home/ploi/<site>. Domains and SSL expiry are read from the standard nginx config folders. For any site the agent does not list, add an uptime monitor, which checks it from outside and tracks the certificate.

Last updated 2026-10-28.

FAQ

Related questions

Does it change anything in Ploi?+

No. The agent is a separate systemd service. It is read-only by default and never reads .env files.

Can Opservo run fixes on the server?+

Only if an owner or admin turns on remote actions for that server in the dashboard, on a paid plan; it is off by default. Every command is confirmed and audited.

How do you remove it?+

Run curl -sSL https://api.getopservo.com/install.sh | sudo env OPSERVO_UNINSTALL=1 bash, then remove or archive the server in the fleet table.