短信警报可更快地响应错误情况

发布于 2024-07-06 22:20:05 字数 64 浏览 7 评论 0原文

设置 SMS 警报系统的最简单方法是什么,以便在我的服务器没有响应或 GET 查询没有返回正确内容时我会收到通知?

What is the easiest way to set up an SMS alerting system so that I will receive notification if my server doesn't respond or a GET query doesn't return correct content?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

枫以 2024-07-13 22:20:05

您可以完全外包监控和警报,例如通过订阅 Pingdom。 最基本的 Pingdom 计划将监控最多 5 个服务(包括使用带有可选内容模式匹配的 HTTP GET),并在可配置的停机时间后发送短信。

如果您想推出自己的解决方案,首先要做的就是监控软件。 为此,存在许多第三方解决方案,从免费贵得离谱。 当然,滚动您自己的“尝试 GET 并在不起作用时执行某些操作”脚本始终是一种选择,但与所有软件一样,功能蔓延可能意味着您很快就要重新实现现有解决方案......

对于 SMS 通知,如果您所在的地区提供此类服务,那么使用电子邮件到 SMS 网关可能适合您。 例如,大多数美国提供商提供免费网关,而在欧洲,它们往往由第三方运营且仅付费。 正如已经建议的,谷歌是你的朋友。 此外,您的监控工具可能支持使用连接到监控服务器的手机/GSM 调制解调器直接发送通知。

You can completely outsource the monitoring and alerting, for example by subscribing to Pingdom. The most basic Pingdom plan will monitor up to 5 services (including using HTTP GETs with optional content pattern matching) and send an SMS after a configurable amount of downtime.

If you want to roll your own solution, the first thing to get right is the monitoring software. Many, many third party solutions exist for this, from the free to the outrageously expensive. Of course, rolling your own "try a GET and do something if it doesn't work" script is always an option, but as with all software, feature creep may mean that you're just re-implementing existing solutions soon...

For the SMS notification, using an e-mail-to-SMS gateway might work for you, if you're in a territory well-served by such services. Most US providers, for example, provide free gateways, whereas in Europe they tend to be run by third parties and pay-only. As already suggested, Google is your friend here. Also, your monitoring tool may support sending notifications directly using a cellphone/GSM modem attached to the monitoring server.

赠佳期 2024-07-13 22:20:05

我经常发现您需要的是直接连接到监控服务器的 SMS 调制解调器。 如果问题出在网络连接上怎么办?

Often I've found that what you need is a SMS modem attached directly to your monitoring server. What if the problem is the network connection?

北风几吹夏 2024-07-13 22:20:05

您想要的是短信网关。 您当地肯定有一些服务提供商。 不幸的是,它们有点难找到。 尝试询问谷歌...

What you want is an SMS gateway. There are surely some service providers local to you. Unfortunately, they are a bit hard to find. Try asking Google...

北方的韩爷 2024-07-13 22:20:05

您可以获得类似 http://www.serviceuptime.com/ 的服务,然后向您的-number@a-domain-your-provider-gives 他们通常在各自的网站上拥有提供商的确切域名,但如果您的提供商是 t-mobile,您可以尝试 @t-mobile.com。

如果您想编写自己的工具应该非常简单 - 如果您没有得到预期的响应,则发送 GET 请求发送电子邮件。 您应该从 2 个不同 ISP 的 2 个不同位置运行它,因为如果存在路由问题并且请求未通过,您将收到短信

You can get a service like http://www.serviceuptime.com/ and the send an email to your-number@a-domain-your-provider-gives They usually have the exact domains for the providers on their respective websites but you could just try @t-mobile.com if your provider is t-mobile for example.

If you want to write your own tool should be pretty straightforward - send GET request if you dont get the expected response send email. You should run it from 2 different locations from 2 different ISPs tho because if there are routing problems and the request doesnt go through you'll get smsed

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文