Skip to main content

server-status-client

✨ 服务器状态 - 客户端 ✨

license pypi python

📖 介绍

服务器状态的客户端命令行工具

💿 安装

使用 pip 安装(确保包路径在环境变量下)

pip install server-status

Debian系请使用pipx安装

sudo apt install pipx
sudo pipx install server-status

若出现环境问题,请从 Actions 下载构建好的二进制文件

🎉 使用

命令

  • server-status <server> <token> <id> run - 运行客户端
  • server-status <server> <token> <id> rm - 从服务端移除主机

可选项

  • -n|--name - 设置主机名称
  • --labels - 设置主机标签
  • --interval - 设置上报间隔
  • --location - 设置主机地域
  • --link - 设置前端点击跳转链接

示例

server_status https://status.liteyuki.icu 114514 myhost run -n "MyHost" --labels "标签1,标签2" --interval 5 --location "Chongqing" --link "https://example.com"

📝 其他

开机启动

执行以下命令

sudo pipx ensurepath  # 确保pipx路径在环境变量下

sudo touch /etc/systemd/system/server-status-client.service

sudo bash -c 'cat <<EOF > /etc/systemd/system/server-status-client.service
[Unit]
Description=Server Status Client
After=network-online.target

[Service]
Type=simple
ExecStart=server-status <server> <token> <id> run  # 请替换为实际参数
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
EOF'

sudo systemctl enable server-status-client
sudo systemctl start server-status-client

更新

git pull
sudo systemctl restart server-status-client
#
git pull
systemctl restart server-status-client

服务端

请在中心服务器上部署 server-status-server

Metadata

Release files for server-status 1.1.1

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

Source distribution (sdist)

Source distribution for server-status 1.1.1
File Size Uploaded Provenance Actions
server_status-1.1.1.tar.gz 5.3 kB Without provenance Details for server_status-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for server-status 1.1.1
File Interpreter ABI Platform Actions
server_status-1.1.1-py3-none-any.whl Python 3 none any Details for server_status-1.1.1-py3-none-any.whl

Total release size: 11.8 kB

Release files / server_status-1.1.1.tar.gz

Download URL server_status-1.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
875e374cfcc563152a7eb831d50630486cbdcba86853d874bdf646874d62451b
BLAKE2b-256 checksum
How to use checksums
b2c349ac1f28a71c9b1aecea142faa88b51613ac97698e26dcb61cc2fa5fdf07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.19.1 CPython/3.10.12 Linux/6.8.0-1014-azure

Release files / server_status-1.1.1-py3-none-any.whl

Download URL server_status-1.1.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7c13f74e760dd4055a9657317193c1ec2b8b05a10fba87cd85fd2e8196d2ff1
BLAKE2b-256 checksum
How to use checksums
5290426226dcc2907f078365d9a6876fea52aa5d7412a455f34c9c60aa985ffa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.19.1 CPython/3.10.12 Linux/6.8.0-1014-azure

Security for server-status 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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