Skip to main content

VPSinfo

A command-line tool for monitoring VPS information using SolusVM and Virtualizor APIs. Supports concurrent monitoring of multiple VPS instances with bandwidth usage and system status information.

Features

  • Monitor bandwidth usage (used, total, percentage)
  • Monitor memory usage (used, total, percentage)
  • Monitor disk usage (used, total, percentage)
  • Concurrent monitoring of multiple VPS instances
  • Human-readable data formatting
  • Simple JSON configuration
  • Verbose mode for debugging

Installation

pip install vpsinfo

Configuration

Create a configuration file at ~/.vpsinfo.json:

[
    {
        "name": "my-solusvm-vps",
        "type": "solusvm",
        "url": "https://your-solusvm-url:5656",
        "key": "your-api-key",
        "hash": "your-api-hash"
    },
    {
        "name": "my-virtualizor-vps",
        "type": "virtualizor",
        "url": "https://your-virtualizor-url:4083",
        "key": "your-api-key",
        "hash": "your-api-password-hash"
    },
    {
        "name": "vps-with-self-signed-cert",
        "type": "solusvm",
        "url": "https://manage.example.com",
        "key": "your-api-key",
        "hash": "your-api-hash",
        "verify_ssl": false
    }
]

Each VPS entry requires:

  • name: A friendly name for the VPS
  • type: VPS panel type ("solusvm" or "virtualizor")
  • url: API URL
    • For SolusVM: usually ends with :5656
    • For Virtualizor: usually ends with :4083
  • key: API key from control panel
  • hash:
    • For SolusVM: API hash from control panel
    • For Virtualizor: API password hash from control panel
  • verify_ssl: (Optional) Whether to verify SSL certificates (default: true)
    • Set to false to disable SSL verification for servers with self-signed or invalid certificates
    • Warning: Disabling SSL verification reduces security

Usage

Monitor all VPS metrics (bandwidth, memory, disk):

vpsinfo

Enable verbose output for debugging:

vpsinfo -v

or

vpsinfo --verbose

Example Output

╒══════════════╤══════════╤══════════╤═══════════╤═══════╤══════════╤═══════════╤═══════╤══════════╤═══════════╤═══════╕
│ VPS Name     │ Status   │ BW Used  │ BW Total  │ BW %  │ Mem Used │ Mem Total │ Mem % │ Disk Used│ Disk Total│ Disk %│
╞══════════════╪══════════╪══════════╪═══════════╪═══════╪══════════╪═══════════╪═══════╪══════════╪═══════════╪═══════╡
│ my-vps-1     │ Success  │ 1.25 GiB │ 500.0 GiB │ 0.3%  │ 512.0MiB │ 1.0 GiB   │ 50.0% │ 10.0 GiB │ 50.0 GiB  │ 20.0%│
╘══════════════╧══════════╧══════════╧═══════════╧═══════╧══════════╧═══════════╧═══════╧══════════╧═══════════╧═══════╛

When an error occurs:

╒══════════════╤═════════════════════════╤══════════╤═══════════╤═══════╤══════════╤═══════════╤═══════╤══════════╤═══════════╤═══════╕
│ VPS Name     │ Status                  │ BW Used  │ BW Total  │ BW %  │ Mem Used │ Mem Total │ Mem % │ Disk Used│ Disk Total│ Disk %│
╞══════════════╪═════════════════════════╪══════════╪═══════════╪═══════╪══════════╪═══════════╪═══════╪══════════╪═══════════╪═══════╡
│ my-vps-1     │ Error - Connection failed│ N/A      │ N/A       │ N/A   │ N/A      │ N/A       │ N/A   │ N/A      │ N/A       │ N/A   │
╘══════════════╧═════════════════════════╧══════════╧═══════════╧═══════╧══════════╧═══════════╧═══════╧══════════╧═══════════╧═══════╛

Error Handling

  • If a VPS is unreachable or there are API errors, the status will show as "Error" with an error message
  • All metrics will show as "N/A" when an error occurs
  • Configuration file errors will be reported with clear error messages
  • All errors are displayed in red for better visibility
  • Use verbose mode (-v) to see detailed debug information

Requirements

  • Python 3.7 or higher
  • click
  • tabulate
  • requests

Metadata

Release files for vpsinfo 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vpsinfo 0.2.0
File Size Uploaded
vpsinfo-0.2.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vpsinfo 0.2.0
File Interpreter ABI Platform
vpsinfo-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / vpsinfo-0.2.0.tar.gz

Download URL vpsinfo-0.2.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0e8871f8d7c75112dd886d469e17a9ad29de57cad21dd874ed506a444eb12c61
BLAKE2b-256 checksum
How to use checksums
a6b0793cd70c38411b8914ad6674aedf4e9efe788be46924e0c0dee971fa50ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / vpsinfo-0.2.0-py3-none-any.whl

Download URL vpsinfo-0.2.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f73282622c0d6d210f10505ff3306e37e7e565d65941b07546b050b9e6faa085
BLAKE2b-256 checksum
How to use checksums
683e2d0c013b4aaf0651d6c1b2f44588ae1852807d69064d08fc6045bf3b46f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page