Platforms

How do you monitor a CloudPanel server over SSH?

CloudPanel monitoring over SSH: log in as root (not a site user), run five checks by hand, or install a one-command agent that alerts with the fix.

By , Director of Softuvo Solutions (LinkedIn) · Updated

In short

To monitor a CloudPanel server, SSH in as root (or your cloud image’s sudo user, not a CloudPanel site user) and install a host agent. CloudPanel manages sites, PHP and databases but has no way to run your own script as root. The Opservo agent installs with one command in about 30 seconds, changes nothing in CloudPanel and opens no inbound port.

What do you need?

  • •A CloudPanel server (Ubuntu or Debian, x86 or ARM64, with systemd)
  • •Root SSH access, the same access you used to install CloudPanel. Site users cannot install it, because the agent is a system service
  • •An Opservo workspace; Free covers up to 2 servers
  • •Outbound HTTPS (port 443) to api.getopservo.com

How do you SSH into a CloudPanel server as root?

Use the login your cloud provider gave you when you created the server, not a user you made inside CloudPanel. On most images that is root with your SSH key; on some (many AWS images, for example) it is a sudo user such as ubuntu or admin, and you switch to root after logging in:

ssh root@<server-ip>
# or, on images with a default sudo user:
ssh ubuntu@<server-ip>
sudo -i

The SSH users you add per site in CloudPanel (Sites → Manage → SSH/FTP) are limited to that site’s files and have no sudo. They are right for deploying a site, but they cannot read system logs or install a system service, so they cannot install a monitoring agent.

What should you check by hand on a CloudPanel server?

These five commands work on any CloudPanel server over a root SSH session, with or without an agent. Use the PHP version your sites run (CloudPanel installs several side by side), and mariadb instead of mysql if you chose MariaDB.

CheckCommandWhat is a problem
Web serversystemctl status nginxAnything other than active (running)
PHPsystemctl status php8.3-fpmNot running, or recent "server reached pm.max_children" lines
Databasesystemctl status mysqlRestarts in the last hour, or not running
Diskdf -h /Above 85% used: logs, backups and the database stop writing at 100%
Memory and kernelfree -m; journalctl -k --since "1 day ago" | grep -i -E "oom|error"Swap in heavy use, or any OOM kill

Running these by hand tells you how the server is now. An agent runs the same checks every minute, keeps the history and alerts you when one turns bad.

How do you install the monitoring agent?

In Opservo, click Add a new server, then Generate install command. The token in it works once and expires after one hour. In your root SSH session, run it:

curl -sSL https://api.getopservo.com/install.sh | sudo env OPSERVO_API_URL=https://api.getopservo.com OPSERVO_TOKEN=<token> bash

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 or MariaDB and Redis; listening ports; security checks; and kernel-log errors. 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-11-02.

FAQ

Related questions

Does it change anything in CloudPanel?+

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.