Documentation

Help and setup guide

Everything you need to get a server reporting, share websites with clients and receive alerts.

1. What your server needs

  • CloudPanel: ServerMetrics works only on servers managed with CloudPanel. Servers with other control panels (cPanel, Plesk, aaPanel, CyberPanel, HestiaCP) or no panel are not supported.
  • Access as root, or a user that can use sudo
  • The server must be able to reach https://servermetrics.in (outgoing HTTPS). No incoming ports are needed.

ServerMetrics reads CloudPanel's own list of websites and their databases, which is why it needs CloudPanel.

2. Add a server and install the agent

  1. Log in and open Servers, then Add server. Give it a name you will recognise, for example Production VPS.
  2. The next page shows an install command that contains your server's secret token. Copy it. It is shown only once; if you lose it, open the server and choose Create a new token.
  3. Open a terminal on your server (SSH, or your hosting provider's web terminal) and paste the command. It looks like this:
curl -sSL https://servermetrics.in/install.sh | sudo bash -s -- --token=YOUR_TOKEN --name='Production VPS'

The installer checks your server, installs the agent and sends the first report. It also adds two root scheduled jobs that measure site sizes and bandwidth every 5 minutes, and gives the agent read-only access to the sites' Nginx logs (installing the standard acl package if it is missing). It takes under a minute. Keep the token private: anyone with it can send reports for that server.

3. Check that it works

Within a minute or two the server shows as Online on your Overview, with its numbers. Your CloudPanel websites appear in the Sites list; their disk sizes and bandwidth fill in within about 5 minutes.

4. Choose which sites are checked

Open a server and choose Edit:

  • Uptime checks: one web address per line, for example https://www.example.com. Each is opened every 5 minutes.
  • SSL certificate checks: one domain per line, for example www.example.com. Checked every hour.

5. Get alerts on Telegram

  1. Open Alerts and choose Connect Telegram.
  2. Choose Open in Telegram and press Start. To send alerts to a team group instead, choose Add to a group.
  3. Come back and press I have pressed Start. A confirmation message arrives in the chat.
  4. Press Send a test alert to check.

On the same page you can set your own limits for CPU, RAM and disk, an email address for alerts, and how often to be reminded while something stays down. Every alert is also listed under Recent alerts.

6. Give a client their own page

  1. Open Clients, then Add client.
  2. Enter their name and email, choose a portal password (at least 10 characters), and tick the websites they should see.
  3. Send them the client portal address shown at the top of the Clients page, with their email and password.

Clients see only their own websites: disk space, bandwidth, uptime and SSL. They can change their password after logging in. If they forget it, set a new one for them on the Clients page.

7. Update or remove the agent

Update to the latest version (keeps the token and name):

curl -sSL https://servermetrics.in/install.sh | sudo bash -s -- --upgrade

Remove the agent, its scheduled jobs and its user:

curl -sSL https://servermetrics.in/install.sh | sudo bash -s -- --uninstall

The agent's own log files are kept; the command shows where they are and how to delete them. Removing the agent does not delete the server from your account; delete it under Servers when you no longer need it.

8. Something is not right

The server stays on "Waiting for agent" or shows "Offline"

Run these on the server and send us the output if the cause is not clear:

systemctl status servermetrics-agent.timer
sudo journalctl -u servermetrics-agent.service -n 30 --no-pager
  • "token not accepted" or "not a valid token": the token was mistyped or replaced by a new one. Open the server, choose Create a new token and run the new install command.
  • Could not connect: the server cannot reach https://servermetrics.in. Check outgoing HTTPS in your firewall.
  • The timer is not active: run the install command again.

A website is missing or shows no disk size

New CloudPanel sites are picked up automatically within about 5 minutes. Disk sizes are measured every 5 minutes.

A site shows "Down" but opens in my browser

The check counts a site as down when it does not answer, answers with an error (HTTP 404 or 5xx), or has an SSL certificate problem. The alert message gives the exact reason. Check the address in the server's uptime list, including https:// and www.

9. Still stuck?

Email support@servermetrics.in with your server's name and what you see. We reply within one working day (Monday to Saturday, 10:00 to 18:00 IST (except public holidays)). Never send us your token or passwords; we will never ask for them.