Skip to main content

Watchdog-Host

Watchdog-Host is a daemon designed to monitor bandwidth usage on cloud hosts, helping prevent unexpected charges caused by exceeding monthly traffic quotas.

Features

  • Monthly network traffic accounting for cloud instances
  • Configurable via config.yaml, including:
    • Bandwidth quota limits
    • Usage percentage alert thresholds
  • Multiple notification channels:
    • Email
    • WeCom (WeChat Work)
    • DingTalk
  • Optional automatic shutdown when traffic usage exceeds the configured quota
  • Runs as a systemd service, suitable for long-term unattended operation

Usage Notes

  • Historical network usage prior to the first run cannot be determined:
    • Traffic statistics for the current month will be inaccurate on the first run
    • Accurate statistics will be available starting from the next execution cycle
  • Additional watchdog capabilities may be added in the future

Requirements

  • Must be executed as the root user
  • Running via sudo is not supported
    • This is required due to systemd management and low-level network statistics access

Installation

pip install watchdog-host
watchdog-host init
vim /etc/watchdog/config.yaml
systemctl enable --now <service>.service
systemctl status <service>.service

If your system version is Ubuntu 24.04 / Debian 12 or later, use this command.

apt update
apt install -y pipx
pipx ensurepath
pipx install watchdog-host
source ~/.bashrc

pip install watchdog-host
watchdog-host init
vim /etc/watchdog/config.yaml
systemctl enable --now <service>.service
systemctl status <service>.service

Uninstallation

systemctl disable --now <service>.service
watchdog-host clean
pip uninstall -y watchdog-host

# Optional
rm -f /etc/watchdog/config.yaml
rm -f /etc/watchdog/*.json

Metadata

Release files for watchdog-host 1.0.3

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

Source distribution (sdist)

Source distribution for watchdog-host 1.0.3
File Size Uploaded
watchdog_host-1.0.3.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for watchdog-host 1.0.3
File Interpreter ABI Platform
watchdog_host-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / watchdog_host-1.0.3.tar.gz

Download URL watchdog_host-1.0.3.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c5c9ad7440fcf1453e0dc03bea41d7520dae4e6b074354efe98240eeec27f3e8
BLAKE2b-256 checksum
How to use checksums
100d937de398abc48d6be5a13b86161b947d0422408e8095ef5cd2f201673031
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 8, 2026.

Transparency log

Release files / watchdog_host-1.0.3-py3-none-any.whl

Download URL watchdog_host-1.0.3-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e02346899423e55fb1484499cde8aaf155e6dcd05f3bceb50c9265b9c544101d
BLAKE2b-256 checksum
How to use checksums
d60e991388e016b12826591b52c79b1aacb25abdd9ffd876d2123510ac9f7c38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.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