Skip to main content

A server system monitor for linux to linux

Project description

Server System Monitor

This is package can monitor a server ping, CPU and memory using SSH, but in a short time it will be able to monitor disk usage.

All of the methods are wrappers to common Linux commands like:

Monitor.from_user_password("example.com","pwd","user").server_client.send_ram()

is the same as:

ssh user@example.com "free"

Commands and wrappers

ConnectionMonitor wrappers:

command wrapper
ping get_ping

ServerClientMonitor wrappers:

command wrapper
free send_ram
mpstat send_cpu

Quick usage

For monitoring connection specs and server's system specs at the same time you can use the Monitor object:

from server_system_monitor import Monitor

monitor = Monitor.from_user_password("example.com","pwd","user")

ram = monitor.server_client.send_ram()

ping = monitor.connection.get_ping()

print(ram)
print(ping)

But if only one is necessary you can use ConnectionMonitor (for connection specs) or ServerClientMonitor (for server specs):

from server_system_monitor import ServerClientMonitor,ConnectionMonitor

server_client_monitor = ServerClientMonitor.from_user_password("example.com","pwd","user")

connection_monitor = ConnectionMonitor("example.com")

ram = server_client_monitor.send_ram()

ping = connection_monitor.get_ping()

print(ram)
print(ping)

License

The server-system-monitor library is open-sourced software licensed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

server_system_monitor-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

server_system_monitor-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file server_system_monitor-0.1.1.tar.gz.

File metadata

  • Download URL: server_system_monitor-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for server_system_monitor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0b0aed15ce6b0a7b4bcd74ef76fa60b15fcbf290b67f93457246050bc2c65c72
MD5 5885a427af4f60ee35e676385e61e354
BLAKE2b-256 530ab7d06530cb075be8d9c744177511a0f23ea8a9919564c6fc8bf20fd285f8

See more details on using hashes here.

File details

Details for the file server_system_monitor-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for server_system_monitor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc5c16cc92c446d3c84c2de2f7751e6909bfb0bff51086016a4e6fbb5f799ab
MD5 2271f84c6fa4fb45196cb97e2bc3749a
BLAKE2b-256 e965074b88094ca65b1edfaa5098e2c036b9fd405c9dceca8d3698bc924c115f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page