【问题标题】:Ubuntu 14.04.5 LTS: monit alert -- Connection failed sshdUbuntu 14.04.5 LTS:监视警报 -- 连接失败 sshd
【发布时间】:2019-10-25 09:10:19
【问题描述】:

一夜之间,我收到了来自Monit 的数十封电子邮件,看起来像这样:

Connection failed Service sshd

        Date:        Thu, 24 Oct 2019 11:39:49
        Action:      restart
        Host:        my_app_production
        Description: failed protocol test [SSH] at INET[localhost:22] via TCP -- SSH: error receiving identification string -- Success


Your faithful employee,
Monit

Connection succeeded Service sshd

        Date:        Thu, 24 Oct 2019 11:41:50
        Action:      alert
        Host:        my_app_production
        Description: connection succeeded to INET[localhost:22] via TCP

Your faithful employee,
Monit

我检查了服务器 - 它已启动并正在运行。我检查了磁盘空间,有足够的空间。

我对 DevOps 不是很熟悉,不知道我应该在什么地方、在哪里挖掘以及如何解决这个问题。谷歌搜索也没有什么帮助。

有什么建议吗?

谢谢

【问题讨论】:

    标签: ubuntu amazon-ec2 monit


    【解决方案1】:

    这应该是亚马逊的临时问题。我假设您无法查看或更改 AWS 上的 sshd 配置(或日志),因此我建议您放松监控规则。

    只需使用fault tolerance 功能:

    if failed port 22
      # add this:
      for 2 times within 3 cycles
    then alert
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-15
      • 2020-12-12
      • 2017-02-04
      • 2017-04-23
      • 2011-12-29
      • 1970-01-01
      • 2022-11-09
      • 2020-09-28
      相关资源
      最近更新 更多