跳转到主要内容

检测IP地址并在重新建立连接时通知。

项目描述

安装

$ pip install probe-internet

使用

定义一个类似于

[probe]
ip = "8.8.8.8"
port = 53

# how often to probe
interval = 5
timeout = 3

[twilio]
account_sid = "..."
auth_token = "..."
source_phone_number = "+1..."
target_phone_number = "+1..."

# how long must the connection be down before a message is sent
min_interval = 30

运行它

$ probe-internet

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

probe_internet-0.1.2.tar.gz (2.8 kB 查看哈希值)

上传时间:

构建分布

probe_internet-0.1.2-py3-none-any.whl (3.0 kB 查看哈希值)

上传时间: Python 3

支持者

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误记录 StatusPageStatusPage 状态页面